Skip to content

Commit 1ac9f03

Browse files
committed
Update the hero section.
Update the floating element at the top of the section Introduce a new font for the main text. Update the content and styles of the Features cards.
1 parent 28227a0 commit 1ac9f03

File tree

6 files changed

+43
-30
lines changed

6 files changed

+43
-30
lines changed

public/glass.jpg

3.19 MB
Loading

src/components/landing/Decorations.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
</div>
66

77
{/* Noise texture overlay */}
8-
<div class="fixed inset-0 bg-[url('/noise.svg')] opacity-50 -z-10"></div>
8+
<div class="fixed inset-0 bg-[url('/glass.jpg')] opacity-5 -z-10"></div>
Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
import { Flame, Sparkles, Stars } from "lucide-astro";
2+
import { Flame, Sparkles, Stars, CloudFog, Brain, Glasses, PartyPopper } from "lucide-astro";
3+
import Hero from "./Hero.astro";
34
---
45

56
{/* Features Section */}
@@ -11,53 +12,57 @@ import { Flame, Sparkles, Stars } from "lucide-astro";
1112
class="group relative overflow-hidden rounded-2xl border border-purple-500/20 bg-purple-500/[0.02] p-6 transition-all duration-300 hover:bg-purple-500/[0.04] hover:shadow-[0_0_30px_rgba(139,92,246,0.1)] hover:-translate-y-1"
1213
>
1314
<div
14-
class="absolute inset-0 bg-gradient-to-br from-purple-500/10 via-transparent to-transparent opacity-0 transition-opacity group-hover:opacity-100"
15+
class="absolute inset-0 bg-gradient-to-br from-purple-500/8 via-transparent to-transparent opacity-60 transition-opacity group-hover:opacity-100"
1516
>
1617
</div>
1718
<div class="mb-4 inline-flex rounded-xl bg-purple-500/10 p-3">
18-
<Flame class="h-6 w-6 text-purple-400" />
19+
<Brain class="h-6 w-6 text-purple-400" />
1920
</div>
2021
<h3 class="mb-2 text-xl font-semibold text-purple-200">
21-
Console Magic
22+
Peace of mind
2223
</h3>
2324
<p class="text-purple-200/70">
24-
Transform your browser console into a dazzling display with just a simple phrase.
25+
Embed Cascarilla.js into your website and rest assured everything will be just fine.
2526
</p>
2627
</div>
2728

2829
<div
29-
class="group relative overflow-hidden rounded-2xl border border-pink-500/20 bg-pink-500/[0.02] p-6 transition-all duration-300 hover:bg-pink-500/[0.04] hover:shadow-[0_0_30px_rgba(236,72,153,0.1)] hover:-translate-y-1"
30+
class="group relative overflow-hidden rounded-2xl border border-red-500/20 bg-orange-500/[0.02] p-6 transition-all duration-300 hover:bg-red-500/[0.04] hover:shadow-[0_0_30px_rgba(239,131,68,0.1)] hover:-translate-y-1"
3031
>
3132
<div
32-
class="absolute inset-0 bg-gradient-to-br from-pink-500/10 via-transparent to-transparent opacity-0 transition-opacity group-hover:opacity-100"
33+
class="absolute inset-0 bg-gradient-to-br from-red-500/8 via-transparent to-transparent opacity-60 transition-opacity group-hover:opacity-100"
3334
>
3435
</div>
35-
<div class="mb-4 inline-flex rounded-xl bg-pink-500/10 p-3">
36-
<Stars class="h-6 w-6 text-pink-400" />
36+
<div class="mb-4 inline-flex rounded-xl bg-red-500/10 p-3">
37+
<Flame class="h-6 w-6 text-red-400" />
3738
</div>
38-
<h3 class="mb-2 text-xl font-semibold text-pink-200">
39-
Effortless Incantations
39+
<h3 class="mb-2 text-xl font-semibold text-red-200">
40+
Fire prove your site
4041
</h3>
41-
<p class="text-pink-200/70">
42-
Invoke powerful console displays with minimal code - just speak the magic words.
42+
<p class="text-red-200/70">
43+
It is statistically demonstrated that the use of Cascarilla.js results in less crashes in production.
4344
</p>
4445
</div>
4546

