|
| 1 | +'use client'; |
| 2 | +import Newsletter from '@/components/overview/Newsletter'; |
| 3 | +import { useState } from 'react'; |
| 4 | + |
1 | 5 | function BlogHero() { |
| 6 | + const [open, setOpen] = useState(false); |
| 7 | + |
2 | 8 | 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> |
| 9 | + <> |
| 10 | + <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'> |
| 11 | + <div className='flex flex-col items-start justify-between gap-6 md:flex-row md:items-end md:gap-0'> |
| 12 | + <h1 className='text-[32px] font-normal text-white md:text-5xl'> |
| 13 | + <span className='mb-1 bg-gradient-to-r from-[#3AE6B2] to-[#A7F95080] bg-clip-text text-transparent'> |
| 14 | + Insights That Matter |
| 15 | + </span> |
| 16 | + <br /> |
| 17 | + Stories From Boundless |
| 18 | + </h1> |
12 | 19 |
|
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. |
| 20 | + <div className='w-full md:w-[429px]'> |
| 21 | + <p className='text-base font-normal text-white'> |
| 22 | + {' '} |
| 23 | + News, updates, and thought pieces crafted to keep you ahead in the |
| 24 | + Boundless ecosystem. |
| 25 | + </p> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + <div className='bg-primary flex flex-col items-center justify-between gap-2 rounded-[10px] py-2.5 pr-2.5 pl-6 md:w-[570px] md:flex-row'> |
| 29 | + <p className='text-background w-full text-base font-medium'> |
| 30 | + Never miss important updates |
18 | 31 | </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> |
| 32 | + <button |
| 33 | + type='button' |
| 34 | + onClick={() => setOpen(true)} |
| 35 | + className='bg-background w-full rounded-[10px] px-6 py-2 text-base font-medium text-white transition hover:opacity-90' |
| 36 | + > |
| 37 | + Subscribe to Our Newsletter |
| 38 | + </button> |
| 39 | + </div> |
| 40 | + </section> |
| 41 | + <Newsletter open={open} onOpenChange={setOpen} /> |
| 42 | + </> |
33 | 43 | ); |
34 | 44 | } |
35 | 45 |
|
|
0 commit comments