@@ -30,6 +30,7 @@ import "../styles/global.css";
30
30
[x-cloak] {
31
31
display: none !important;
32
32
}
33
+
33
34
</style >
34
35
</head >
35
36
<body x-data =" { scrollPosition: 0, mobileMenuOpen: false }" @scroll.window =" scrollPosition = window.scrollY" class =" bg-white" :class =" { 'no-scroll': mobileMenuOpen }" >
@@ -38,13 +39,21 @@ import "../styles/global.css";
38
39
<!-- Text overlay as background texture with parallax effect -->
39
40
<div class =" absolute inset-0 w-full h-full overflow-hidden" >
40
41
<div
41
- class =" text-darker-gray text-[50vw] sm:text-[33vw ] font-black font-display leading-[0.9] text-center uppercase absolute top-1/2 left-1/2 w-[150%] select-none"
42
+ class =" text-darker-gray text-[50vw] sm:text-[25vw ] font-black font-display leading-[0.9] text-center uppercase absolute top-1/2 left-1/2 w-[150%] select-none"
42
43
x-bind:style =" 'transform: translate(-50%, -50%) rotate(45deg) translateY(' + scrollPosition * 0.6 + 'px)'"
43
44
>
44
45
Some blog entry headline thats quite long
45
46
</div >
46
47
</div >
47
48
49
+
50
+ <!-- Red blob with horizontal parallax effect - positioned directly in the header --> '
51
+ <div class =" absolute top-0 bottom-0 left-0 right-0" >
52
+ <div class =" max-w-screen-xl mx-auto h-full flex justify-end items-end" >
53
+ <img src =" /images/example.png" class =" select-none h-[80%]" x-bind:style =" 'transform: translateY(' + scrollPosition * 0.67 + 'px)'" />
54
+ </div >
55
+ </div >
56
+
48
57
<!-- Navigation Bar with transparent background -->
49
58
<div class =" relative z-10 flex justify-center text-white px-8 sm:px-20" >
50
59
<nav class =" flex justify-between items-center py-6 w-full max-w-screen-md" >
@@ -72,7 +81,7 @@ import "../styles/global.css";
72
81
<!-- Headline with same padding as content -->
73
82
<div class =" relative z-10 text-center text-white max-w-screen-md mx-auto px-8 sm:px-20" >
74
83
<div class =" py-15 sm:py-20" >
75
- <h1 class =" text-4xl sm:text-6xl font-bold font-display leading-tight" >
84
+ <h1 class =" text-4xl sm:text-6xl font-bold font-display leading-tight text-stroke " >
76
85
Some blog entry headline that's quite long
77
86
</h1 >
78
87
</div >
@@ -136,7 +145,7 @@ import "../styles/global.css";
136
145
</div >
137
146
138
147
<!-- Black Footer with smaller navigation (always visible) -->
139
- <footer class =" bg-black text-white py-10 mt-20 " >
148
+ <footer class =" bg-black text-white py-10" >
140
149
<div class =" flex justify-center px-8 sm:px-20" >
141
150
<div class =" flex justify-between items-center w-full max-w-screen-md" >
142
151
<div class =" text-lg font-bold" >LOGO</div >
0 commit comments