Skip to content

Commit 37fc5e9

Browse files
committed
Home page intro variant 1
1 parent a2c8e76 commit 37fc5e9

2 files changed

Lines changed: 51 additions & 40 deletions

File tree

‎src/components/Home/Intro/index.astro‎

Lines changed: 48 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@
66
type IconKey = keyof typeof svgPath
77
export interface Props {
88
pretitle: string
9+
title: string
10+
description: string
911
benefits: {
1012
title: string
1113
description: string
1214
icon: IconKey
1315
}[]
1416
}
1517
16-
const { pretitle, benefits } = Astro.props as Props
18+
const { description, benefits, pretitle, title } = Astro.props as Props
1719
1820
const svgPath = {
1921
'check-circled': 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
@@ -24,42 +26,49 @@ const svgPath = {
2426
const visibleBenefits = benefits.slice(0, 3)
2527
---
2628

27-
<div class="text-center space-y-8 bg-page-offset p-8 rounded-xl">
28-
<div class="max-w-3xl mx-auto">
29-
<h2 id="home-about-title" class="text-3xl md:text-4xl font-bold mb-6">
30-
Building the Future of Software Development
31-
</h2>
32-
<p class="text-xl text-content-active leading-relaxed mb-8">
33-
{pretitle}
34-
</p>
35-
</div>
29+
<section class="bg-content rounded-2xl p-8 md:p-12 overflow-hidden relative" aria-labelledby="home-about-title">
30+
<div class="absolute -top-32 -right-32 w-64 h-64 border border-page-base/10 rounded-full" aria-hidden="true"></div>
31+
<div class="absolute -bottom-20 -left-20 w-48 h-48 border border-page-base/10 rounded-full" aria-hidden="true"></div>
32+
33+
<div class="relative">
34+
<div class="text-center max-w-2xl mx-auto mb-10">
35+
<p class="text-xs font-bold text-spotlight uppercase tracking-widest mb-3">{pretitle}</p>
36+
<h2 id="home-about-title" class="text-3xl md:text-4xl font-black text-page-base leading-tight mb-4">
37+
{title}
38+
</h2>
39+
<p class="text-base text-page-base/70 leading-relaxed">
40+
{description}
41+
</p>
42+
</div>
3643

37-
<ul class="grid grid-cols-1 md:grid-cols-3 gap-8 mt-12 list-none p-0 m-0">
38-
{visibleBenefits.map((benefit) => (
39-
<li class="text-center">
40-
<div
41-
class="w-16 h-16 bg-spotlight bg-opacity-10 rounded-full flex items-center justify-center mx-auto mb-4"
42-
>
43-
<svg
44-
class="w-8 h-8 text-primary"
45-
fill="none"
46-
stroke="currentColor"
47-
viewBox="0 0 24 24"
48-
aria-hidden="true"
49-
focusable="false"
50-
>
51-
<path
52-
stroke-linecap="round"
53-
stroke-linejoin="round"
54-
stroke-width="2"
55-
d={svgPath[benefit.icon]}></path>
56-
</svg>
57-
</div>
58-
<h3 class="mb-2 text-content-active">{benefit.title}</h3>
59-
<p class="text-content">
60-
{benefit.description}
61-
</p>
62-
</li>
63-
))}
64-
</ul>
65-
</div>
44+
<ul class="grid grid-cols-1 md:grid-cols-3 gap-6 list-none p-0 m-0">
45+
{visibleBenefits.map((benefit) => (
46+
<li class="border border-page-base/15 rounded-xl p-6 hover:border-spotlight/40 transition-colors group">
47+
<div class="flex items-center gap-3 mb-4">
48+
<div
49+
class="w-10 h-10 rounded-lg bg-spotlight/20 flex items-center justify-center group-hover:bg-spotlight/30 transition-colors"
50+
>
51+
<svg
52+
class="w-5 h-5 text-spotlight"
53+
fill="none"
54+
stroke="currentColor"
55+
viewBox="0 0 24 24"
56+
aria-hidden="true"
57+
focusable="false"
58+
>
59+
<path
60+
stroke-linecap="round"
61+
stroke-linejoin="round"
62+
stroke-width="2"
63+
d={svgPath[benefit.icon]}
64+
></path>
65+
</svg>
66+
</div>
67+
<h3 class="text-base font-bold text-page-base">{benefit.title}</h3>
68+
</div>
69+
<p class="text-sm text-page-base/60 leading-relaxed">{benefit.description}</p>
70+
</li>
71+
))}
72+
</ul>
73+
</div>
74+
</section>

‎src/pages/index.astro‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ const sectionClasses = 'container mx-auto px-4 sm:px-6 lg:px-8 py-4 md:py-8 lg:p
3232
aria-labelledby="home-about-title"
3333
>
3434
<Intro
35-
pretitle="I'm a freelance software engineer specializing in platform engineering, cloud architecture, and developer experience optimization. With deep expertise in modern technologies and a focus on scalable solutions, I help businesses transform their technical infrastructure and accelerate development workflows. SOC-2 ready."
35+
pretitle="What I Do"
36+
title="Building the Future of Software Development"
37+
description="I'm a freelance software engineer specializing in platform engineering, cloud architecture, and developer experience optimization. With deep expertise in modern technologies and a focus on scalable solutions, I help businesses transform their technical infrastructure and accelerate development workflows. SOC-2 ready."
3638
benefits={[
3739
{
3840
title: "Platform Engineering",

0 commit comments

Comments
 (0)