Skip to content

Commit

Permalink
Make the status frontend be a link to the stats page
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjrw committed May 4, 2024
1 parent a4d48f5 commit 8397be5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
1 change: 1 addition & 0 deletions stats-frontend/assets/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 32 additions & 3 deletions stats-frontend/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
--status-icon: var(--status-icon-indeterminate);
}

article {
.status-container {
display: grid;
grid-template-areas: "status header" "status footer";
grid-template-columns: 3.25rem 10.75rem;
Expand All @@ -229,6 +229,35 @@
background-color: #555;
box-shadow: 0 0.1rem 0.1rem rgba(0, 0, 0, 0.5);
overflow: hidden;

/* The status container is a link */
text-decoration: none;
color: white;
}

.status-container h1::after {
content: "";
background-image: url(assets/arrow.svg);
background-size: contain;
background-position: center;
background-repeat: no-repeat;
height: 0.8em;
width: 1.6em;
display: inline-block;

transition: opacity ease-in 0.08s, transform ease-in 0.1s;
opacity: 0;
transform: translateX(-100%);
}

.status-container:hover h1::after {
transition: opacity ease-out 0.1s, transform ease-out 0.1s;
opacity: 1;
transform: none;
}

.status-container:hover header {
text-decoration: underline;
}

aside {
Expand Down Expand Up @@ -332,7 +361,7 @@
</head>

<body>
<article>
<a class="status-container" href="//notifications.wikidot.com/status" target="_top">
<aside>
<div class="icon-logo"></div>
<div class="icon-status-wrapper">
Expand All @@ -349,6 +378,6 @@ <h1>Notifier status</h1>
Checking...
</p>
</footer>
</article>
</a>
</body>
</html>

0 comments on commit 8397be5

Please sign in to comment.