From 69823f27e0c4bd299553b719d9d27066491835d1 Mon Sep 17 00:00:00 2001 From: Levente Polyak <levente@leventepolyak.net> Date: Thu, 15 Oct 2020 00:03:52 +0200 Subject: [PATCH] header: adding some nice colors and list good packages --- src/Header.js | 2 +- src/style.scss | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/Header.js b/src/Header.js index 148afc8..94a4185 100644 --- a/src/Header.js +++ b/src/Header.js @@ -44,7 +44,7 @@ class Header extends React.Component { <p>Welcome to the official experimental Arch Linux <a href="https://github.com/kpcyrd/rebuilderd">rebuilderd</a> instance, this page shows the results of verification builds of official Arch Linux packages in the repositories in an effort to be fully reproducible. For more information read the <a href="https://reproducible-builds.org/">Reproducible Builds website</a> or join the <a href="ircs://chat.freenode.net/archlinux-reproducible">#archlinux-reproducible</a> IRC channel on <a href="https://freenode.net/">Freenode</a>.</p> <br/> {!fetchFailed && suitesStats.map(function(repo, index) { - return <p key={ index }><a href={"#" + repo.name }>[{ repo.name }]</a> repository is { repo.percentage }% reproducible with { repo.bad } bad and { repo.unknown } unknown packages.</p>; + return <p key={ index }><a href={"#" + repo.name }>[{ repo.name }]</a> repository is <span className="bold">{ repo.percentage }%</span> reproducible with <span className="bad">{ repo.bad } bad</span> <span className="unknown">{ repo.unknown } unknown</span> and <span className="good">{ repo.good } good</span> packages.</p>; })} </div> </div> diff --git a/src/style.scss b/src/style.scss index f6088af..33c0d6e 100644 --- a/src/style.scss +++ b/src/style.scss @@ -14,6 +14,24 @@ $link: #212952; @import "../node_modules/bulma/sass/layout/section.sass"; @import "../node_modules/bulma/sass/grid/tiles.sass"; +.bold { + font-weight: bold; +} + +.good { + color: rgb(0, 256, 0); + font-weight: bold; +} + +.bad { + color: rgb(207, 0, 0); + font-weight: bold; +} + +.unknown { + color: rgb(255, 164, 5); + font-weight: bold; +} ul { @include tablet { @@ -25,7 +43,7 @@ ul { } /* bulma has no 4k option */ - @media (min-width: 2000px) { + @media (min-width: 2000px) { columns: 8; } } -- GitLab