initial semi-boiler
This commit is contained in:
parent
d7e6aa82c0
commit
7227568c05
|
|
@ -1,13 +1,15 @@
|
||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import React from "react"
|
|
||||||
import { Box } from '@chakra-ui/react'
|
import { Box } from '@chakra-ui/react'
|
||||||
|
|
||||||
export default function Page() {
|
export default function About() {
|
||||||
(
|
return (
|
||||||
<Box color={"black"}>
|
<Box color={"black"}>
|
||||||
About
|
About
|
||||||
The stuff is here
|
The stuff is here
|
||||||
|
<Box bg='tomato' w='100%' p={4} color='white'>
|
||||||
|
This is the Box
|
||||||
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
import { Providers } from './providers'
|
import { Providers } from './providers'
|
||||||
import { fonts } from './fonts'
|
import { fonts } from './fonts'
|
||||||
|
import { Inter } from 'next/font/google'
|
||||||
|
|
||||||
|
const inter = Inter({ subsets: ['latin'] })
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,18 @@
|
||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { Link } from '@chakra-ui/next-js'
|
import { Link } from '@chakra-ui/next-js'
|
||||||
|
import { Box, Flex } from '@chakra-ui/react'
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return (
|
return (
|
||||||
<Link href='/about' color='blue.400' _hover={{ color: 'blue.500' }}>
|
<Flex>
|
||||||
About
|
<Box>
|
||||||
</Link>
|
Flex
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
<Link href='/about' color='blue.400' _hover={{ color: 'blue.500' }}>
|
||||||
|
About
|
||||||
|
</Link>
|
||||||
|
</Flex>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { ChakraProvider } from '@chakra-ui/react'
|
import { ChakraProvider } from '@chakra-ui/react'
|
||||||
|
import { CacheProvider } from '@chakra-ui/next-js'
|
||||||
|
|
||||||
export function Providers({ children }: { children: React.ReactNode }) {
|
export function Providers({ children }: { children: React.ReactNode }) {
|
||||||
return <ChakraProvider>{children}</ChakraProvider>
|
return (<CacheProvider><ChakraProvider>{children}</ChakraProvider></CacheProvider>)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
export default function Page() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
Hi
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
/** @type {import('next').NextConfig} */
|
|
||||||
const nextConfig = {}
|
|
||||||
|
|
||||||
export default nextConfig
|
|
||||||
|
|
@ -21,11 +21,6 @@
|
||||||
"name": "next"
|
"name": "next"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"paths": {
|
|
||||||
"@/*": [
|
|
||||||
"./src/*"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue