Skip to content

Commit 89c88ff

Browse files
feat: Implement Responsive Blog Hero Section with Newsletter Modal
1 parent fbed06d commit 89c88ff

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

app/(landing)/blog/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Metadata } from 'next';
33
import { generatePageMetadata } from '@/lib/metadata';
44
import BlogGrid from '@/components/landing-page/blog/BlogGrid';
55
import { getAllBlogPosts } from '@/lib/data/blog';
6+
import BlogHero from '@/components/landing-page/blog/BlogHero';
67

78
export const metadata: Metadata = generatePageMetadata('blog');
89

@@ -11,6 +12,7 @@ const BlogPage = async () => {
1112

1213
return (
1314
<div className='min-h-screen bg-[#030303]'>
15+
<BlogHero />
1416
<BlogGrid posts={posts} showLoadMore={true} />
1517
</div>
1618
);
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
function BlogHero() {
2+
return (
3+
<section className='relative mx-auto flex min-h-[500px] max-w-6xl flex-col justify-center gap-6 overflow-hidden px-5 pb-[50px] md:gap-[52px] md:px-0'>
4+
<main className='flex flex-col items-start justify-between gap-6 md:flex-row md:items-end md:gap-0'>
5+
<h1 className='text-[32px] font-normal text-white md:text-5xl'>
6+
<span className='mb-1 bg-gradient-to-r from-[#3AE6B2] to-[#A7F95080] bg-clip-text text-transparent'>
7+
Insights That Matter
8+
</span>
9+
<br />
10+
Stories From Boundless
11+
</h1>
12+
13+
<main className='w-full md:w-[429px]'>
14+
<p className='text-base font-normal text-white'>
15+
{' '}
16+
News, updates, and thought pieces crafted to keep you ahead in the
17+
Boundless ecosystem.
18+
</p>
19+
</main>
20+
</main>
21+
<main className='bg-primary flex flex-col items-center justify-between rounded-[10px] py-2.5 pr-2.5 pl-6 md:w-[570px] md:flex-row'>
22+
<p className='text-background text-base font-medium'>
23+
Never miss important updates
24+
</p>
25+
<button
26+
type='button'
27+
className='bg-background rounded-[10px] px-6 py-2 text-base font-medium text-white transition hover:opacity-90'
28+
>
29+
Subscribe to Our Newsletter
30+
</button>
31+
</main>
32+
</section>
33+
);
34+
}
35+
36+
export default BlogHero;

components/profile/ProfileOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function ProfileOverview({ username }: ProfileOverviewProps) {
3939
];
4040

4141
return (
42-
<article className='flex w-[500px] flex-col gap-11 text-white'>
42+
<article className='flex w-full flex-col gap-11 text-white md:w-[500px]'>
4343
<ProfileHeader profile={mockProfile} />
4444
<UserStats stats={mockStats} />
4545
<OrganizationsList organizations={mockOrganizations} />

0 commit comments

Comments
 (0)