added ?uwu easter egg

This commit is contained in:
liyunze 2024-06-04 14:36:03 +08:00
parent 3661d7ddbd
commit 0004fcc498
3 changed files with 17 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View file

@ -102,10 +102,6 @@
onMount(async () => {
await sleep(800);
animateGreeting(greeting);
// .then(() => {
// greetingPulse.classList.remove("animate-pulse");
// greetingPulse.classList.add("hidden");
// });
await animateRoles();
});
</script>
@ -136,7 +132,14 @@
</div>
</div>
</div>
<div class="text-2xl font-bold mt-10">
<div id="uwu" class="hidden justify-center items-center">
<img
src="/images/RythonDev-UwU-compressed.webp"
alt="RythonDev"
width="400"
/>
</div>
<div class="text-2xl font-bold mt-2">
Good {greetingState}<span
bind:this={greetingPulse}
class="animate-pulse font-extralight">|</span

View file

@ -40,4 +40,13 @@ import Card from "../components/elements/Card.astro";
<div id="contact">
<Contact client:visible />
</div>
<script is:inline>
location.search.includes("?uwu") &&
document.documentElement.classList.add("uwu");
</script>
<style is:global>
.uwu #uwu {
display: flex;
}
</style>
</Layout>