@@ -4,6 +4,7 @@ import Contributors from "../components/Contributors.tsx";
44import GamanLivePreview from " ../components/GamanLivePreview.tsx" ;
55import Footer from " ../components/Footer.astro" ;
66import Navbar from " ../components/Navbar.astro" ;
7+ import HeroSection from " ../components/sections/HeroSection.tsx" ;
78import " ../styles/global.css" ;
89import { features , plugins } from " ../utils/content" ;
910---
@@ -14,108 +15,13 @@ import { features, plugins } from "../utils/content";
1415 <meta charset =" UTF-8" />
1516 <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
1617 <title >GamanJS - Backend Framework</title >
17- <link rel =" shortcut icon" href =" /img/gaman-big .png" type =" image/png" />
18+ <link rel =" shortcut icon" href =" /img/new/1 .png" type =" image/png" />
1819 </head >
1920 <body class =" bg-black text-pink-100 relative overflow-x-hidden" >
2021 <Navbar />
2122
2223 <main class =" backdrop-blur-[2px]" >
23- <section
24- class =" relative flex flex-col items-center justify-center text-center px-6 h-[100dvh] overflow-hidden"
25- >
26- <div
27- class =" absolute inset-0 bg-[url('/img/pattern.png')] bg-black/50 bg-blend-multiply
28- before:absolute before:inset-0 before:bg-gradient-to-t before:from-black before:via-black/60 before:to-transparent
29- after:absolute after:inset-0 after:bg-[radial-gradient(ellipse_at_center,_rgba(255,0,150,0.1),_transparent_70%)]"
30- >
31- </div >
32-
33- <div
34- class =" absolute -top-20 -left-32 w-96 h-96 bg-pink-500/20 rounded-full blur-[160px] animate-pulse"
35- >
36- </div >
37- <div
38- class =" absolute -top-20 right-0 w-[28rem] h-[28rem] bg-purple-600/20 rounded-full blur-[180px] animate-pulse delay-1000"
39- >
40- </div >
41- <div class =" relative z-10 flex flex-col items-center" >
42- <h1
43- class =" text-5xl md:text-7xl font-extrabold leading-tight tracking-tight mb-6"
44- >
45- Build <span
46- class =" bg-gradient-to-r from-pink-400 via-purple-400 to-pink-400 bg-clip-text text-transparent"
47- >Sweet Backends</span
48- > Fast
49- </h1 >
50-
51- <p
52- class =" text-lg md:text-xl md:max-w-3xl text-stone-300 leading-relaxed mb-10"
53- >
54- GamanJS is a modern backend framework built for resilience,
55- scalability, simplicity, and blazing performance — empowering
56- developers to build beautiful APIs faster than ever.
57- </p >
58-
59- <div class =" flex flex-col gap-4 justify-center items-center" >
60- <a
61- href =" /docs"
62- class =" md:w-xs px-8 py-3 rounded-full bg-gradient-to-r from-pink-500 to-purple-500 text-white font-semibold shadow-lg shadow-pink-500/30 hover:shadow-pink-400/50 hover:scale-105 transition-all"
63- >
64- Get Started
65- </a >
66- <div
67- class =" md:w-xs relative inline-flex items-center justify-between gap-3 px-4 py-2 text-sm font-mono text-stone-200 bg-white/10 border border-white/10 rounded-md backdrop-blur-md hover:bg-white/15 transition shadow-lg shadow-white/10"
68- >
69- <span id =" command-text" class =" select-all"
70- >{ " $" } npm create gaman@latest</span
71- >
72-
73- <button
74- id =" copy-btn"
75- class =" px-2 py-0.5 text-xs rounded-md border border-white/20 bg-white/10 hover:bg-white/20 transition"
76- >
77- Copy
78- </button >
79- </div >
80-
81- <script >
82- const copyBtn = document.getElementById("copy-btn");
83- const cmd = document.getElementById("command-text");
84-
85- copyBtn?.addEventListener("click", async () => {
86- try {
87- const text = cmd?.innerText.replace("$", "").trim();
88- await navigator.clipboard.writeText(text!);
89- copyBtn.innerText = "Copied!";
90- setTimeout(() => (copyBtn.innerText = "Copy"), 1500);
91- } catch (err) {
92- console.error("Copy failed:", err);
93- }
94- });
95- </script >
96-
97- <style >
98- .transition {
99- transition: all 0.2s ease-in-out;
100- }
101-
102- .backdrop-blur-md {
103- backdrop-filter: blur(10px);
104- -webkit-backdrop-filter: blur(10px);
105- }
106-
107- .select-all {
108- user-select: all;
109- }
110- </style >
111- </div >
112- </div >
113-
114- <div
115- class =" absolute bottom-0 left-1/2 -translate-x-1/2 w-[90%] h-px bg-gradient-to-r from-transparent via-pink-500/40 to-transparent"
116- >
117- </div >
118- </section >
24+ <HeroSection client:load />
11925
12026 <!-- END: Hero Content -->
12127
0 commit comments