|
1 | 1 | --- |
2 | | -import { Image } from "astro:assets" |
3 | 2 | import pyprlandIcon from "#assets/icons/pyprland.webp" |
4 | 3 | import { discordUrl, hyprthemeUrl, projectsUrl } from "#lib/consts" |
5 | 4 | import hyprthemeIcon from "#assets/icons/hyprtheme.svg" |
@@ -76,45 +75,47 @@ const projects: { |
76 | 75 |
|
77 | 76 | <Layout title="Welcome to the Hyprland Community."> |
78 | 77 | <main |
79 | | - class="flex min-h-[max(52rem,calc(100vh-8rem))] w-full min-w-0 flex-col items-center justify-center gap-8 p-4 md:gap-12 md:p-8" |
| 78 | + class="relative flex min-h-[max(38rem,calc(90vh-15rem))] w-full min-w-0 flex-col items-center justify-center gap-8 p-4 md:gap-12 md:p-8 lg:flex-row" |
80 | 79 | > |
81 | | - <img src={Logo.src} alt="Hyprland Community Logo" class="size-80" /> |
| 80 | + <div class="flex max-w-[32rem] flex-col items-center"> |
| 81 | + <FancyTitle label="Create together" class="text-center" /> |
82 | 82 |
|
83 | | - <FancyTitle |
84 | | - label="Hyprland Community" |
85 | | - colors={["#0ee7f6", "#00237a", "#00A2F8"]} |
86 | | - /> |
87 | | - |
88 | | - <p |
89 | | - class="mb-6 text-center text-lg font-bold text-slate-300 lg:text-xl xl:text-2xl" |
90 | | - > |
91 | | - A place where people work together to create awesome things for Hyprland |
92 | | - </p> |
| 83 | + <p class="mb-6 text-center text-lg font-bold text-slate-300 lg:text-xl"> |
| 84 | + A place where people work together to create awesome things for Hyprland |
| 85 | + </p> |
93 | 86 |
|
94 | | - <FancyButton |
95 | | - class="z-10" |
96 | | - label="Join our Discord" |
97 | | - href={discordUrl} |
98 | | - type="link" |
99 | | - newTab={true} |
100 | | - /> |
| 87 | + <FancyButton |
| 88 | + class="z-10 max-w-max" |
| 89 | + label="Join our Discord" |
| 90 | + href={discordUrl} |
| 91 | + type="link" |
| 92 | + newTab={true} |
| 93 | + /> |
| 94 | + </div> |
101 | 95 |
|
102 | | - <div |
| 96 | + <!-- <div |
103 | 97 | class="pointer-events-none absolute inset-x-0 top-0 -z-10 h-[900px] min-h-screen opacity-90 mix-blend-screen" |
104 | 98 | aria-hidden="true" |
105 | 99 | > |
106 | | - <Image src={bg} alt="" class="h-full w-full" /> |
| 100 | + <Image src={bg} alt="" loading="eager" class="h-full w-full" /> |
| 101 | + </div> --> |
| 102 | + <div |
| 103 | + class="absolute -bottom-96 -z-20 size-full min-h-screen bg-gradient-to-t" |
| 104 | + > |
107 | 105 | </div> |
108 | 106 | </main> |
109 | 107 |
|
110 | | - <section class="mt-10 flex w-full flex-col gap-8"> |
111 | | - <h2 |
112 | | - class="-z-10 -mb-12 bg-gradient-to-t from-transparent to-white bg-clip-text text-center text-5xl font-bold tracking-tighter text-transparent opacity-50 md:text-7xl lg:text-8xl xl:text-9xl 2xl:[font-size:10rem]" |
113 | | - > |
114 | | - Some of our projects |
115 | | - </h2> |
| 108 | + <section class="flex w-full flex-col gap-8"> |
| 109 | + <div class="relative"> |
| 110 | + <h2 |
| 111 | + class="_text-stroke -z-10 -mb-8 text-center text-5xl font-bold tracking-tight text-black sm:text-6xl md:text-7xl lg:-mb-11 lg:text-8xl xl:text-9xl 2xl:[font-size:10rem]" |
| 112 | + data-text="Some of our projects" |
| 113 | + > |
| 114 | + Some of our projects |
| 115 | + </h2> |
| 116 | + </div> |
116 | 117 | <ul |
117 | | - class="z-20 mx-auto mb-24 flex w-full max-w-screen-3xl flex-col justify-center gap-4 px-4 md:gap-5 md:px-8 lg:gap-6 lg:px-12 xl:grid xl:grid-cols-6 xl:gap-8" |
| 118 | + class="z-20 mx-auto mb-24 flex w-full max-w-screen-3xl flex-col justify-center gap-4 px-4 md:gap-5 lg:gap-6 lg:px-6 xl:grid xl:grid-cols-6 xl:gap-8" |
118 | 119 | > |
119 | 120 | { |
120 | 121 | projects.map( |
@@ -172,3 +173,21 @@ const projects: { |
172 | 173 | /> |
173 | 174 | </section> |
174 | 175 | </Layout> |
| 176 | + |
| 177 | +<style> |
| 178 | + ._text-stroke { |
| 179 | + text-shadow: -4px -4px theme(colors.deepCyan); |
| 180 | + |
| 181 | + @media (min-width: theme(screens.lg)) { |
| 182 | + text-shadow: -6px -6px theme(colors.deepCyan); |
| 183 | + } |
| 184 | + } |
| 185 | + ._text-stroke::before { |
| 186 | + content: attr(data-text); |
| 187 | + --middle: black; |
| 188 | + -webkit-text-stroke: 8px theme(colors.deepPurple); |
| 189 | + position: absolute; |
| 190 | + z-index: -1; |
| 191 | + pointer-events: none; |
| 192 | + } |
| 193 | +</style> |
0 commit comments