feat: main
This commit is contained in:
parent
b261046799
commit
2cb89ebe26
@ -18,8 +18,8 @@ export const Nav = props => {
|
|||||||
py={4}
|
py={4}
|
||||||
px={4}
|
px={4}
|
||||||
>
|
>
|
||||||
<RainbowSkeleton w='40px' ml='auto' mr={"4px"}></RainbowSkeleton>
|
{/* <RainbowSkeleton w='40px' ml='auto' mr={"4px"}></RainbowSkeleton>
|
||||||
<RainbowSkeleton></RainbowSkeleton>
|
<RainbowSkeleton></RainbowSkeleton> */}
|
||||||
</Flex>
|
</Flex>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
11
remix/app/components/Splash/Splash.tsx
Normal file
11
remix/app/components/Splash/Splash.tsx
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import { TextAnimation1 } from '~/components/textAnimation1'
|
||||||
|
import { Flex } from '@chakra-ui/react'
|
||||||
|
|
||||||
|
export const Splash = props => {
|
||||||
|
|
||||||
|
return <Flex w='100vw' h='100vh' alignItems='center' justifyContent='center'>
|
||||||
|
|
||||||
|
<TextAnimation1></TextAnimation1>
|
||||||
|
</Flex>
|
||||||
|
|
||||||
|
}
|
16
remix/app/components/Thingtime/Thingtime.tsx
Normal file
16
remix/app/components/Thingtime/Thingtime.tsx
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
import React from "react"
|
||||||
|
import { Box, Flex } from "@chakra-ui/react"
|
||||||
|
|
||||||
|
export const Thingtime = props => {
|
||||||
|
|
||||||
|
const thing = React.useMemo(() => {
|
||||||
|
return props.thing
|
||||||
|
}, [props.thing])
|
||||||
|
|
||||||
|
return <Flex flexDir="column">
|
||||||
|
<pre>
|
||||||
|
{JSON.stringify(thing, null, 2)}
|
||||||
|
</pre>
|
||||||
|
</Flex>
|
||||||
|
|
||||||
|
}
|
20
remix/app/components/Thingtime/ThingtimeDemo.tsx
Normal file
20
remix/app/components/Thingtime/ThingtimeDemo.tsx
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import React from "react"
|
||||||
|
import { Thingtime } from "./Thingtime"
|
||||||
|
|
||||||
|
export const ThingtimeDemo = props => {
|
||||||
|
|
||||||
|
const thing = {
|
||||||
|
name: 'thing',
|
||||||
|
description: 'thing description',
|
||||||
|
image: 'thing image',
|
||||||
|
price: 100,
|
||||||
|
quantity: 1,
|
||||||
|
id: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
const [demoThing, setDemoThing] = React.useState(thing)
|
||||||
|
|
||||||
|
|
||||||
|
return <Thingtime thing={demoThing}></Thingtime>
|
||||||
|
|
||||||
|
}
|
@ -1,9 +1,12 @@
|
|||||||
import { Flex } from '@chakra-ui/react'
|
import { Flex } from '@chakra-ui/react'
|
||||||
import { TextAnimation1 } from '~/components/textAnimation1'
|
import { Splash } from '~/components/Splash/Splash'
|
||||||
|
import { ThingtimeDemo } from '~/components/Thingtime/ThingtimeDemo'
|
||||||
|
|
||||||
export default function Index () {
|
export default function Index () {
|
||||||
return (
|
return (
|
||||||
<Flex w='100vw' h='100vh' alignItems='center' justifyContent='center'>
|
<Flex flexDir="column" alignItems='center' justifyContent='center'>
|
||||||
<TextAnimation1 />
|
<Splash></Splash>
|
||||||
|
{/* <ThingtimeDemo></ThingtimeDemo> */}
|
||||||
</Flex>
|
</Flex>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "remix build",
|
"build": "remix build",
|
||||||
"dev": "remix dev --port 9000"
|
"dev": "remix dev --port 9999"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.7.1",
|
"@chakra-ui/react": "^2.7.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user