current state before improvement pass
This commit is contained in:
+36
-6
@@ -1,14 +1,44 @@
|
||||
<main class="center">
|
||||
<p class="muted">loading...</p>
|
||||
</main>
|
||||
<script lang="ts">
|
||||
// Minimal loading state - a single breathing mark.
|
||||
</script>
|
||||
|
||||
<div class="stage">
|
||||
<div class="mark">
|
||||
<span class="bar"></span>
|
||||
<span class="bar"></span>
|
||||
<span class="bar"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
main.center {
|
||||
.stage {
|
||||
min-height: 100vh;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--bg);
|
||||
}
|
||||
.muted {
|
||||
color: #777;
|
||||
|
||||
.mark {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
align-items: flex-end;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.bar {
|
||||
display: block;
|
||||
width: 3px;
|
||||
background: var(--accent);
|
||||
border-radius: 1px;
|
||||
animation: breathe 1s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.bar:nth-child(1) { height: 8px; animation-delay: 0ms; }
|
||||
.bar:nth-child(2) { height: 16px; animation-delay: 120ms; }
|
||||
.bar:nth-child(3) { height: 12px; animation-delay: 240ms; }
|
||||
|
||||
@keyframes breathe {
|
||||
0%, 100% { opacity: 0.35; transform: scaleY(0.8); }
|
||||
50% { opacity: 1; transform: scaleY(1); }
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user