Skip to content

Commit 7fd22e1

Browse files
refactor: simplify homepage design and content
Co-authored-by: aider (deepseek/deepseek-chat) <aider@aider.chat>
1 parent f651aeb commit 7fd22e1

File tree

2 files changed

+34
-107
lines changed

2 files changed

+34
-107
lines changed

website/src/pages/index.module.css

Lines changed: 28 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,24 @@
44
*/
55

66
.heroBanner {
7-
padding: 5rem 0;
7+
padding: 4rem 0;
88
text-align: center;
99
position: relative;
1010
overflow: hidden;
11-
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
11+
background: #f8fafc;
1212
color: #2d3748;
1313
}
1414

1515
.heroContent {
16-
max-width: 800px;
16+
max-width: 600px;
1717
margin: 0 auto;
18-
padding: 2rem 1rem;
18+
padding: 1rem;
1919
}
2020

2121
.welcomeMessage {
22-
display: inline-flex;
23-
align-items: center;
24-
gap: 0.5rem;
25-
background: rgba(255, 255, 255, 0.8);
26-
padding: 0.8rem 1.5rem;
27-
border-radius: 2rem;
28-
font-size: 1.1rem;
29-
font-weight: 600;
30-
margin-bottom: 2rem;
31-
backdrop-filter: blur(10px);
32-
border: 1px solid rgba(255, 255, 255, 0.5);
33-
color: #4a5568;
22+
font-size: 1rem;
23+
color: #718096;
24+
margin-bottom: 1rem;
3425
}
3526

3627
.wave {
@@ -45,136 +36,83 @@
4536
}
4637

4738
.heroTitle {
48-
font-size: 3rem;
39+
font-size: 2.5rem;
4940
font-weight: 700;
5041
line-height: 1.2;
51-
margin-bottom: 1.5rem;
42+
margin-bottom: 1rem;
5243
color: #2d3748;
5344
}
5445

55-
.highlight {
56-
color: #4299e1;
57-
background: linear-gradient(120deg, #4299e1 0%, #38b2ac 100%);
58-
-webkit-background-clip: text;
59-
-webkit-text-fill-color: transparent;
60-
background-clip: text;
61-
}
62-
6346
.heroSubtitle {
64-
font-size: 1.25rem;
65-
line-height: 1.6;
66-
margin-bottom: 2.5rem;
47+
font-size: 1.1rem;
48+
line-height: 1.5;
49+
margin-bottom: 2rem;
6750
color: #4a5568;
68-
max-width: 600px;
51+
max-width: 500px;
6952
margin-left: auto;
7053
margin-right: auto;
7154
}
7255

73-
.featureIcons {
74-
display: flex;
75-
justify-content: center;
76-
gap: 2rem;
77-
margin-bottom: 2.5rem;
78-
}
79-
80-
.featureIcon {
81-
font-size: 2.5rem;
82-
padding: 1rem;
83-
background: white;
84-
border-radius: 50%;
85-
width: 80px;
86-
height: 80px;
87-
display: flex;
88-
align-items: center;
89-
justify-content: center;
90-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
91-
transition: transform 0.3s ease;
92-
}
93-
94-
.featureIcon:hover {
95-
transform: scale(1.1) rotate(5deg);
96-
}
97-
9856
.buttons {
9957
display: flex;
10058
align-items: center;
10159
justify-content: center;
102-
gap: 1.5rem;
103-
margin-bottom: 2rem;
60+
gap: 1rem;
10461
}
10562

10663
.ctaButton {
107-
background: linear-gradient(135deg, #4299e1 0%, #38b2ac 100%);
64+
background: #4299e1;
10865
border: none;
109-
padding: 1rem 2rem;
66+
padding: 0.8rem 1.5rem;
11067
font-weight: 600;
111-
border-radius: 2rem;
112-
transition: all 0.3s ease;
113-
box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
68+
border-radius: 0.5rem;
69+
transition: all 0.2s ease;
11470
color: white;
11571
}
11672

11773
.ctaButton:hover {
118-
transform: translateY(-2px);
119-
box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
74+
background: #3182ce;
12075
color: white;
12176
text-decoration: none;
12277
}
12378

12479
.secondaryButton {
12580
background: white;
126-
border: 2px solid #4299e1;
81+
border: 1px solid #4299e1;
12782
color: #4299e1;
128-
padding: 1rem 2rem;
83+
padding: 0.8rem 1.5rem;
12984
font-weight: 600;
130-
border-radius: 2rem;
131-
transition: all 0.3s ease;
85+
border-radius: 0.5rem;
86+
transition: all 0.2s ease;
13287
}
13388

13489
.secondaryButton:hover {
13590
background: #4299e1;
13691
color: white;
137-
transform: translateY(-2px);
13892
text-decoration: none;
13993
}
14094

141-
.friendlyNote {
142-
font-size: 0.95rem;
143-
color: #718096;
144-
font-style: italic;
145-
}
146-
14795
@media screen and (max-width: 996px) {
14896
.heroBanner {
149-
padding: 3rem 1rem;
97+
padding: 2rem 1rem;
15098
}
15199

152100
.heroTitle {
153-
font-size: 2.2rem;
101+
font-size: 2rem;
154102
}
155103

156104
.heroSubtitle {
157-
font-size: 1.1rem;
158-
}
159-
160-
.featureIcons {
161-
gap: 1rem;
162-
}
163-
164-
.featureIcon {
165-
width: 60px;
166-
height: 60px;
167-
font-size: 1.8rem;
105+
font-size: 1rem;
168106
}
169107

170108
.buttons {
171109
flex-direction: column;
172-
gap: 1rem;
110+
gap: 0.5rem;
173111
}
174112

175113
.ctaButton,
176114
.secondaryButton {
177115
width: 100%;
178-
max-width: 280px;
116+
max-width: 200px;
179117
}
180118
}

website/src/pages/index.tsx

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,27 @@ function HomepageHeader() {
1515
<div className="container">
1616
<div className={styles.heroContent}>
1717
<div className={styles.welcomeMessage}>
18-
<span className={styles.wave}>👋</span> Hello there!
18+
<span className={styles.wave}>👋</span> Hello!
1919
</div>
2020
<Heading as="h1" className={styles.heroTitle}>
21-
Let's make development
22-
<span className={styles.highlight}> delightful</span> together
21+
AI Development Assistant
2322
</Heading>
2423
<p className={styles.heroSubtitle}>
25-
Your friendly AI assistant that helps automate tasks, streamline workflows,
26-
and make your coding experience more enjoyable. Spend less time on repetitive work
27-
and more time creating amazing things.
24+
Automate tasks and streamline workflows.
25+
Focus on creating while we handle the routine work.
2826
</p>
29-
<div className={styles.featureIcons}>
30-
<div className={styles.featureIcon}></div>
31-
<div className={styles.featureIcon}>🤖</div>
32-
<div className={styles.featureIcon}>🎯</div>
33-
<div className={styles.featureIcon}></div>
34-
</div>
3527
<div className={styles.buttons}>
3628
<Link
3729
className={`button button--primary button--lg ${styles.ctaButton}`}
3830
to="/docs/intro">
39-
Let's Get Started
31+
Get Started
4032
</Link>
4133
<Link
4234
className={`button button--secondary button--lg ${styles.secondaryButton}`}
4335
to="/docs">
44-
Learn More
36+
Documentation
4537
</Link>
4638
</div>
47-
<div className={styles.friendlyNote}>
48-
No setup required • Free to try • Designed for developers like you
49-
</div>
5039
</div>
5140
</div>
5241
</header>

0 commit comments

Comments
 (0)