Changed text sizes and removed unused imports

This commit is contained in:
qt coder 2021-06-27 21:49:16 +08:00
parent 57d610779b
commit 180ea021cb
2 changed files with 4 additions and 4 deletions

View file

@ -2,6 +2,7 @@ import React from 'react'
import Card from '../../components/Card' import Card from '../../components/Card'
import Head from 'next/head' import Head from 'next/head'
import { useSession } from 'next-auth/client' import { useSession } from 'next-auth/client'
import { Text } from "@chakra-ui/react"
function Index() { function Index() {
@ -18,7 +19,7 @@ function Index() {
<title>Cath Control Panel</title> <title>Cath Control Panel</title>
</Head> </Head>
<div> <div>
<h1>Control Panel</h1> <Text fontSize='4xl'>Control Panel</Text>
<Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/> <Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/>
<Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/> <Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/>
<Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/> <Card title='Commands' desc='Control your commands and their settings.' link='/controlpanel/commands'/>

View file

@ -1,7 +1,6 @@
import { Typography } from '@material-ui/core'
import CardContainer from '../components/CardContainer'
import Card from '../components/Card' import Card from '../components/Card'
import { useSession } from 'next-auth/client' import { useSession } from 'next-auth/client'
import { Text } from "@chakra-ui/react"
export default function Home() { export default function Home() {
@ -15,7 +14,7 @@ export default function Home() {
</> </>
} }
{session && <> {session && <>
<h1>Welcome {session.user.name}!</h1> <Text fontSize='4xl'>Welcome {session.user.name}!</Text>
<div className='grid'> <div className='grid'>
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/> <Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>
<Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/> <Card title='commands' desc='lorem ipsum dolor sit amet' link='/controlpanel/commands'/>