Skip to content

Commit 6b8b7b0

Browse files
committed
added the blog page changes
1 parent fc25b75 commit 6b8b7b0

2 files changed

Lines changed: 92 additions & 16 deletions

File tree

src/components/blogCarousel/blogCarousel.css

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,14 +562,95 @@
562562

563563
/* ── Blog carousel section ── */
564564
.blog-carousel-section {
565-
background: linear-gradient(160deg, #f8f9ff 0%, #f0f2ff 50%, #e8ebff 100%);
566-
padding: 48px 24px;
565+
background: #fafaf8;
566+
padding: 64px 24px 48px;
567567
position: relative;
568568
overflow: hidden;
569+
transition: background 0.4s ease;
569570
}
570571

571572
[data-theme="dark"] .blog-carousel-section {
572-
background: linear-gradient(160deg, #131314 0%, #18181b 50%, #1a1f2e 100%);
573+
background: #17181c;
574+
}
575+
576+
/* ── Section header ── */
577+
.blog-section-header {
578+
display: flex;
579+
align-items: flex-end;
580+
justify-content: space-between;
581+
gap: 1.5rem;
582+
margin-bottom: 1.5rem;
583+
}
584+
585+
.blog-section-eyebrow {
586+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
587+
font-size: 13px;
588+
font-weight: 700;
589+
letter-spacing: 0.15em;
590+
text-transform: uppercase;
591+
color: #16a34a;
592+
margin: 0 0 0.5rem;
593+
}
594+
595+
[data-theme="dark"] .blog-section-eyebrow {
596+
color: #4ade80;
597+
}
598+
599+
.blog-section-title {
600+
font-family: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont,
601+
"Segoe UI", sans-serif;
602+
font-weight: 700;
603+
font-size: 40px;
604+
line-height: 1.15;
605+
letter-spacing: -0.03em;
606+
color: #111827;
607+
margin: 0;
608+
}
609+
610+
[data-theme="dark"] .blog-section-title {
611+
color: #f9fafb;
612+
}
613+
614+
.blog-section-subtitle {
615+
font-size: 16px;
616+
color: #4b5563;
617+
margin: 0.5rem 0 0;
618+
}
619+
620+
[data-theme="dark"] .blog-section-subtitle {
621+
color: #9ca3af;
622+
}
623+
624+
.blog-section-viewall {
625+
flex-shrink: 0;
626+
font-size: 15px;
627+
font-weight: 600;
628+
color: #16a34a;
629+
text-decoration: none;
630+
transition: color 0.25s ease;
631+
}
632+
633+
.blog-section-viewall:hover {
634+
color: #15803d;
635+
text-decoration: none;
636+
}
637+
638+
[data-theme="dark"] .blog-section-viewall {
639+
color: #4ade80;
640+
}
641+
642+
[data-theme="dark"] .blog-section-viewall:hover {
643+
color: #86efac;
644+
}
645+
646+
@media (max-width: 650px) {
647+
.blog-section-title {
648+
font-size: 30px;
649+
}
650+
651+
.blog-section-subtitle {
652+
font-size: 14px;
653+
}
573654
}
574655

575656
/* ── Focus state ── */

src/components/blogCarousel/blogCarousel.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,15 @@ export function BlogCarousel() {
4141
return (
4242
<div className="max-w-8xl mx-auto w-full px-4">
4343
{/* Section Header */}
44-
<div className="flex items-center justify-between mb-6">
44+
<div className="blog-section-header">
4545
<div>
46-
<h2 className="text-2xl font-semibold text-gray-800 dark:text-gray-100">
47-
From the Blog
48-
</h2>
49-
<p className="text-sm text-black-500 dark:text-gray-400 mt-1">
46+
<p className="blog-section-eyebrow">✦ Blog</p>
47+
<h2 className="blog-section-title">From the Blog</h2>
48+
<p className="blog-section-subtitle">
5049
Latest articles from our contributors
5150
</p>
5251
</div>
53-
<Link
54-
to="/blogs"
55-
className="flex items-center gap-1.5 text-sm font-medium text-indigo-600 border border-indigo-200 px-4 py-2 rounded-lg hover:bg-indigo-50 transition-all dark:text-indigo-400 dark:border-indigo-800 dark:hover:bg-indigo-950"
56-
style={{ textDecoration: "none" }}
57-
>
52+
<Link to="/blogs" className="blog-section-viewall">
5853
View all →
5954
</Link>
6055
</div>
@@ -98,7 +93,7 @@ export function BlogCarousel() {
9893

9994
{/* Carousel Controls */}
10095
<div className="mt-8 flex items-center justify-center gap-4">
101-
<CarouselPrevious className="static h-10 w-10 translate-y-0 border border-indigo-200 transition-all duration-300 hover:scale-110 hover:border-indigo-400 dark:border-indigo-800 dark:hover:border-indigo-600" />
96+
<CarouselPrevious className="static h-10 w-10 translate-y-0 border border-green-200 transition-all duration-300 hover:scale-110 hover:border-green-500 dark:border-green-900 dark:hover:border-green-600" />
10297

10398
{/* Dot indicators */}
10499
<div className="flex items-center gap-2">
@@ -108,14 +103,14 @@ export function BlogCarousel() {
108103
onClick={() => api?.scrollTo(index)}
109104
aria-label={`Go to slide ${index + 1}`}
110105
className={`h-2 rounded-full transition-all duration-300 ${current === index + 1
111-
? "w-5 bg-indigo-500"
106+
? "w-5 bg-green-600 dark:bg-green-400"
112107
: "w-2 bg-gray-300 hover:bg-gray-400 dark:bg-gray-600 dark:hover:bg-gray-500"
113108
}`}
114109
/>
115110
))}
116111
</div>
117112

118-
<CarouselNext className="static h-10 w-10 translate-y-0 border border-indigo-200 transition-all duration-300 hover:scale-110 hover:border-indigo-400 dark:border-indigo-800 dark:hover:border-indigo-600" />
113+
<CarouselNext className="static h-10 w-10 translate-y-0 border border-green-200 transition-all duration-300 hover:scale-110 hover:border-green-500 dark:border-green-900 dark:hover:border-green-600" />
119114
</div>
120115
</Carousel>
121116
</div>

0 commit comments

Comments
 (0)