Skip to content

Commit 3871bd5

Browse files
authored
Merge pull request #47 from Ariz253/ui/landing-page-polish
UI polish: improve landing page hierarchy and discover section clarity and visibility
2 parents 9bf90d4 + d94ae7d commit 3871bd5

File tree

2 files changed

+68
-37
lines changed

2 files changed

+68
-37
lines changed

src/App.css

Lines changed: 60 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -97,32 +97,6 @@ section {
9797
}
9898
}
9999

100-
/* Hero section */
101-
.hero {
102-
text-align: center;
103-
padding: 60px 0;
104-
position: relative;
105-
}
106-
107-
.hero h2 {
108-
font-size: 48px;
109-
margin-bottom: 20px;
110-
color: var(--text-primary);
111-
font-weight: 800;
112-
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
113-
letter-spacing: -1px;
114-
}
115-
116-
.hero p {
117-
font-size: 20px;
118-
color: var(--text-secondary);
119-
margin-bottom: 40px;
120-
max-width: 600px;
121-
margin-left: auto;
122-
margin-right: auto;
123-
line-height: 1.7;
124-
}
125-
126100
/* Buttons */
127101
.buttons {
128102
display: flex;
@@ -201,29 +175,37 @@ section {
201175
position: absolute;
202176
top: 0;
203177
left: 0;
204-
right: 0;
205-
height: 2px;
206-
background: linear-gradient(90deg, var(--primary-color), transparent);
207-
transform: scaleX(0);
208-
transition: transform 0.3s ease;
178+
width: 100%;
179+
height: 3px;
180+
background: linear-gradient(90deg,
181+
var(--primary-color),
182+
transparent);
183+
opacity: 0;
184+
transition: opacity 0.3s ease;
209185
}
210186

211187
.card:hover {
212-
transform: translateY(-5px);
213-
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
188+
transform: translateY(-6px);
189+
box-shadow:
190+
0 12px 40px rgba(0, 0, 0, 0.15),
191+
0 0 0 1px rgba(0, 123, 255, 0.15);
214192
}
215193

216194
.card:hover::before {
217195
transform: scaleX(1);
196+
opacity: 1;
218197
}
219198

220199
.card h4 {
221200
margin-bottom: 10px;
222-
font-size: 18px;
201+
font-size: 1.15rem;
202+
font-weight: 700;
223203
color: var(--text-primary);
224204
}
225205

226206
.card p {
207+
font-size: 0.95rem;
208+
line-height: 1.6;
227209
color: var(--text-secondary);
228210
}
229211

@@ -294,6 +276,40 @@ h3 {
294276
color: var(--text-secondary);
295277
}
296278

279+
/* hero section */
280+
.hero {
281+
text-align: center;
282+
padding: 10px 20px 10px;
283+
}
284+
285+
.hero-title {
286+
font-size: clamp(2.5rem, 5vw, 3.5rem);
287+
font-weight: 800;
288+
letter-spacing: -0.02em;
289+
margin-bottom: 20px;
290+
}
291+
292+
.hero-subtitle {
293+
max-width: 720px;
294+
margin: 0 auto 36px;
295+
font-size: 1.1rem;
296+
color: rgba(0, 0, 0, 0.7);
297+
}
298+
299+
[data-theme="dark"] .hero-subtitle {
300+
color: rgba(255, 255, 255, 0.75);
301+
}
302+
303+
304+
305+
.opportunities {
306+
padding: 60px 20px 100px;
307+
}
308+
309+
.opportunities h3 {
310+
margin-bottom: 50px;
311+
}
312+
297313
/* Open source section */
298314
.open-source {
299315
background: var(--glass-bg);
@@ -399,7 +415,16 @@ footer {
399415
}
400416

401417
.card {
402-
padding: 20px;
418+
background: var(--glass-bg);
419+
padding: 32px 28px;
420+
border: 1px solid var(--glass-border);
421+
border-radius: 16px;
422+
box-shadow: var(--glass-shadow);
423+
transition: transform 0.3s ease, box-shadow 0.3s ease;
424+
backdrop-filter: blur(10px);
425+
-webkit-backdrop-filter: blur(10px);
426+
position: relative;
427+
overflow: hidden;
403428
}
404429

405430
.step-number {

src/App.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ function App() {
1717
<main>
1818
{/* hero section*/}
1919
<section className="hero">
20-
<h2>Find Opportunities Meant for You</h2>
21-
<p>Discover scholarships, hackathons, conferences, and research programs based on your profile.</p>
20+
<h2 className="hero-title">
21+
Find Opportunities Meant for You
22+
</h2>
23+
24+
<p className="hero-subtitle">
25+
Discover scholarships, hackathons, conferences, and research programs based on your profile.
26+
</p>
27+
2228
<div className="buttons">
2329
<button className="primary-btn">Start Contributing</button>
2430
<button className="secondary-btn">Learn More</button>

0 commit comments

Comments
 (0)