Skip to content

Commit 61386d7

Browse files
fix: responsive
1 parent 3448f49 commit 61386d7

2 files changed

Lines changed: 116 additions & 12 deletions

File tree

css/projects-page.css

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/* --- BỔ SUNG: Wrapper cho trang con --- */
66
.page-wrapper {
7-
padding-top: 10rem; /* Tạo khoảng trống ở trên để không bị header che */
7+
padding-top: 0;
88
}
99

1010
.text-primary {
@@ -14,6 +14,7 @@
1414
.text-gradient {
1515
background: linear-gradient(to right, var(--gradient-purple), var(--gradient-pink));
1616
-webkit-background-clip: text;
17+
background-clip: text;
1718
-webkit-text-fill-color: transparent;
1819
}
1920

@@ -391,7 +392,7 @@ footer a {
391392

392393
/* --- BỔ SUNG: Wrapper cho trang con --- */
393394
.page-wrapper {
394-
padding-top: 10rem;
395+
padding-top: 5rem; /* Reduced padding since we have a hero now */
395396
}
396397

397398
/* --- [MỚI] BỔ SUNG: Style cho tiêu đề phân loại dự án --- */
@@ -451,4 +452,90 @@ body.light-mode .back-to-home-btn:hover {
451452
/* Điều chỉnh lại max-width của container project cho rộng hơn một chút */
452453
#projects .container {
453454
max-width: 1400px;
455+
}
456+
457+
/* --- PROJECTS HERO SECTION --- */
458+
.projects-hero {
459+
position: relative;
460+
padding: 12rem 0 6rem 0;
461+
background: var(--bg-primary);
462+
overflow: hidden;
463+
text-align: center;
464+
}
465+
466+
.projects-hero .hero-background {
467+
position: absolute;
468+
top: 0;
469+
left: 0;
470+
width: 100%;
471+
height: 100%;
472+
background:
473+
radial-gradient(circle at 20% 30%, rgba(192, 132, 252, 0.1) 0%, transparent 40%),
474+
radial-gradient(circle at 80% 70%, rgba(244, 114, 182, 0.1) 0%, transparent 40%);
475+
z-index: 1;
476+
}
477+
478+
.projects-hero .container {
479+
position: relative;
480+
z-index: 2;
481+
}
482+
483+
.projects-hero .welcome-badge {
484+
display: inline-block;
485+
padding: 0.5rem 1.25rem;
486+
background: rgba(255, 255, 255, 0.05);
487+
border: 1px solid var(--border-color);
488+
border-radius: 9999px;
489+
color: var(--gradient-purple);
490+
font-weight: 600;
491+
font-size: 0.875rem;
492+
margin-bottom: 2rem;
493+
text-transform: uppercase;
494+
letter-spacing: 0.1em;
495+
}
496+
497+
.projects-hero h1 {
498+
font-size: clamp(3rem, 8vw, 5rem);
499+
font-weight: 800;
500+
line-height: 1.1;
501+
margin-bottom: 1.5rem;
502+
color: var(--text-primary);
503+
}
504+
505+
.projects-hero h1 .gradient-text {
506+
background: linear-gradient(to right, var(--gradient-purple), var(--gradient-pink));
507+
-webkit-background-clip: text;
508+
background-clip: text;
509+
-webkit-text-fill-color: transparent;
510+
}
511+
512+
.projects-hero p {
513+
max-width: 700px;
514+
margin: 0 auto 2.5rem;
515+
font-size: 1.1rem;
516+
color: var(--text-secondary);
517+
line-height: 1.6;
518+
}
519+
520+
.projects-hero .hero-buttons,
521+
.hero-buttons {
522+
display: flex;
523+
justify-content: center;
524+
gap: 1.5rem;
525+
margin-top: 3rem; /* Add some space above the button at the bottom */
526+
}
527+
528+
/* Adjust projects grid alignment */
529+
#projects.content-section {
530+
padding-top: 2rem;
531+
}
532+
533+
@media (max-width: 768px) {
534+
.projects-hero {
535+
padding: 8rem 0 4rem 0;
536+
}
537+
538+
.projects-hero h1 {
539+
font-size: 2.5rem;
540+
}
454541
}

project.html

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,30 @@ <h4 id="song-title">Điều chưa nói</h4>
8181
</div>
8282

8383
<main class="page-wrapper">
84-
<!-- === THAY THẾ TOÀN BỘ SECTION NÀY === -->
84+
<!-- <section class="projects-hero">
85+
<div class="hero-background"></div>
86+
<div class="container hero-container">
87+
<div class="hero-text-content animate-on-scroll">
88+
<div class="welcome-badge">Portfolio Highlights</div>
89+
<h1 class="animate-on-scroll">
90+
My Creative<br>
91+
<span class="gradient-text">Journey</span>
92+
</h1>
93+
<p class="animate-on-scroll">A collection of web applications, experiments, and interactive tools built with passion and code.</p>
94+
<div class="hero-buttons">
95+
<a href="index.html" class="btn btn-secondary">
96+
<i class="fas fa-arrow-left"></i> Back to Home
97+
</a>
98+
</div>
99+
</div>
100+
</div>
101+
</section> -->
102+
85103
<section id="projects" class="content-section">
86-
<!-- Bỏ class .container ở đây -->
87104
<div class="section-header animate-on-scroll">
88-
<div class="section-badge">All My Works</div>
89-
<h2 class="section-title">My Projects</h2>
105+
<div class="section-badge">Gallery</div>
106+
<h2 class="section-title">All Projects</h2>
90107
<div class="title-underline"></div>
91-
92-
<!-- === NÚT BACK TO HOME MỚI === -->
93-
<a href="index.html" class="back-to-home-btn animate-on-scroll">
94-
<i class="fas fa-arrow-left"></i> Back to Home
95-
</a>
96108
</div>
97109

98110
<!-- Grid Container for Projects -->
@@ -230,9 +242,14 @@ <h3>Signature Verification</h3>
230242
</div>
231243
</div>
232244
</div>
233-
245+
</div>
246+
<div class="hero-buttons">
247+
<a href="index.html" class="btn btn-secondary">
248+
<i class="fas fa-arrow-left"></i> Back to Home
249+
</a>
234250
</div>
235251
</div>
252+
236253
</section>
237254
</main>
238255

0 commit comments

Comments
 (0)