@@ -4,11 +4,14 @@ import DocsGPT3 from './assets/cute_docsgpt3.svg';
44export default function Hero ( { className = '' } : { className ?: string } ) {
55 // const isMobile = window.innerWidth <= 768;
66 const { isMobile } = useMediaQuery ( ) ;
7- const [ isDarkTheme ] = useDarkTheme ( )
7+ const [ isDarkTheme ] = useDarkTheme ( ) ;
88 return (
9- < div className = { `mt-14 ${ isMobile ? 'mb-2' : 'mb-12' } flex flex-col text-black-1000 dark:text-bright-gray` } >
9+ < div
10+ className = { `mt-14 ${
11+ isMobile ? 'mb-2' : 'mb-12'
12+ } flex flex-col text-black-1000 dark:text-bright-gray`}
13+ >
1014 < div className = " mb-2 flex items-center justify-center sm:mb-10" >
11-
1215 < p className = "mr-2 text-4xl font-semibold" > DocsGPT</ p >
1316 < img className = "mb-2 h-14" src = { DocsGPT3 } alt = "DocsGPT" />
1417 </ div >
@@ -36,20 +39,24 @@ export default function Hero({ className = '' }: { className?: string }) {
3639 </ >
3740 ) }
3841 < div
39- className = { `sections ${ isMobile ? '' : 'mt-1'
40- } flex flex-wrap items-center justify-center gap-2 sm:gap-1 md:gap-0`}
42+ className = { `sections ${
43+ isMobile ? '' : 'mt-1'
44+ } flex flex-wrap items-center justify-center gap-2 sm:gap-1 md:gap-0`}
4145 >
4246 { /* first */ }
43- < div className = "h-auto md:h-60 rounded-[50px] bg-gradient-to-l from-[#6EE7B7]/70 dark:from -[#D16FF8] via -[#3B82F6] dark:via -[#48E6E0] to -[#9333EA]/50 dark:to-[#C85EF6] p-1 md:rounded-tr-none md:rounded-br-none" >
47+ < div className = "h-auto rounded-[50px] bg-gradient-to-l from-[#6EE7B7]/70 via -[#3B82F6] to -[#9333EA]/50 p-1 dark:from -[#D16FF8] dark:via -[#48E6E0] dark:to-[#C85EF6] md:h-60 md:rounded-tr-none md:rounded-br-none" >
4448 < div
45- className = { `h-full rounded-[45px] bg-white dark:bg-dark-charcoal p-${ isMobile ? '3.5' : '6 py-8'
46- } md:rounded-tr-none md:rounded-br-none`}
49+ className = { `h-full rounded-[45px] bg-white dark:bg-dark-charcoal p-${
50+ isMobile ? '3.5' : '6 py-8'
51+ } md:rounded-tr-none md:rounded-br-none`}
4752 >
4853 { /* Add Mobile check here */ }
4954 { isMobile ? (
5055 < div className = "flex justify-center" >
5156 < img
52- src = { isDarkTheme ? "/message-text-dark.svg" : "/message-text.svg" }
57+ src = {
58+ isDarkTheme ? '/message-text-dark.svg' : '/message-text.svg'
59+ }
5360 alt = "lock"
5461 className = "h-[24px] w-[24px] "
5562 />
@@ -60,7 +67,9 @@ export default function Hero({ className = '' }: { className?: string }) {
6067 ) : (
6168 < >
6269 < img
63- src = { isDarkTheme ? "/message-text-dark.svg" : "/message-text.svg" }
70+ src = {
71+ isDarkTheme ? '/message-text-dark.svg' : '/message-text.svg'
72+ }
6473 alt = "lock"
6574 className = "h-[24px] w-[24px]"
6675 />
@@ -84,22 +93,31 @@ export default function Hero({ className = '' }: { className?: string }) {
8493 </ div >
8594 </ div >
8695 { /* second */ }
87- < div className = "h-auto md:h-60 rounded-[50px] bg-gradient-to-r from-[#6EE7B7]/70 dark:from -[#D16FF8] via -[#3B82F6] dark:via -[#48E6E0] to -[#9333EA]/50 dark:to-[#C85EF6] p-1 md:rounded-none md:py-1 md:px-0" >
96+ < div className = "h-auto rounded-[50px] bg-gradient-to-r from-[#6EE7B7]/70 via -[#3B82F6] to -[#9333EA]/50 p-1 dark:from -[#D16FF8] dark:via -[#48E6E0] dark:to-[#C85EF6] md:h-60 md:rounded-none md:py-1 md:px-0" >
8897 < div
89- className = { `h-full rounded-[45px] bg-white dark:bg-dark-charcoal p-${ isMobile ? '3.5' : '6 py-6'
90- } md:rounded-none`}
98+ className = { `h-full rounded-[45px] bg-white dark:bg-dark-charcoal p-${
99+ isMobile ? '3.5' : '6 py-6'
100+ } md:rounded-none`}
91101 >
92102 { /* Add Mobile check here */ }
93103 { isMobile ? (
94104 < div className = "flex justify-center " >
95- < img src = { isDarkTheme ? "/lock-dark.svg" : "/lock.svg" } alt = "lock" className = "h-[24px] w-[24px]" />
105+ < img
106+ src = { isDarkTheme ? '/lock-dark.svg' : '/lock.svg' }
107+ alt = "lock"
108+ className = "h-[24px] w-[24px]"
109+ />
96110 < h2 className = "mb-0 pl-1 text-lg font-bold" >
97111 Secure Data Storage
98112 </ h2 >
99113 </ div >
100114 ) : (
101115 < >
102- < img src = { isDarkTheme ? "/lock-dark.svg" : "/lock.svg" } alt = "lock" className = "h-[24px] w-[24px]" />
116+ < img
117+ src = { isDarkTheme ? '/lock-dark.svg' : '/lock.svg' }
118+ alt = "lock"
119+ className = "h-[24px] w-[24px]"
120+ />
103121 < h2 className = "mt-2 mb-3 text-lg font-bold" >
104122 Secure Data Storage
105123 </ h2 >
@@ -120,16 +138,21 @@ export default function Hero({ className = '' }: { className?: string }) {
120138 </ div >
121139 </ div >
122140 { /* third */ }
123- < div className = "h-auto md:h-60 rounded-[50px] bg-gradient-to-l from-[#6EE7B7]/70 dark:from -[#D16FF8] via -[#3B82F6] dark:via -[#48E6E0] to -[#9333EA]/50 dark:to-[#C85EF6] p-1 md:rounded-tl-none md:rounded-bl-none " >
141+ < div className = "h-auto rounded-[50px] bg-gradient-to-l from-[#6EE7B7]/70 via -[#3B82F6] to -[#9333EA]/50 p-1 dark:from -[#D16FF8] dark:via -[#48E6E0] dark:to-[#C85EF6] md:h-60 md:rounded-tl-none md:rounded-bl-none " >
124142 < div
125- className = { `h-full firefox rounded-[45px] bg-white dark:bg-dark-charcoal p-${ isMobile ? '3.5' : '6 px-6 '
126- } lg:rounded-tl-none lg:rounded-bl-none`}
143+ className = { `firefox h-full rounded-[45px] bg-white dark:bg-dark-charcoal p-${
144+ isMobile ? '3.5' : '6 px-6 '
145+ } lg:rounded-tl-none lg:rounded-bl-none`}
127146 >
128147 { /* Add Mobile check here */ }
129148 { isMobile ? (
130149 < div className = "flex justify-center" >
131150 < img
132- src = { isDarkTheme ? "message-programming-dark.svg" : "/message-programming.svg" }
151+ src = {
152+ isDarkTheme
153+ ? 'message-programming-dark.svg'
154+ : '/message-programming.svg'
155+ }
133156 alt = "lock"
134157 className = "h-[24px] w-[24px]"
135158 />
@@ -140,7 +163,11 @@ export default function Hero({ className = '' }: { className?: string }) {
140163 ) : (
141164 < >
142165 < img
143- src = { isDarkTheme ? "/message-programming-dark.svg" : "/message-programming.svg" }
166+ src = {
167+ isDarkTheme
168+ ? '/message-programming-dark.svg'
169+ : '/message-programming.svg'
170+ }
144171 alt = "lock"
145172 className = "h-[24px] w-[24px]"
146173 />
0 commit comments