Merge branch 'dev' into senpai

This commit is contained in:
Daniel Kluge 2021-12-17 20:44:30 +01:00
commit 56d137334b
6 changed files with 121 additions and 2 deletions

18
package-lock.json generated
View File

@ -7,6 +7,7 @@
"name": "my_website", "name": "my_website",
"dependencies": { "dependencies": {
"next": "12.0.7", "next": "12.0.7",
"phosphor-react": "^1.3.1",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"
}, },
@ -4476,6 +4477,17 @@
"node": ">=0.12" "node": ">=0.12"
} }
}, },
"node_modules/phosphor-react": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/phosphor-react/-/phosphor-react-1.3.1.tgz",
"integrity": "sha512-N4dk4Lrl8Pa2V9cImw/6zP8x9oPFOSh6ixtSvB73zmcpKrX6Sb+lPlu6Y222VOwZx19mfo01bP+OeAbXHw95Jg==",
"engines": {
"node": ">=10"
},
"peerDependencies": {
"react": ">=16"
}
},
"node_modules/picocolors": { "node_modules/picocolors": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
@ -8937,6 +8949,12 @@
"sha.js": "^2.4.8" "sha.js": "^2.4.8"
} }
}, },
"phosphor-react": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/phosphor-react/-/phosphor-react-1.3.1.tgz",
"integrity": "sha512-N4dk4Lrl8Pa2V9cImw/6zP8x9oPFOSh6ixtSvB73zmcpKrX6Sb+lPlu6Y222VOwZx19mfo01bP+OeAbXHw95Jg==",
"requires": {}
},
"picocolors": { "picocolors": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",

View File

@ -9,6 +9,7 @@
}, },
"dependencies": { "dependencies": {
"next": "12.0.7", "next": "12.0.7",
"phosphor-react": "^1.3.1",
"react": "17.0.2", "react": "17.0.2",
"react-dom": "17.0.2" "react-dom": "17.0.2"
}, },

View File

@ -31,7 +31,7 @@ function MyApp({ Component, pageProps }: AppProps) {
<meta name="msapplication-TileImage" content="/mstile-310x310.png" /> <meta name="msapplication-TileImage" content="/mstile-310x310.png" />
<meta name="theme-color" content="#444444" /> <meta name="theme-color" content="#444444" />
</Head> </Head>
<Component {...pageProps} />; <Component {...pageProps} />
</>; </>;
} }

View File

@ -1,5 +1,7 @@
import type { NextPage } from "next"; import type { NextPage } from "next";
import Head from "next/head"; import Head from "next/head";
import Link from "next/link";
import { GithubLogo, InstagramLogo, DiscordLogo } from "phosphor-react";
import REPL from "../components/REPL"; import REPL from "../components/REPL";
import styles from "../styles/Home.module.css"; import styles from "../styles/Home.module.css";
@ -10,6 +12,26 @@ const Home: NextPage = () => {
</Head> </Head>
<div className={styles.container}> <div className={styles.container}>
<REPL /> <REPL />
<div className={styles.footer}>
<span className={styles.spacer} />
<Link href="https://git.c0ntroller.de/c0ntroller/frontpage"><a>Source</a></Link>
<span className={styles.divider}>|</span>
<Link href="https://git.c0ntroller.de/c0ntroller/frontpage/issues/new"><a>Bug?</a></Link>
<span className={styles.divider}>|</span>
<Link href="https://github.com/C0ntroller" passHref><GithubLogo color="var(--repl-color)" weight="light" className={styles.iconLink} /></Link>
<span className={styles.divider}>|</span>
<Link href="https://github.com/C0ntroller" passHref><InstagramLogo color="var(--repl-color)" weight="light" className={styles.iconLink} /></Link>
<span className={styles.divider}>|</span>
<Link href="https://github.com/C0ntroller" passHref>
<span className={styles.tooltip}>
<DiscordLogo color="var(--repl-color)" weight="light" className={styles.iconLink} />
<span className={styles.tooltiptext}>
C0ntroller_Z#3883
</span>
</span>
</Link>
<span className={styles.spacer} />
</div>
</div> </div>
</>); </>);
}; };

View File

@ -4,4 +4,81 @@
height: 100vh; height: 100vh;
margin: 0; margin: 0;
padding: 10px; padding: 10px;
} }
.footer {
flex-shrink: 5;
text-align: center;
font-family: "Segoe UI", Roboto, Tahoma, Geneva, Verdana, sans-serif;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
.footer * {
margin: auto 0;
}
.footer a:active,
.footer a:visited,
.footer a {
color: var(--repl-color);
text-decoration: underline;
font-size: 80%;
}
.footer a:hover {
color: var(--repl-color-link);
}
.footer .divider {
color: var(--repl-color);
margin: 0 5px;
font-size: 80%;
}
.footer .spacer {
flex-grow: 1;
}
.iconLink {
cursor: pointer;
}
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 140px;
background-color: #333;
color: var(--repl-color);
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.1s;
}
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: #555 transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}

View File

@ -6,6 +6,7 @@
* { * {
box-sizing: border-box; box-sizing: border-box;
--repl-color: #188a18; --repl-color: #188a18;
--repl-color-link: #2ac02a;
--repl-color-hint: #092909; --repl-color-hint: #092909;
} }