Skip to content

Commit 355ce18

Browse files
author
iitzIrFan
committed
Refactor Get Started page button styles for improved layout and interaction
1 parent 7c63c9d commit 355ce18

File tree

2 files changed

+105
-12
lines changed

2 files changed

+105
-12
lines changed

src/pages/get-started/index.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function GetStartedHeader() {
156156
className={`${styles.button} ${styles.buttonOutline}`}
157157
to="/docs/intro"
158158
>
159-
Explore Documentation
159+
Explore Docs
160160
<span className={styles.buttonIcon} aria-hidden="true">
161161
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
162162
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
@@ -165,17 +165,6 @@ function GetStartedHeader() {
165165
</span>
166166
</Link>
167167
</motion.div>
168-
169-
<motion.a
170-
href="#features"
171-
className={styles.scrollIndicator}
172-
initial={{ opacity: 0, y: 10 }}
173-
animate={{ opacity: 1, y: 0 }}
174-
transition={{ delay: 0.8, duration: 0.5 }}
175-
>
176-
<span>Scroll to explore</span>
177-
<div className={styles.mouse}></div>
178-
</motion.a>
179168
</div>
180169
</div>
181170
</header>

src/pages/get-started/styles.module.css

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,108 @@
11
/* Base styles - Mobile First */
2+
.buttons {
3+
display: flex;
4+
justify-content: center;
5+
align-items: center;
6+
gap: 1.5rem;
7+
margin: 3rem 0 4rem;
8+
width: 100%;
9+
position: relative;
10+
z-index: 1;
11+
}
12+
13+
.button {
14+
display: inline-flex;
15+
align-items: center;
16+
justify-content: center;
17+
padding: 0.9rem 2rem;
18+
border-radius: 8px;
19+
font-weight: 600;
20+
font-size: 1.05rem;
21+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
22+
text-decoration: none;
23+
position: relative;
24+
overflow: hidden;
25+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
26+
transform: translateY(0);
27+
}
28+
29+
.buttonPrimary {
30+
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
31+
color: white;
32+
border: none;
33+
}
34+
35+
.buttonPrimary:hover {
36+
transform: translateY(-2px);
37+
box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
38+
background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
39+
}
40+
41+
.buttonOutline {
42+
background: rgba(255, 255, 255, 0.1);
43+
color: white;
44+
border: 2px solid rgba(255, 255, 255, 0.2);
45+
backdrop-filter: blur(8px);
46+
}
47+
48+
.buttonOutline:hover {
49+
transform: translateY(-2px);
50+
background: rgba(255, 255, 255, 0.15);
51+
box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
52+
border-color: rgba(255, 255, 255, 0.3);
53+
}
54+
55+
.buttonIcon {
56+
margin-left: 0.6rem;
57+
display: inline-flex;
58+
transition: transform 0.3s ease;
59+
}
60+
61+
.button:hover .buttonIcon {
62+
transform: translateX(4px);
63+
}
64+
65+
@media (max-width: 480px) {
66+
.buttons {
67+
flex-direction: column;
68+
gap: 1rem;
69+
margin: 2.5rem 0 3rem;
70+
}
71+
72+
.button {
73+
width: 100%;
74+
max-width: 280px;
75+
margin: 0 auto;
76+
}
77+
}
78+
79+
.mouse {
80+
width: 24px;
81+
height: 40px;
82+
border: 2px solid rgba(255, 255, 255, 0.6);
83+
border-radius: 12px;
84+
position: relative;
85+
margin-top: 0.5rem;
86+
}
87+
88+
.mouse::before {
89+
content: '';
90+
position: absolute;
91+
top: 6px;
92+
left: 50%;
93+
width: 4px;
94+
height: 8px;
95+
background: white;
96+
border-radius: 2px;
97+
transform: translateX(-50%);
98+
animation: scrollAnimation 2s infinite;
99+
}
100+
101+
@keyframes scrollAnimation {
102+
0% { transform: translate(-50%, 0); opacity: 1; }
103+
100% { transform: translate(-50%, 10px); opacity: 0; }
104+
}
105+
2106
.heroBanner {
3107
padding: 4rem 1rem;
4108
text-align: center;

0 commit comments

Comments
 (0)