mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 23:21:30 -07:00
cute
This commit is contained in:
@@ -315,6 +315,7 @@ function About({ slides, error }: { slides: Slide[] | null; error: string }) {
|
|||||||
View the source
|
View the source
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="status-block">
|
||||||
<p className={`status ${state}`}>
|
<p className={`status ${state}`}>
|
||||||
<span className="dot" />
|
<span className="dot" />
|
||||||
{state === 'online'
|
{state === 'online'
|
||||||
@@ -323,6 +324,9 @@ function About({ slides, error }: { slides: Slide[] | null; error: string }) {
|
|||||||
? 'Server unreachable'
|
? 'Server unreachable'
|
||||||
: 'Checking the server'}
|
: 'Checking the server'}
|
||||||
</p>
|
</p>
|
||||||
|
{/* Only when it's actually up: when it isn't, people want the status, not the joke. */}
|
||||||
|
{state === 'online' && <p className="status-quip">The cloud never goes down, right?</p>}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -324,6 +324,20 @@ body {
|
|||||||
gap: 12px;
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.status-block {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-quip {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--muted);
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
/* Status of the actual server, not decoration — see About. */
|
/* Status of the actual server, not decoration — see About. */
|
||||||
.status {
|
.status {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user