4647
<div
47-
class="group relative overflow-hidden rounded-2xl border border-red-500/20 bg-red-500/[0.02] p-6 transition-all duration-300 hover:bg-red-500/[0.04] hover:shadow-[0_0_30px_rgba(239,68,68,0.1)] hover:-translate-y-1"
48+
class="group relative overflow-hidden rounded-2xl border border-pink-500/20 bg-pink-500/[0.02] p-6 transition-all duration-300 hover:bg-pink-500/[0.04] hover:shadow-[0_0_30px_rgba(236,72,153,0.1)] hover:-translate-y-1"
4849
>
4950
<div
50-
class="absolute inset-0 bg-gradient-to-br from-red-500/10 via-transparent to-transparent opacity-0 transition-opacity group-hover:opacity-100"
51+
class="absolute inset-0 bg-gradient-to-br from-pink-500/8 via-transparent to-transparent opacity-60 transition-opacity group-hover:opacity-100"
5152
>
5253
</div>
53-
<div class="mb-4 inline-flex rounded-xl bg-red-500/10 p-3">
54-
<Sparkles class="h-6 w-6 text-red-400" />
54+
<div class="mb-4 inline-flex rounded-xl bg-pink-500/10 p-3">
55+
<PartyPopper class="h-6 w-6 text-pink-400" />
5556
</div>
56-
<h3 class="mb-2 text-xl font-semibold text-red-200">Visual Spellcraft</h3>
57-
<p class="text-red-200/70">
58-
Cast stunning visual effects in your console with simple, memorable phrases.
57+
<h3 class="mb-2 text-xl font-semibold text-pink-200">
58+
Be cool
59+
</h3>
60+
<p class="text-pink-200/70">
61+
By using Cascarilla.js you officially belong to the coolest of Cuban developers, no matter where you are.
5962
</p>
6063
</div>
64+
65+
6166
</div>
6267
</div>
6368
</section>

src/components/landing/Hero.astro

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { Github, Sparkles, Wand2, Zap } from "lucide-astro";
2+
import { Github, Heart, Sparkles, Wand2, Zap, Wand, Vibrate, Star } from "lucide-astro";
33
---
44

55
{/* Hero Section */}
@@ -25,20 +25,18 @@ import { Github, Sparkles, Wand2, Zap } from "lucide-astro";
2525
<div class="text-center">
2626
<div class="inline-block animate-float">
2727
<div
28-
class="mb-6 inline-flex items-center gap-2 rounded-full border border-purple-400/30 bg-purple-500/10 px-4 py-2 text-sm text-purple-300 backdrop-blur-sm transition-colors hover:border-purple-400/50 hover:bg-purple-500/20"
28+
class="mb-6 inline-flex items-center gap-2 rounded-full bg-purple-500/5 px-6 py-4 text-sm text-purple-300 backdrop-blur-sm"
2929
>
30-
<Sparkles class="h-4 w-4" />
31-
<span>Add Magic to your Website</span>
32-
<div class="h-1.5 w-1.5 rounded-full bg-purple-400 animate-pulse">
33-
</div>
30+
<Star class="h-4 w-4 stroke-1 stroke-amber-300 fill-amber-300" />
31+
<span>Add Good Vibes to your Website</span>
3432
</div>
3533
</div>
3634

3735
<h1
3836
class="mb-6 text-4xl font-bold tracking-tight sm:text-6xl md:text-7xl"
3937
>
4038
<span
41-
class="animate-text-shimmer bg-[linear-gradient(45deg,#8b5cf6,#ec4899,#f43f5e,#8b5cf6)] bg-[length:200%_auto] bg-clip-text text-transparent"
39+
class="animate-text-shimmer bg-[linear-gradient(45deg,#8b5cf6,#ec4899,#f43f5e,#8b5cf6)] bg-[length:200%_auto] bg-clip-text text-transparent knewave-regular"
4240
>
4341
Cascarilla.js
4442
</span>
@@ -66,7 +64,7 @@ import { Github, Sparkles, Wand2, Zap } from "lucide-astro";
6664
class="group relative max-w-max h-12 overflow-hidden rounded-full border-2 border-purple-600 px-6 transition-all hover:border-purple-700 hover:shadow-[0_0_20px_rgba(139,92,246,0.3)] hover:scale-105 cursor-pointer flex justify-center items-center"
6765
>
6866
<span class="relative z-10 flex items-center gap-2">
69-
<Github/>
67+
<Github class="h-5 w-5 group-hover:rotate-12 group-hover:mr-1"/>
7068
Source Code
7169
</span>
7270
</a>

src/layouts/Layout.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import "../styles/global.css";
55
<!doctype html>
66
<html lang="en">
77
<head>
8+
<link rel="preconnect" href="https://fonts.googleapis.com">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=Knewave&display=swap" rel="stylesheet">
811
<meta charset="UTF-8" />
912
<meta name="viewport" content="width=device-width" />
1013
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />

src/styles/global.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,11 @@ button {
5050

5151
html {
5252
scroll-behavior: smooth;
53-
}
53+
}
54+
55+
.knewave-regular {
56+
font-family: "Knewave", system-ui;
57+
font-weight: 400;
58+
font-style: normal;
59+
letter-spacing: 2px;
60+
}

0 commit comments

Comments
 (0)