Skip to content

Commit 8397be5

Browse files
committed
Make the status frontend be a link to the stats page
1 parent a4d48f5 commit 8397be5

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

stats-frontend/assets/arrow.svg

Lines changed: 1 addition & 0 deletions
Loading

stats-frontend/status.html

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
--status-icon: var(--status-icon-indeterminate);
218218
}
219219

220-
article {
220+
.status-container {
221221
display: grid;
222222
grid-template-areas: "status header" "status footer";
223223
grid-template-columns: 3.25rem 10.75rem;
@@ -229,6 +229,35 @@
229229
background-color: #555;
230230
box-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.5);
231231
overflow: hidden;
232+
233+
/* The status container is a link */
234+
text-decoration: none;
235+
color: white;
236+
}
237+
238+
.status-container h1::after {
239+
content: "";
240+
background-image: url(assets/arrow.svg);
241+
background-size: contain;
242+
background-position: center;
243+
background-repeat: no-repeat;
244+
height: 0.8em;
245+
width: 1.6em;
246+
display: inline-block;
247+
248+
transition: opacity ease-in 0.08s, transform ease-in 0.1s;
249+
opacity: 0;
250+
transform: translateX(-100%);
251+
}
252+
253+
.status-container:hover h1::after {
254+
transition: opacity ease-out 0.1s, transform ease-out 0.1s;
255+
opacity: 1;
256+
transform: none;
257+
}
258+
259+
.status-container:hover header {
260+
text-decoration: underline;
232261
}
233262

234263
aside {
@@ -332,7 +361,7 @@
332361
</head>
333362

334363
<body>
335-
<article>
364+
<a class="status-container" href="//notifications.wikidot.com/status" target="_top">
336365
<aside>
337366
<div class="icon-logo"></div>
338367
<div class="icon-status-wrapper">
@@ -349,6 +378,6 @@ <h1>Notifier status</h1>
349378
Checking...
350379
</p>
351380
</footer>
352-
</article>
381+
</a>
353382
</body>
354383
</html>

0 commit comments

Comments
 (0)