Skip to content

Commit ff1e827

Browse files
committed
homepage: improve design, add proper navbar
1 parent d00fb98 commit ff1e827

File tree

2 files changed

+54
-35
lines changed

2 files changed

+54
-35
lines changed

src/layouts/HomeLayout.astro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ const {
1818
<Layout {title} {description} icon={hyrpthemeIcon.src}>
1919
<Navbar {logoColors}>
2020
<Fragment slot="logo">
21-
<div class="grow"></div>
22-
{
23-
// <a href={"/"} class="flex items-center gap-4">
24-
// <img src={Logo.src} alt="Hyprland Community logo" class="size-10" />
25-
// </a>
26-
}
21+
<div class="flex grow items-center gap-2">
22+
<a href={"/"} class="flex items-center gap-4">
23+
<img src={Logo.src} alt="Hyprland Community logo" class="size-10" />
24+
</a>
25+
<p class="text-lg font-bold">Hyprland Community</p>
26+
</div>
2727
</Fragment>
2828

2929
<Fragment slot="items">

src/pages/index.astro

Lines changed: 48 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
import { Image } from "astro:assets"
32
import pyprlandIcon from "#assets/icons/pyprland.webp"
43
import { discordUrl, hyprthemeUrl, projectsUrl } from "#lib/consts"
54
import hyprthemeIcon from "#assets/icons/hyprtheme.svg"
@@ -76,45 +75,47 @@ const projects: {
7675

7776
<Layout title="Welcome to the Hyprland Community.">
7877
<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"
8079
>
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" />
8282

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>
9386

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>
10195

102-
<div
96+
<!-- <div
10397
class="pointer-events-none absolute inset-x-0 top-0 -z-10 h-[900px] min-h-screen opacity-90 mix-blend-screen"
10498
aria-hidden="true"
10599
>
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+
>
107105
</div>
108106
</main>
109107

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>
116117
<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"
118119
>
119120
{
120121
projects.map(
@@ -172,3 +173,21 @@ const projects: {
172173
/>
173174
</section>
174175
</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

Comments
 (0)