diff --git a/src/public/assets/style.css b/src/public/assets/style.css index 9518ea3..ef5f9e9 100644 --- a/src/public/assets/style.css +++ b/src/public/assets/style.css @@ -30,6 +30,12 @@ header { font-size: 1.5rem; } + .version { + font-size: .85rem; + padding-left: .5rem; + color: rgba(255, 255, 255, .75); + } + a:link, a:visited { color: white; } diff --git a/src/start.php b/src/start.php index ba8a5a3..f2caea0 100644 --- a/src/start.php +++ b/src/start.php @@ -43,7 +43,14 @@ function add_info(string $message): void { * @param string $title The title of the page being displayed */ function page_head(string $title): void { - ?> + if (str_ends_with(FRC_VERSION, '.0.0')) { + $version = substr(FRC_VERSION, 0, strlen(FRC_VERSION) - 4); + } elseif (str_ends_with(FRC_VERSION, '.0')) { + $version = substr(FRC_VERSION, 0, strlen(FRC_VERSION) - 2); + } else { + $version = FRC_VERSION; + } ?> +
@@ -52,7 +59,7 @@ function page_head(string $title): void {