Added footer & small changes

This commit is contained in:
Filip Znachor 2023-11-01 19:34:25 +01:00
parent a2b2e3b077
commit 0edb205ad2
8 changed files with 32 additions and 9 deletions

View file

@ -2,4 +2,4 @@
# Uptime Status
An alternative public status page for **[Uptime Kuma](https://uptime.kuma.pet/)**.
Alternative public status page for **[Uptime Kuma](https://uptime.kuma.pet/)**.

View file

@ -3,7 +3,7 @@
define("UPTIME_KUMA_URL", "http://uptime-kuma.local:3001");
define("UPTIME_KUMA_PAGE", "public");
define("ENABLE_TWIG_CACHE", false);
define("ENABLE_TWIG_CACHE", true);
define("TIMEZONE", "Etc/UTC");
define("DEFAULT_LANGUAGE", "en");

View file

@ -6,5 +6,6 @@
"heartbeats.now": "nyní",
"heartbeats.ago": "před {{minutes}} minutami",
"monitor.uptime": "<b>{{pct}}%</b> uptime",
"dateformat": "j. m. Y G:i"
"dateformat": "j. m. Y G:i",
"footer.poweredby": "Poháněno projektem <b><a href=\"{{link}}\" target=\"_blank\">Uptime Status</a></b>"
}

View file

@ -6,5 +6,6 @@
"heartbeats.now": "now",
"heartbeats.ago": "{{minutes}} minutes ago",
"monitor.uptime": "<b>{{pct}}%</b> uptime",
"dateformat": "M j, Y, g:i a"
"dateformat": "M j, Y, g:i a",
"footer.poweredby": "Powered by <b><a href=\"{{link}}\" target=\"_blank\">Uptime Status</a></b>"
}

View file

@ -27,9 +27,9 @@ body {
box-sizing: border-box;
}
:is(header, section) > .inner {
:is(header, section, footer) > .inner {
max-width: 750px;
margin: auto;
margin: 40px auto;
padding: 0 10px;
}
@ -41,6 +41,14 @@ h3, h4 {
margin: 0;
}
a {
color: var(--text-color);
}
a:hover {
color: var(--title-color);
}
/* HEADER */
@ -95,6 +103,13 @@ header p {
}
/* FOOTER */
footer {
text-align: center;
}
/* GROUP */
.group {

5
view/footer.twig Normal file
View file

@ -0,0 +1,5 @@
<footer>
<div class="inner">
{{ "footer.poweredby" | t({link: 'https://github.com/FZnachor/Uptime-Status'}) | raw }}
</div>
</footer>

View file

@ -8,13 +8,14 @@
<link rel="icon" href="/icon.webp" type="image/webp">
</head>
<body>
{{ include('./header.twig') }}
{{ include("./header.twig") }}
<section>
<div class="inner">
{% for group in groups %}
{{ include('./group.twig') }}
{{ include("./group.twig") }}
{% endfor %}
</div>
</section>
{{ include("./footer.twig") }}
</body>
</html>

View file

@ -19,7 +19,7 @@
</div>
</div>
{% if monitor.opt.rich %}
{{ include('./heartbeats.twig') }}
{{ include("./heartbeats.twig") }}
{% endif %}
</div>
</div>