@@ -7,6 +7,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
77import { useVersions } from '@site/src/hooks/useVersions' ;
88import ClickHouseLogoDark from '@site/static/img/ch_logo_docs_dark.svg' ;
99import ClickHouseLogoLight from '@site/static/img/ch_logo_docs.svg' ;
10+ import ClickHouseLogo from '@site/src/icons/ClickHouseLogo' ;
1011import SearchBar from '@theme/SearchBar' ;
1112import clsx from 'clsx' ;
1213import Card from '@mui/material/Card' ;
@@ -184,28 +185,81 @@ const HeroSection = () => {
184185 const LogoComponent = colorMode === 'dark' ? ClickHouseLogoDark : ClickHouseLogoLight ;
185186
186187 return (
187- < div className = { homepage_styles . heroSection } >
188- < LogoComponent className = { homepage_styles . logo } />
189- < h2 > The fastest and most resource efficient real-time data warehouse and open-source database.</ h2 >
190- < div style = { { display : 'flex' , alignItems : 'center' , gap : '8px' , justifyContent : 'center' , flexWrap : 'nowrap' } } >
191- < SearchBar />
188+ < Box sx = { {
189+ display : 'grid' ,
190+ gridTemplateColumns : { xs : '1fr' , sm : 'repeat(2, 1fr)' , md : 'repeat(3, 1fr)' } ,
191+ alignItems : 'center' ,
192+ minHeight : '300px' ,
193+ padding : '80px 16px 0px 16px' ,
194+ maxWidth : '1000px' ,
195+ margin : '0 auto' ,
196+ gap : 3 ,
197+ '@media (max-width: 768px)' : {
198+ gridTemplateColumns : '1fr' ,
199+ textAlign : 'center' ,
200+ padding : '60px 24px 30px 24px' ,
201+ gap : 3
202+ }
203+ } } >
204+ { /* Left side - Logo and Text (matches Get Started column width) */ }
205+ < Box sx = { {
206+ '@media (max-width: 768px)' : {
207+ gridColumn : '1'
208+ }
209+ } } >
210+ < Box sx = { { marginBottom : 2 } } >
211+ < ClickHouseLogo />
212+ </ Box >
213+ < Typography
214+ variant = "h5"
215+ sx = { {
216+ fontSize : { xs : '1rem' , sm : '1.1rem' , md : '1.2rem' } ,
217+ fontWeight : 400 ,
218+ color : 'text.secondary' ,
219+ lineHeight : 1.4
220+ } }
221+ >
222+ The fastest and most resource efficient real-time data warehouse and open-source database.
223+ </ Typography >
224+ </ Box >
225+
226+ { /* Right side - Search and Ask AI (spans Learn and Reference columns) */ }
227+ < Box sx = { {
228+ gridColumn : { xs : '1' , sm : '1 / span 2' , md : '2 / span 2' } ,
229+ display : 'flex' ,
230+ alignItems : 'center' ,
231+ gap : 2 ,
232+ padding : '0 60px' ,
233+ '@media (max-width: 768px)' : {
234+ gridColumn : '1' ,
235+ flexDirection : 'column' ,
236+ alignItems : 'stretch' ,
237+ gap : 2 ,
238+ padding : '0'
239+ }
240+ } } >
241+ < Box sx = { { flex : 1 , maxWidth : '500px' } } >
242+ < SearchBar />
243+ </ Box >
192244 < Button
193245 variant = "contained"
194246 onClick = { handleAskAIClick }
195247 sx = { {
196248 height : '36px' ,
197- minWidth : '80px ' ,
249+ minWidth : '100px ' ,
198250 borderRadius : '8px' ,
199- padding : '8px 16px ' ,
251+ padding : '8px 20px ' ,
200252 display : 'flex' ,
201253 alignItems : 'center' ,
202254 justifyContent : 'center' ,
203- gap : '6px ' ,
255+ gap : '8px ' ,
204256 textTransform : 'none' ,
205257 backgroundColor : '#faff69' ,
206258 color : '#000000' ,
207259 whiteSpace : 'nowrap' ,
208260 boxShadow : 'none' ,
261+ fontWeight : 600 ,
262+ flexShrink : 0 ,
209263 '&:hover' : {
210264 backgroundColor : '#f5f464' ,
211265 boxShadow : 'none' ,
@@ -224,8 +278,8 @@ const HeroSection = () => {
224278 />
225279 Ask AI
226280 </ Button >
227- </ div >
228- </ div >
281+ </ Box >
282+ </ Box >
229283 ) ;
230284}
231285const NavatticDemoSection = ( ) => {
@@ -246,7 +300,7 @@ const ExploreDocs = () => {
246300 < Box sx = { {
247301 padding : '0 16px' ,
248302 minHeight : '400px' ,
249- maxWidth : '1400px ' ,
303+ maxWidth : '1000px ' ,
250304 margin : '0 auto'
251305 } } >
252306 { /* Unified Grid Layout */ }
0 commit comments