initial semi-boiler

This commit is contained in:
Jasen Qin 2024-04-07 05:18:14 +10:00
parent d7e6aa82c0
commit 7227568c05
7 changed files with 27 additions and 16 deletions

View File

@ -1,13 +1,15 @@
'use client'
import React from "react"
import { Box } from '@chakra-ui/react'
export default function Page() {
(
export default function About() {
return (
<Box color={"black"}>
About
The stuff is here
<Box bg='tomato' w='100%' p={4} color='white'>
This is the Box
</Box>
</Box>
)
}

View File

@ -1,5 +1,8 @@
import { Providers } from './providers'
import { fonts } from './fonts'
import { Inter } from 'next/font/google'
const inter = Inter({ subsets: ['latin'] })
export default function RootLayout({
children,

View File

@ -1,11 +1,18 @@
'use client'
import { Link } from '@chakra-ui/next-js'
import { Box, Flex } from '@chakra-ui/react'
export default function Page() {
return (
<Flex>
<Box>
Flex
</Box>
<Link href='/about' color='blue.400' _hover={{ color: 'blue.500' }}>
About
</Link>
</Flex>
)
}

View File

@ -1,7 +1,8 @@
'use client'
import { ChakraProvider } from '@chakra-ui/react'
import { CacheProvider } from '@chakra-ui/next-js'
export function Providers({ children }: { children: React.ReactNode }) {
return <ChakraProvider>{children}</ChakraProvider>
return (<CacheProvider><ChakraProvider>{children}</ChakraProvider></CacheProvider>)
}

View File

@ -0,0 +1,7 @@
export default function Page() {
return (
<>
Hi
</>
)
}

View File

@ -1,4 +0,0 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}
export default nextConfig

View File

@ -21,11 +21,6 @@
"name": "next"
}
],
"paths": {
"@/*": [
"./src/*"
]
}
},
"include": [
"next-env.d.ts",