From e337320ecd056059b8bf1d52c79711c5c8cc42d0 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sat, 9 Nov 2019 22:42:42 +0900 Subject: [PATCH] add repository link and improve button styles in default index.html --- default_index_html.ts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/default_index_html.ts b/default_index_html.ts index 3b10c844e..917076835 100644 --- a/default_index_html.ts +++ b/default_index_html.ts @@ -12,6 +12,7 @@ export const DEFAULT_INDEX_HTML = String.raw` } body { color: #4a4a4a; + border: 8px; font-size: 1em; font-weight: 400; } @@ -25,6 +26,27 @@ export const DEFAULT_INDEX_HTML = String.raw` display: flex; flex-direction: column; } + a { + color: #3273dc; + cursor: pointer; + text-decoration: none; + } + a:hover { + color: #000; + } + button { + color: #fff; + background-color: #3298dc; + border-color: transparent; + cursor: pointer; + text-align: center; + } + button:hover { + background-color: #2793da; + } + footer { + margin-top: 16px; + } .header-label { margin-right: 4px; } @@ -55,6 +77,10 @@ export const DEFAULT_INDEX_HTML = String.raw` Last Update: +
+ Repository: + +
@@ -71,6 +97,9 @@ export const DEFAULT_INDEX_HTML = String.raw` const data = window.BENCHMARK_DATA; document.getElementById('last-update').textContent = new Date(data.lastUpdate).toString(); + const repoLink = document.getElementById('repository-link'); + repoLink.href = data.repoUrl; + repoLink.textContent = data.repoUrl; function collectBenchesPerTestCase(entries) { const map = new Map();