Skip to content

Commit e9876f0

Browse files
fix: dark mode subscribe section
Signed-off-by: Shriya-Chauhan <[email protected]>
1 parent caf15b4 commit e9876f0

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

pages/blog/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { useRouter } from 'next/router';
22
import React, { useContext, useEffect, useState } from 'react';
33

44
import Empty from '@/components/illustrations/Empty';
5+
import Container from '@/components/layout/Container';
56
import GenericLayout from '@/components/layout/GenericLayout';
67
import Loader from '@/components/Loader';
78
import BlogPostItem from '@/components/navigation/BlogPostItem';
89
import Filter from '@/components/navigation/Filter';
10+
import NewsletterSubscribe from '@/components/NewsletterSubscribe';
911
import PaginationComponent from '@/components/Pagination';
1012
import Heading from '@/components/typography/Heading';
1113
import Paragraph from '@/components/typography/Paragraph';
@@ -260,6 +262,13 @@ export default function BlogIndexPage() {
260262
</div>
261263
</div>
262264
</div>
265+
266+
{/* Newsletter Section */}
267+
<div className='mt-8 bg-dark rounded-3xl py-12'>
268+
<Container wide>
269+
<NewsletterSubscribe dark />
270+
</Container>
271+
</div>
263272
</GenericLayout>
264273
);
265274
}

pages/community/ambassadors/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import IconStar from '../../../components/icons/Star';
1717
import IconTerminal from '../../../components/icons/Terminal';
1818
import IconUsersGroup from '../../../components/icons/UsersGroup';
1919
import IconVideo from '../../../components/icons/Video';
20+
import Container from '../../../components/layout/Container';
2021
import GenericLayout from '../../../components/layout/GenericLayout';
2122
import NewsletterSubscribe from '../../../components/NewsletterSubscribe';
2223
import PaginationComponent from '../../../components/Pagination';
@@ -443,7 +444,13 @@ export default function Index() {
443444
</div>
444445
</section>
445446
</div>
446-
<NewsletterSubscribe className='mt-20 text-center' />
447+
448+
{/* Newsletter Section */}
449+
<div className='mt-8 bg-dark rounded-3xl py-12'>
450+
<Container wide>
451+
<NewsletterSubscribe dark />
452+
</Container>
453+
</div>
447454
</GenericLayout>
448455
);
449456
}

pages/community/tsc.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -297,18 +297,21 @@ export default function TSC() {
297297
</div>
298298

299299
{/* Want to Join TSC CTA */}
300-
<div className='bg-gradient-to-br from-primary-50 to-secondary-50 dark:from-gray-900 dark:to-gray-800 py-16'>
301-
<div className='mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center'>
302-
<h2 className='text-3xl sm:text-4xl font-bold text-gray-900 dark:text-white mb-4'>Want to join TSC?</h2>
303-
<p className='text-lg text-gray-600 dark:text-gray-400 mb-8'>
304-
Join our community and help shape the future of AsyncAPI
305-
</p>
306-
<Button
307-
text='Get Started'
308-
href='https://github.com/asyncapi/community/blob/master/CONTRIBUTING.md'
309-
target='_blank'
310-
className='text-center hover:bg-primary-600 focus:outline-none'
311-
/>
300+
<div className='bg-white dark:bg-dark-background py-12'>
301+
<div className='mx-auto max-w-7xl px-4 sm:px-6 lg:px-8'>
302+
<div
303+
className='rounded-3xl p-8 sm:p-12 shadow-xl text-center'
304+
style={{ background: 'linear-gradient(90deg, #8B5CF6 0%, #7C3AED 50%, #22D3EE 100%)' }}
305+
>
306+
<h2 className='text-3xl sm:text-4xl font-bold text-white mb-4'>Want to join TSC?</h2>
307+
<p className='text-lg text-white/90 mb-8'>Join our community and help shape the future of AsyncAPI</p>
308+
<Button
309+
text='Get Started'
310+
href='https://github.com/asyncapi/community/blob/master/CONTRIBUTING.md'
311+
target='_blank'
312+
className='text-center bg-white text-primary-600 hover:bg-gray-100 focus:outline-none'
313+
/>
314+
</div>
312315
</div>
313316
</div>
314317
</GenericLayout>

0 commit comments

Comments
 (0)