11import type { NextPage } from "next" ;
2- import { HStack , VStack , Image , chakra , Heading } from "@chakra-ui/react" ;
2+ import {
3+ HStack ,
4+ VStack ,
5+ Image ,
6+ chakra ,
7+ Heading ,
8+ Text ,
9+ Box ,
10+ } from "@chakra-ui/react" ;
311import PageLayout from "./components/layout/page" ;
412import SearchBar from "./search/search-bar" ;
5- import { serverSideTranslations } from ' next-i18next/serverSideTranslations' ;
6- import { useTranslation } from ' next-i18next' ;
13+ import { serverSideTranslations } from " next-i18next/serverSideTranslations" ;
14+ import { useTranslation } from " next-i18next" ;
715
816const Home : NextPage = ( ) => {
917 const { t } = useTranslation ( ) ;
@@ -13,11 +21,28 @@ const Home: NextPage = () => {
1321 < chakra . main >
1422 < VStack >
1523 < Image src = "/glosseta.png" alt = "Glosseta logo" width = { 300 } />
16- < Heading padding = { 1 } color = "white" >
17- { t ( ' web3GlossaryHeading' ) }
24+ < Heading as = "h1" padding = { 1 } color = "white" >
25+ { t ( " web3GlossaryHeading" ) }
1826 </ Heading >
1927 < HStack spacing = { 3 } >
20- < SearchBar baseWidth = { "80vw" } smWidth = { "30vw" } />
28+ < Box width = "100%" letterSpacing = "wide" >
29+ < Text
30+ textAlign = "center"
31+ padding = { 2 }
32+ fontSize = { { base : "xs" , md : "sm" } }
33+ color = "white"
34+ >
35+ { t ( "glossetaDescription" ) }
36+ </ Text >
37+ </ Box >
38+ </ HStack >
39+ < HStack spacing = { 3 } >
40+ < SearchBar
41+ baseWidth = { "80vw" }
42+ smWidth = { "50vw" }
43+ mdWidth = { "50vw" }
44+ lgWidth = { "30vw" }
45+ />
2146 </ HStack >
2247 </ VStack >
2348 </ chakra . main >
@@ -27,7 +52,7 @@ const Home: NextPage = () => {
2752
2853export const getStaticProps = async ( { locale } : { locale : string } ) => ( {
2954 props : {
30- ...( await serverSideTranslations ( locale , [ ' common' ] ) ) ,
55+ ...( await serverSideTranslations ( locale , [ " common" ] ) ) ,
3156 } ,
3257} ) ;
3358
0 commit comments