diff --git a/components/Card.js b/components/Card.js
index 61d5f96..3ebf525 100644
--- a/components/Card.js
+++ b/components/Card.js
@@ -1,38 +1,17 @@
-import { makeStyles } from '@material-ui/core'
import React from 'react'
import Link from 'next/link'
+import {Text, Flex, Button} from '@chakra-ui/react'
-const useStyles = makeStyles({
- homeCard: {
- width: '300px',
- height: '150px',
- background: '#1f1b24',
- margin: '10px',
- padding: '20px',
- borderRadius: '15px',
-
- '&:hover': {
- background: '#2c2633',
- }
- },
- title: {
- marginTop: '3px',
- },
- desc: {}
-})
-
-function HomeCard({title, desc, link=''}) {
-
- const classes = useStyles()
-
+function Card({title, desc, link}) {
return (
-
+
+ {title}
+ {desc}
+
+
)
}
-export default HomeCard
+export default Card
diff --git a/components/CardContainer.js b/components/CardContainer.js
deleted file mode 100644
index cd00b17..0000000
--- a/components/CardContainer.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
-import Card from '@material-ui/core/Card';
-import CardActions from '@material-ui/core/CardActions';
-import CardContent from '@material-ui/core/CardContent';
-import Button from '@material-ui/core/Button';
-import Typography from '@material-ui/core/Typography';
-import Link from 'next/link'
-
-const useStyles = makeStyles({
- root: {
- minWidth: 275,
- },
- bullet: {
- display: 'inline-block',
- margin: '0 2px',
- transform: 'scale(0.8)',
- },
- title: {
- fontSize: 14,
- },
- pos: {
- marginBottom: 12,
- },
-});
-
-export default function CardContainer(props) {
- const classes = useStyles();
-
- return (
-
-
-
-
- {props.title}
-
-
- {props.children}
-
-
-
-
-
-
-
- );
-}
\ No newline at end of file
diff --git a/pages/controlpanel/index.js b/pages/controlpanel/index.js
index 721339b..ef4a3c6 100644
--- a/pages/controlpanel/index.js
+++ b/pages/controlpanel/index.js
@@ -2,14 +2,15 @@ import React from 'react'
import Card from '../../components/Card'
import Head from 'next/head'
import { useSession } from 'next-auth/client'
-import { Text } from "@chakra-ui/react"
+import { Flex, Text, Spacer } from "@chakra-ui/react"
+
function Index() {
const [session, loading] = useSession()
return (
- <>
+ <>
{!session && <>
Seems like you're not logged in. Log in to get started!
>
@@ -19,10 +20,14 @@ function Index() {
Cath Control Panel
- Control Panel
-
-
-
+ Control Panel
+
+
+
+
+
+
+
>
}