From b33439e75d4b22a0c68b5cb56851b518a5ea7db7 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 17 Apr 2021 10:30:24 +0200 Subject: started moving to css files --- components/footer.tsx | 4 ++-- components/logo.tsx | 25 ++++++------------------- components/navbar.tsx | 42 ++++++++++++++---------------------------- components/ui.tsx | 20 +------------------- 4 files changed, 23 insertions(+), 68 deletions(-) (limited to 'components') diff --git a/components/footer.tsx b/components/footer.tsx index 36ebef3..f39946c 100644 --- a/components/footer.tsx +++ b/components/footer.tsx @@ -1,5 +1,5 @@ import { ReactNode } from 'react'; -import { LogoDark } from '../components/logo'; +import Logo from '../components/logo'; import ExitToAppOutlinedIcon from '@material-ui/icons/ExitToAppOutlined'; import ExtensionIcon from '@material-ui/icons/Extension'; @@ -25,7 +25,7 @@ function PageLink(props: { export function Footer() { return
- +

4 op een rij

diff --git a/components/logo.tsx b/components/logo.tsx index e43aa88..9faf43f 100644 --- a/components/logo.tsx +++ b/components/logo.tsx @@ -1,27 +1,14 @@ -export function LogoDark() { +export default function Logo() { return (
- - - - - + + + + +
); } -export function LogoLight() { - return ( -
- - - - - - - -
- ); -} diff --git a/components/navbar.tsx b/components/navbar.tsx index 70de574..932669d 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -1,8 +1,8 @@ import axios from 'axios'; -import { CSSProperties, useContext, useEffect, useState } from 'react'; +import { useContext, useEffect, useState } from 'react'; import { userInfo } from '../api/api'; -import { LogoDark } from '../components/logo'; +import Logo from '../components/logo'; import { AccountAvatar } from './account'; import { NotificationsArea } from './notificationsArea'; import { SocketContext } from './socketContext'; @@ -15,12 +15,6 @@ import SearchIcon from '@material-ui/icons/Search'; import SettingsIcon from '@material-ui/icons/Settings'; import VideogameAssetIcon from '@material-ui/icons/VideogameAsset'; -var NavBarItemStyle: CSSProperties = { - margin: 12, - marginBottom: 16, - display: 'block', -}; - export function NavBar() { var [loggedIn, setLoggedIn] = useState(false); var [gotData, setGotData] = useState(false); @@ -61,14 +55,13 @@ export function NavBar() { }, []); return
-
- +
+
- + - + - {false && + {false && } - + -
+
{loggedIn && diff --git a/components/ui.tsx b/components/ui.tsx index c3f950b..99479a8 100644 --- a/components/ui.tsx +++ b/components/ui.tsx @@ -9,7 +9,6 @@ export function Vierkant(props: { href?: string; width?: string; height?: string; - style?: CSSProperties; children?: ReactNode; className?: string; id?: string; @@ -17,25 +16,8 @@ export function Vierkant(props: { onclick?: () => void; }) { return -- cgit v1.2.3