11import React from 'react'
22import { ScrollView } from 'react-native'
33import { HydratedRouteProps , createQueryBridge } from '@green-stack/navigation'
4- import { View , Link , Image , P , H1 , H3 , Text , H2 } from '../components/styled'
4+ import { View , Link , Image , P , H1 , H3 , Text , H2 , cn } from '../components/styled'
55import { healthCheckFetcher } from '../resolvers/healthCheck.query'
66import { ArrowRightFilled } from '../icons/ArrowRightFilled'
77import { isLargeTablet } from '../appConfig'
@@ -40,10 +40,10 @@ const HomeScreen = (props: HomeScreenProps) => {
4040 style = { { backgroundColor : '#1e293b' } }
4141 >
4242 < View
43- className = { [
43+ className = { cn (
4444 "flex flex-1 flex-col justify-between items-center bg-slate-800" ,
4545 "lg:p-24 lg:justify-start" ,
46- ] . join ( ' ' ) }
46+ ) }
4747 >
4848
4949 < View className = "hidden invisible lg:visible lg:flex lg:w-full lg:max-w-5xl h-14" accessibilityElementsHidden >
@@ -53,11 +53,11 @@ const HomeScreen = (props: HomeScreenProps) => {
5353 { /* Side Icons */ }
5454
5555 < View
56- className = { [
56+ className = { cn (
5757 "hidden invisible flex-row top-28 w-screen max-w-5xl h-20 items-center justify-between" ,
5858 "lg:absolute lg:visible lg:flex lg:h-[90%] lg:top-0" ,
5959 "ios:lg:top-24" , // -i- If you need platform specifc flags, e.g. iPad in this case
60- ] . join ( ' ' ) }
60+ ) }
6161 >
6262 < View className = "w-[57px] h-[98px] lg:w-[114px] lg:h-[197px]" >
6363 < Image
@@ -82,11 +82,11 @@ const HomeScreen = (props: HomeScreenProps) => {
8282 { /* Logo & Tagline */ }
8383
8484 < View
85- className = { [
85+ className = { cn (
8686 "flex flex-row absolute top-28 w-screen max-w-5xl h-20 items-center justify-center" ,
8787 "lg:h-[90%] lg:top-0 lg:max-w-[100%]" ,
8888 "ios:lg:top-24" ,
89- ] . join ( ' ' ) }
89+ ) }
9090 >
9191 < Link href = "https://fullproduct.dev" target = "_blank" className = "flex flex-row no-underline" >
9292 < View className = "w-20 h-20 lg:w-24 lg:h-24" >
@@ -115,10 +115,10 @@ const HomeScreen = (props: HomeScreenProps) => {
115115 < View className = "h-64" />
116116
117117 < View
118- className = { [
118+ className = { cn (
119119 "flex flex-col relative bottom-auto w-screen max-w-5xl items-center justify-center px-8" ,
120120 "lg:absolute lg:bottom-24 lg:flex-row lg:top-auto lg:items-start lg:px-0" ,
121- ] . join ( ' ' ) }
121+ ) }
122122 >
123123 < InfoSection
124124 title = "Docs 📚"
@@ -156,11 +156,11 @@ const HomeScreen = (props: HomeScreenProps) => {
156156 < View className = "h-16 lg:h-0" />
157157
158158 < View
159- className = { [
159+ className = { cn (
160160 "flex flex-row relative w-screen max-w-5xl h-14 items-center justify-center" ,
161161 "lg:bottom-auto lg:absolute lg:justify-end" ,
162162 "ios:lg:top-24" ,
163- ] . join ( ' ' ) }
163+ ) }
164164 >
165165 < Link
166166 className = "flex flex-row items-center no-underline"
@@ -209,17 +209,17 @@ const HomeScreen = (props: HomeScreenProps) => {
209209
210210const GettingStarted = ( ) => (
211211 < View
212- className = { [
212+ className = { cn (
213213 "flex flex-1 flex-row absolute lg:max-w-5xl h-14 items-center justify-start" ,
214214 "left-0 right-0" ,
215- ] . join ( ' ' ) }
215+ ) }
216216 >
217217 < P
218- className = { [
218+ className = { cn (
219219 "flex flex-1 absolute left-0 top-0 justify-center bg-slate-700 border-b border-solid border-gray-700 pb-4 pt-10 text-center text-sm text-gray-100" ,
220220 "lg:relative lg:rounded-xl lg:border lg:bg-gray-800 lg:p-4 lg:text-lg" ,
221221 "left-0 right-0 lg:flex-grow-0 lg:flex-row lg:flex-initial" ,
222- ] . join ( ' ' ) }
222+ ) }
223223 style = { isLargeTablet ? {
224224 borderWidth : 1 ,
225225 borderColor : '#374151' ,
0 commit comments