Added footer & small changes
This commit is contained in:
parent
a2b2e3b077
commit
0edb205ad2
|
@ -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/)**.
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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>"
|
||||
}
|
|
@ -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>"
|
||||
}
|
|
@ -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
5
view/footer.twig
Normal file
|
@ -0,0 +1,5 @@
|
|||
<footer>
|
||||
<div class="inner">
|
||||
{{ "footer.poweredby" | t({link: 'https://github.com/FZnachor/Uptime-Status'}) | raw }}
|
||||
</div>
|
||||
</footer>
|
|
@ -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>
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
</div>
|
||||
{% if monitor.opt.rich %}
|
||||
{{ include('./heartbeats.twig') }}
|
||||
{{ include("./heartbeats.twig") }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue