mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
cute
This commit is contained in:
@@ -315,14 +315,18 @@ function About({ slides, error }: { slides: Slide[] | null; error: string }) {
|
||||
View the source
|
||||
</a>
|
||||
</div>
|
||||
<p className={`status ${state}`}>
|
||||
<span className="dot" />
|
||||
{state === 'online'
|
||||
? 'Server online'
|
||||
: state === 'down'
|
||||
? 'Server unreachable'
|
||||
: 'Checking the server'}
|
||||
</p>
|
||||
<div className="status-block">
|
||||
<p className={`status ${state}`}>
|
||||
<span className="dot" />
|
||||
{state === 'online'
|
||||
? 'Server online'
|
||||
: state === 'down'
|
||||
? 'Server unreachable'
|
||||
: 'Checking the server'}
|
||||
</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>
|
||||
</section>
|
||||
)
|
||||
|
||||
@@ -324,6 +324,20 @@ body {
|
||||
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 {
|
||||
display: inline-flex;
|
||||
|
||||
Reference in New Issue
Block a user