the style feels off

This commit is contained in:
Jasen Qin 2024-04-27 21:02:44 +10:00
parent 4715e323fc
commit 0ccb3ffc2c
7 changed files with 7943 additions and 3746 deletions

View File

@ -1,15 +1,25 @@
'use client'
// 'use client'
import { Box } from '@chakra-ui/react'
import { Button } from "@nextui-org/button"
// import { Box } from '@chakra-ui/react'
// 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>
// )
// }
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>
<div>
<Button>Click me</Button>
</div>
)
}

View File

@ -1,4 +1,4 @@
import { Providers } from './providers'
import { Providers } from './next-providers'
import { fonts } from './fonts'
import { Inter } from 'next/font/google'

View File

@ -0,0 +1,12 @@
// app/providers.tsx
'use client'
import { NextUIProvider } from '@nextui-org/react'
export function Providers({ children }: { children: React.ReactNode }) {
return (
<NextUIProvider>
{children}
</NextUIProvider>
)
}

View File

@ -1,20 +1,39 @@
'use client'
import React from "react"
import { Button } from '@nextui-org/button'
import { Link } from '@chakra-ui/next-js'
import { Box, Flex } from '@chakra-ui/react'
// 'use client'
// import { Link } from '@chakra-ui/next-js'
// import { Box, Flex } from '@chakra-ui/react'
// export default function Page() {
// return (
// <Flex>
// <h1>Home</h1>
// <Box>
// Flex
// </Box>
// <Link href='/about' color='blue.400' _hover={{ color: 'blue.500' }}>
// About
// </Link>
// </Flex>
// )
// }
// app/page.tsx
export default function Page() {
return (
<Flex>
<h1>Home</h1>
<Box>
Flex
</Box>
<Link href='/about' color='blue.400' _hover={{ color: 'blue.500' }}>
About
</Link>
</Flex>
<div className="flex gap-4 items-center" style={{padding: 4}}>
<Button color="primary" size="lg">Click me 2</Button>
<Button size="md">
Medium
</Button>
<Button size="lg">
Large
</Button>
</div>
)
}

View File

@ -1,7 +1,9 @@
import Button from 'react-bootstrap/Button'
export default function Page() {
return (
<>
<Button>
Hi
</>
</Button>
)
}

View File

@ -15,11 +15,15 @@
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@nextui-org/button": "^2.0.31",
"@nextui-org/react": "^2.3.6",
"bootstrap": "^5.3.3",
"framer-motion": "^11.0.25",
"level-rocksdb": "^5.0.0",
"next": "^14.1.4",
"nodejs-polars": "^0.11.0",
"react": "^18",
"react-bootstrap": "^2.10.2",
"react-dom": "^18",
"rocksdb": "^5.2.1"
},

File diff suppressed because it is too large Load Diff