Add ULLI weather easter egg to falling background particles
This commit is contained in:
1 parent
955f47ccd6
commit
98182c179f
11 files changed
+399
-21
No files matched your search
+2
-8
@@ -10,15 +10,7 @@
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; background: #f5efe3; color: var(--ink); }
|
||||
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.42; background: radial-gradient(circle at 12% 8%, #fff8e7 0 0.7rem, transparent 13rem), radial-gradient(circle at 88% 24%, #ead8bd 0 0.45rem, transparent 15rem); }
|
||||
.leaf-field { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:1; }
|
||||
.leaf { position:absolute; top:-3rem; width:1.1rem; height:1.65rem; border-radius:100% 0 100% 0; background:var(--accent); box-shadow:inset .18rem -.12rem 0 #8e431d; opacity:.62; transform:rotate(35deg); animation:leaf-fall 15s linear infinite; }
|
||||
.leaf:nth-child(2n) { background:var(--gold); width:.82rem; height:1.3rem; animation-duration:19s; }
|
||||
.leaf:nth-child(3n) { background:#a84e22; width:1.35rem; height:1.85rem; animation-duration:22s; }
|
||||
.leaf:nth-child(1) { left:7%; animation-delay:-4s; } .leaf:nth-child(2) { left:18%; animation-delay:-12s; } .leaf:nth-child(3) { left:32%; animation-delay:-7s; }
|
||||
.leaf:nth-child(4) { left:49%; animation-delay:-16s; } .leaf:nth-child(5) { left:64%; animation-delay:-2s; } .leaf:nth-child(6) { left:78%; animation-delay:-10s; } .leaf:nth-child(7) { left:91%; animation-delay:-18s; }
|
||||
@keyframes leaf-fall { 0% { transform:translate3d(0,-4rem,0) rotate(20deg); } 45% { transform:translate3d(3.5rem,48vh,0) rotate(170deg); } 100% { transform:translate3d(-4rem,112vh,0) rotate(330deg); } }
|
||||
main, dialog { position:relative; z-index:2; }
|
||||
@media (prefers-reduced-motion: reduce) { .leaf { animation: none; top: 8vh; opacity: .16; } }
|
||||
main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 64px; }
|
||||
h1 { margin: 0; font: 500 clamp(2rem, 4vw, 3.25rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
|
||||
h2 { margin: 0 0 8px; font: 500 2rem/1.1 Georgia, "Times New Roman", serif; }
|
||||
@@ -109,6 +101,8 @@
|
||||
.gallery-footer button { min-height: 34px; padding: 5px 10px; }
|
||||
@media (max-width: 720px) { main { width: calc(100% - 28px); padding-top: 28px; } .topbar { display: block; } .record-count { display: block; margin-top: 18px; } .controls { display: grid; grid-template-columns: 1fr 1fr; } .control-group:first-child, .controls > button, .controls > .export-link { grid-column: 1 / -1; } input { min-width: 0; width: 100%; } .auth-form { display: grid; } .application-layout { grid-template-columns:1fr; }.application-list { border-right:0; border-bottom:1px solid var(--line); }.application-detail dl { grid-template-columns:1fr; gap:4px; }.application-detail dd { margin-bottom:14px; } .weekday-field { grid-column: 1 / -1; min-width: 0; } .weekday-options { gap: 4px; } }
|
||||
</style>
|
||||
<link rel="stylesheet" href="/api/weather/effect.css">
|
||||
<script src="/api/weather/effect.js" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="leaf-field" aria-hidden="true"><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span><span class="leaf"></span></div>
|
||||
|
||||
Reference in new issue
Block a user