diff --git a/leaky-ships/pages/_app.tsx b/leaky-ships/pages/_app.tsx index 36341e0..8a8a1e0 100644 --- a/leaky-ships/pages/_app.tsx +++ b/leaky-ships/pages/_app.tsx @@ -1,6 +1,7 @@ import '../styles/App.scss' -import '../styles/home.scss' -import '../styles/home2.scss' +import '../styles/grid.scss' +import '../styles/grid2.scss' +import '../styles/homepage.scss' import type { AppProps } from 'next/app' export default function App({ Component, pageProps }: AppProps) { diff --git a/leaky-ships/pages/homepage.tsx b/leaky-ships/pages/homepage.tsx new file mode 100644 index 0000000..0327f27 --- /dev/null +++ b/leaky-ships/pages/homepage.tsx @@ -0,0 +1,32 @@ +import { faCompass } from '@fortawesome/pro-solid-svg-icons' +import { faCirclePlay } from '@fortawesome/pro-thin-svg-icons' +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { useState } from 'react' + +export default function Home() { + const [heWantsToPlay, setHeWantsToPlay] = useState(false) + return ( +
+ +
+ Shield Logo + {!heWantsToPlay ? + <> +
+ +
+ + : +
+
+ + + +
+
} +
+
+ ) +} diff --git a/leaky-ships/pages/index.tsx b/leaky-ships/pages/index.tsx index 85174f8..7d57233 100644 --- a/leaky-ships/pages/index.tsx +++ b/leaky-ships/pages/index.tsx @@ -1,6 +1,5 @@ import Head from 'next/head' import Link from 'next/link' -// import styles from '../styles/Home.module.css' export default function Home() { return ( @@ -13,6 +12,7 @@ export default function Home() {

Gamefield

+

Homepage

Grid Effect

Grid Effect with Content

SocketIO

diff --git a/leaky-ships/styles/home.scss b/leaky-ships/styles/grid.scss similarity index 100% rename from leaky-ships/styles/home.scss rename to leaky-ships/styles/grid.scss diff --git a/leaky-ships/styles/home2.scss b/leaky-ships/styles/grid2.scss similarity index 100% rename from leaky-ships/styles/home2.scss rename to leaky-ships/styles/grid2.scss diff --git a/leaky-ships/styles/homepage.scss b/leaky-ships/styles/homepage.scss new file mode 100644 index 0000000..75df9cd --- /dev/null +++ b/leaky-ships/styles/homepage.scss @@ -0,0 +1,98 @@ +#box { + border: 2px solid black; + height: 100vh; + width: 100vw; + background-color: #282c34; + + #navExpand { + position: absolute; + top: 64px; + left: 64px; + width: 96px; + height: 96px; + background-color: black; + border-radius: 8px; + border: none; + + svg { + height: 50%; + width: 50%; + color: white; + } + } + + .beforeStartBox { + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-evenly; + height: 100%; + width: 100%; + + #shield { + width: 450px; + + } + + #videoWrapper { + display: flex; + align-items: center; + justify-content: center; + height: 225px; + width: 525px; + background-color: #2227; + border: 2px solid black; + border-radius: 8px; + + svg { + font-size: 4em; + color: #231f20; + + path { + stroke: black; + stroke-width: 2px; + stroke-linejoin: round; + } + } + } + + #startButton { + font-size: 2.5em; + color: white; + background-color: black; + border: none; + border-radius: 8px; + padding: 2rem 6rem; + } + + #startBox { + display: flex; + flex-direction: column; + align-items: center; + background-color: #B1B2B5CC; + border: 3px solid black; + padding: 3rem; + border-radius: 8px; + min-width: 60vw; + + div { + display: flex; + flex-direction: column; + align-items: center; + gap: 3rem; + + .optionButton { + font-size: 2em; + color: #B1B2B5CC; + background-color: #000C; + border: none; + border-radius: 8px; + padding: 1rem 4rem; + width: 100%; + } + + } + + } + } +} \ No newline at end of file