blob: 9cd80144d4c8f68bcc1a202c44c333b629d22b77 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<script lang="ts">
type Props = {
mouseX: number;
mouseY: number;
};
let { mouseX = 0, mouseY = 0 }: Props = $props();
</script>
<div class="absolute inset-0 z-0 overflow-hidden">
<!-- Parallax Background Layers -->
<div class="absolute inset-0 bg-gradient-to-t from-[#09090b] via-[#09090b]/40 to-transparent"></div>
</div>
<div class="relative z-10 h-full flex flex-col justify-end p-12 pb-24">
<!-- 3D Floating Hero Text -->
<div
class="transition-transform duration-200 ease-out origin-bottom-left"
style:transform={`perspective(1000px) rotateX(${mouseY * -2}deg) rotateY(${mouseX * 2}deg)`}
>
<h1
class="text-8xl font-black tracking-tighter dark:text-white text-gray-900 drop-shadow-2xl mb-4"
style:text-shadow="0 10px 30px rgba(0,0,0,0.5)"
>
MINECRAFT
</h1>
<div class="flex items-center gap-4">
<div
class="bg-white/10 dark:bg-white/10 bg-black/5 backdrop-blur-md border dark:border-white/10 border-black/10 px-4 py-1.5 rounded-full text-sm font-bold uppercase tracking-widest text-emerald-500 dark:text-emerald-400 shadow-xl"
>
Java Edition
</div>
<div class="text-2xl font-light dark:text-zinc-300 text-gray-600">
Latest Release 1.21
</div>
</div>
</div>
<!-- Action Area -->
<div class="mt-8 flex gap-4">
<!-- Quick Play Button (Visual only here, logic is in BottomBar usually) -->
<div class="dark:text-zinc-400 text-gray-500 text-sm italic">
Ready to play. Select version below or hit Launch.
</div>
</div>
</div>
|