Skip to content

Commit 273097c

Browse files
authored
Merge pull request #8 from glandjs/develop
fix: fix responsev hero section
2 parents 9a41a0d + 3ed896b commit 273097c

File tree

3 files changed

+54
-51
lines changed

3 files changed

+54
-51
lines changed

public/global.css

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,11 @@ body {
11651165
opacity: 0;
11661166
}
11671167

1168+
.animate-fade-in {
1169+
animation: fadeIn 0.8s ease-out forwards;
1170+
opacity: 0;
1171+
}
1172+
11681173
@keyframes float {
11691174
0%,
11701175
100% {
@@ -1333,20 +1338,6 @@ body {
13331338
}
13341339
}
13351340

1336-
.code-block-glass {
1337-
background: radial-gradient(
1338-
ellipse at 75% 25%,
1339-
rgba(100, 108, 255, 0.15) 0%,
1340-
rgba(100, 108, 255, 0.05) 45%,
1341-
rgba(2, 8, 23, 0.9) 100%
1342-
) !important;
1343-
backdrop-filter: blur(12px);
1344-
-webkit-backdrop-filter: blur(12px);
1345-
border: 1px solid rgba(100, 108, 255, 0.15);
1346-
box-shadow: 0 8px 32px rgba(2, 8, 23, 0.5),
1347-
inset 0 0 0 1px rgba(255, 255, 255, 0.05);
1348-
}
1349-
13501341
.absolute {
13511342
position: absolute;
13521343
}
@@ -1359,6 +1350,10 @@ body {
13591350
position: sticky;
13601351
}
13611352

1353+
.-inset-4 {
1354+
inset: -1rem;
1355+
}
1356+
13621357
.inset-0 {
13631358
inset: 0px;
13641359
}
@@ -1822,6 +1817,10 @@ body {
18221817
white-space: nowrap;
18231818
}
18241819

1820+
.break-words {
1821+
overflow-wrap: break-word;
1822+
}
1823+
18251824
.rounded {
18261825
border-radius: 0.25rem;
18271826
}
@@ -2060,6 +2059,10 @@ body {
20602059
--tw-gradient-to: rgb(var(--primary) / 1) var(--tw-gradient-to-position);
20612060
}
20622061

2062+
.to-primary\/5 {
2063+
--tw-gradient-to: rgb(var(--primary) / 0.05) var(--tw-gradient-to-position);
2064+
}
2065+
20632066
.to-text-secondary {
20642067
--tw-gradient-to: rgb(var(--text-secondary) / 1) var(--tw-gradient-to-position);
20652068
}
@@ -2429,6 +2432,10 @@ body {
24292432
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
24302433
}
24312434

2435+
.filter {
2436+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
2437+
}
2438+
24322439
.backdrop-blur-lg {
24332440
--tw-backdrop-blur: blur(16px);
24342441
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
@@ -2702,22 +2709,11 @@ body {
27022709
gap: 1rem;
27032710
}
27042711

2705-
.sm\:space-y-6 > :not([hidden]) ~ :not([hidden]) {
2706-
--tw-space-y-reverse: 0;
2707-
margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
2708-
margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
2709-
}
2710-
27112712
.sm\:text-4xl {
27122713
font-size: 2.25rem;
27132714
line-height: 2.5rem;
27142715
}
27152716

2716-
.sm\:text-sm {
2717-
font-size: 0.875rem;
2718-
line-height: 1.25rem;
2719-
}
2720-
27212717
.sm\:text-xl {
27222718
font-size: 1.25rem;
27232719
line-height: 1.75rem;
@@ -2893,6 +2889,10 @@ body {
28932889
}
28942890

28952891
@media (min-width: 1024px) {
2892+
.lg\:flex {
2893+
display: flex;
2894+
}
2895+
28962896
.lg\:grid-cols-2 {
28972897
grid-template-columns: repeat(2, minmax(0, 1fr));
28982898
}

src/components/CodeBlock.astro

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22
export interface Props {
33
lang?: string;
44
filename?: string;
5-
class?: string;
6-
div?:string
75
}
86
97
const {
108
lang = "javascript",
119
filename = "",
12-
class: className = ""
1310
} = Astro.props;
1411
1512
const langColors = {
@@ -19,7 +16,7 @@ const langColors = {
1916
};
2017
---
2118

22-
<div class={`group relative rounded-lg md:rounded-xl border border-border bg-background-secondary/50 backdrop-blur-lg shadow-lg hover:shadow-xl transition-all overflow-hidden ${className}`}>
19+
<div class="group relative rounded-lg md:rounded-xl border border-border bg-background-secondary/50 backdrop-blur-lg shadow-lg hover:shadow-xl transition-all overflow-hidden">
2320
<!-- Header -->
2421
<div class="flex items-center justify-between px-3 md:px-4 py-2 md:py-3 bg-background-tertiary/80 border-b border-border">
2522
<!-- Window Controls -->
@@ -60,9 +57,9 @@ const langColors = {
6057
</div>
6158

6259
{/* Code Container */}
63-
<pre class="overflow-x-auto p-3 md:p-4 text-xs md:text-sm ">
64-
<code class="font-mono text-text-primary [&>.token]:animate-highlight">
60+
<pre class="overflow-x-auto p-3 md:p-4 text-xs md:text-sm leading-relaxed scrollbar-thin scrollbar-track-transparent scrollbar-thumb-border">
61+
<code class="font-mono text-text-primary [&>.token]:animate-highlight break-words">
6562
<slot />
6663
</code>
67-
</pre>
64+
</pre>
6865
</div>

src/sections/HeroSection.astro

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ import CodeBlock from "@components/CodeBlock.astro";
1212

1313
<div class="max-w-7xl mx-auto grid lg:grid-cols-2 gap-8 lg:gap-20 relative z-10">
1414
<!-- Text Content Column -->
15-
<div class="flex flex-col justify-center space-y-4 sm:space-y-6 text-center md:text-left">
15+
<div class="flex flex-col justify-center space-y-6 text-center md:text-left">
1616
<!-- Badge -->
17-
<div class="group inline-flex items-center gap-2 bg-background-tertiary/80 text-xs sm:text-sm backdrop-blur-sm border border-border/60 rounded-full pl-1 pr-4 py-1 w-fit mx-auto md:mx-0 animate-fade-in-up" style="animation-delay: 0.1s;">
17+
<div class="group inline-flex items-center gap-2 bg-background-tertiary/80 backdrop-blur-sm border border-border/60 rounded-full pl-1 pr-4 py-1 w-fit mx-auto md:mx-0 animate-fade-in-up" style="animation-delay: 0.1s;">
1818
<span class="bg-primary text-white px-2 py-0.5 rounded-full text-xs font-semibold tracking-wide">ALPHA</span>
1919
<span class="text-sm text-text-secondary group-hover:text-text-primary transition-colors duration-300">Now available for testing</span>
2020
</div>
2121

2222
<!-- Main Heading -->
2323
<div class="space-y-3 md:space-y-4 animate-fade-in-up" style="animation-delay: 0.3s;">
24-
<h1 class="text-2xl xs:text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-text-primary">
24+
<h1 class="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-text-primary">
2525
<span class="block text-text-primary">Scalable & Modular</span>
2626
<span class="bg-gradient-to-r from-[#6ea8fe] to-[#a56eff] bg-clip-text text-transparent">
2727
Event-Driven
@@ -60,22 +60,28 @@ import CodeBlock from "@components/CodeBlock.astro";
6060
</div>
6161

6262
<!-- Code Block Column -->
63-
<CodeBlock
64-
lang="typescript"
65-
filename="app.ts"
66-
class="code-block-glass"
67-
>
68-
{`
69-
import { GlandFactory } from '@gland/core';
70-
import { UserModule } from './user.module';
63+
<div class="relative lg:flex items-center animate-fade-in overflow-hidden" style="animation-delay: 0.9s;">
64+
<div class="relative w-full rounded-xl overflow-hidden border border-border shadow-2xl">
65+
<CodeBlock
66+
lang="typescript"
67+
filename="app"
68+
>
69+
{
70+
`
71+
import { GlandFactory } from '@gland/core';
72+
import { UserModule } from './user.module';
7173
72-
// Create app instance
73-
const app = GlandFactory.create(UserModule);
74+
// Create app instance
75+
const app = GlandFactory.create(UserModule);
7476
75-
// Start HTTP server
76-
app.listen(3000, {
77-
message: "Server running on http://localhost:3000"
78-
});
79-
`}
80-
</CodeBlock>
77+
// Start HTTP server
78+
app.listen(3000, {
79+
message: "Server running on http://localhost:3000"
80+
});
81+
`
82+
}
83+
</CodeBlock>
84+
</div>
85+
</div>
86+
</div>
8187
</section>

0 commit comments

Comments
 (0)