From e1a6f10bad6c235c4538a56408340fdc8bd682ab Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 8 Apr 2021 17:55:14 +0200 Subject: footer in code +/ css samples --- components/footer.tsx | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ pages/_app.tsx | 1 + pages/index.tsx | 2 ++ pages/settings.tsx | 3 ++- pages/user.tsx | 2 ++ styles/footer.css | 35 +++++++++++++++++++++++++++++++++++ 6 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 components/footer.tsx create mode 100644 styles/footer.css diff --git a/components/footer.tsx b/components/footer.tsx new file mode 100644 index 0000000..2d84a1c --- /dev/null +++ b/components/footer.tsx @@ -0,0 +1,49 @@ +import { LogoDark } from "../components/logo"; +import { ReactNode } from 'react'; + +import Home from '@material-ui/icons/Home'; +import VideogameAssetIcon from '@material-ui/icons/VideogameAsset'; +import ExtensionIcon from '@material-ui/icons/Extension'; +import SearchIcon from '@material-ui/icons/Search'; +import SettingsIcon from '@material-ui/icons/Settings'; +import PersonIcon from '@material-ui/icons/Person'; +import ExitToAppOutlinedIcon from '@material-ui/icons/ExitToAppOutlined'; +import LockIcon from '@material-ui/icons/Lock'; +import GitHubIcon from '@material-ui/icons/GitHub'; + +function PageLink(props: { + icon: ReactNode; + href: string; + children: string; +}) { + return + {props.icon} + {props.children} + +} + +export function Footer() { + return
+
+ +

4 op een rij

+
+
+
+ } href="/" children="Home"/> + } href="/game" children="Spelen"/> + } href="/" children="Puzzels"/> + } href="/search" children="Zoeken"/> +
+
+ } href="/privacy" children="Privacy"/> + } href="https://github.com/lonkaars/connect-4" children="Broncode"/> +
+
+ } href="/settings" children="Instellingen"/> + } href="/user" children="Profiel"/> + } href="/logout" children="Uitloggen"/> +
+
+
+} diff --git a/pages/_app.tsx b/pages/_app.tsx index a95caa4..fad7c33 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -6,6 +6,7 @@ import { SocketContextWrapper } from '../components/socketContext'; import '../styles/global.css'; import '../styles/dark.css'; import '../styles/disk.css'; +import '../styles/footer.css'; export default function VierOpEenRijWebsite({ Component, pageProps }) { return
diff --git a/pages/index.tsx b/pages/index.tsx index dfb14e6..9bfe2a7 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -2,6 +2,7 @@ import { CSSProperties, useState, useEffect, useContext } from 'react'; import axios from 'axios'; import { userInfo, userGameTotals, userGames } from '../api/api'; import { SocketContext } from '../components/socketContext'; +import { Footer } from '../components/footer'; import { NavBar } from '../components/navbar'; import { CenteredPage, PageTitle } from '../components/page'; @@ -194,6 +195,7 @@ export default function HomePage() {

Chess.com heeft heel veel troep waar niemand naar kijkt

+
} diff --git a/pages/settings.tsx b/pages/settings.tsx index 99a87d1..dcaa866 100644 --- a/pages/settings.tsx +++ b/pages/settings.tsx @@ -1,7 +1,6 @@ import { CSSProperties, useContext } from 'react'; import * as cookies from 'react-cookies'; import axios from 'axios'; -import pica from 'pica'; import reduce from 'image-blob-reduce'; import { NavBar } from '../components/navbar'; @@ -10,6 +9,7 @@ import { Vierkant, IconLabelButton, CheckBox, ColorPicker } from '../components/ import { AccountAvatar } from '../components/account'; import { CurrentGameSettings } from '../components/gameSettings'; import PreferencesContext from '../components/preferencesContext'; +import { Footer } from '../components/footer'; import EditOutlinedIcon from '@material-ui/icons/EditOutlined'; import VisibilityOutlinedIcon from '@material-ui/icons/VisibilityOutlined'; @@ -143,6 +143,7 @@ export default function SettingsPage() { +