Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ <h1>Happy Button</h1>
Congratulations! You clicked the button 5 times.
</p>
</main>
<p class="easter-egg-hint" aria-label="Hint about the hidden surprise">
<span aria-hidden="true">&#x2728;</span>
Пасхалка ждет тебя!
</p>
<script src="script.js"></script>
</body>
</html>
53 changes: 53 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,56 @@ h1 {
animation: none;
}
}

/* Subtle hint that points users toward the hidden surprise. */
.easter-egg-hint {
position: fixed;
right: 1rem;
bottom: 1rem;
margin: 0;
padding: 0.45rem 0.85rem;
border-radius: 999px;
background: rgb(17 24 39 / 55%);
color: rgb(255 255 255 / 88%);
font-size: 0.85rem;
font-weight: 500;
letter-spacing: 0.01em;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 18%);
display: inline-flex;
align-items: center;
gap: 0.4rem;
pointer-events: none;
user-select: none;
animation: easter-egg-hint-pulse 4s ease-in-out infinite;
}

.easter-egg-hint span {
font-size: 0.95rem;
}

@keyframes easter-egg-hint-pulse {
0%,
100% {
opacity: 0.65;
}
50% {
opacity: 1;
}
}

@media (prefers-reduced-motion: reduce) {
.easter-egg-hint {
animation: none;
opacity: 0.85;
}
}

@media (max-width: 28rem) {
.easter-egg-hint {
right: 0.5rem;
bottom: 0.5rem;
font-size: 0.78rem;
}
}