From d7354f3c3a22c000966467a7d11374574c4e2ae9 Mon Sep 17 00:00:00 2001 From: Alexis Werefox Date: Sat, 1 May 2021 22:33:12 +0000 Subject: [PATCH] Added a page to list out the servers. --- src/info/components/server-block.js | 33 +++++++++++++++++++++++++++ src/info/components/server-card.js | 24 ++++++++++++++++++++ src/info/js/variables.js | 35 +++++++++++++++++++++++++++++ src/info/pages/servers/index.js | 13 +++++++++++ src/info/public/emoji/computer.svg | 1 + 5 files changed, 106 insertions(+) create mode 100644 src/info/components/server-block.js create mode 100644 src/info/components/server-card.js create mode 100644 src/info/pages/servers/index.js create mode 100644 src/info/public/emoji/computer.svg diff --git a/src/info/components/server-block.js b/src/info/components/server-block.js new file mode 100644 index 0000000..bc8ad1e --- /dev/null +++ b/src/info/components/server-block.js @@ -0,0 +1,33 @@ +import { SERVERS } from "../js/variables"; +import SCard from "./server-card"; +import Link from "next/link"; + +export default function ServerBlock({}) { + return ( +
+

+ All the stuff I run uses the following server machines, with a reverse + SSH connection to a{" "} + + + Linode VPS + + + {"."} +

+ {Object.keys(SERVERS).map((server) => ( + + ))} +
+ ); +} diff --git a/src/info/components/server-card.js b/src/info/components/server-card.js new file mode 100644 index 0000000..014aa15 --- /dev/null +++ b/src/info/components/server-card.js @@ -0,0 +1,24 @@ +export default function ServerCard({ server, model, cpu, gpu, ram, os }) { + return ( +
+

+ {`System: ${server}`} +

+

+ {`Model: ${model}`} +

+

+ {`CPU: ${cpu}`} +

+

+ {`GPU: ${gpu}`} +

+

+ {`RAM: ${ram}`} +

+

+ {`OS: ${os}`} +

+
+ ); +} diff --git a/src/info/js/variables.js b/src/info/js/variables.js index 80337f0..b9af0b2 100644 --- a/src/info/js/variables.js +++ b/src/info/js/variables.js @@ -135,6 +135,15 @@ export const PAGES = { }, ], }, + Servers: { + url: "/servers", + images: [ + { + src: "/emoji/computer.svg", + alt: "Computer emoji", + }, + ], + }, "Support Me?": { url: "/support", images: [ @@ -297,6 +306,32 @@ export const FAQS = { }, }; +// This is where I put my server specifications + +export const SERVERS = { + "Intel NUC": { + model: "8i5BEH", + cpu: "Intel i5 8529U eight-core @2.3-3.8Ghz", + gpu: "Intel Iris Plus Graphics 655", + ram: "16 Gb @2400Mhz", + os: "Ubuntu Server 20.04", + }, + "Raspberry Pi 4 (x2)": { + model: "B Rev 1.4", + cpu: "BCM2835 four-core @1.5Ghz", + gpu: "N/A", + ram: "8 Gb", + os: "Ubuntu Server 20.04", + }, + "ASUS MINIPC": { + model: "PB50 0601", + cpu: "AMD Ryzen 5 3550H eight-core @2.1-3.7GHz", + gpu: "AMD Radeon Vega 8 Graphics", + ram: "32 Gb", + os: "Ubuntu Server 20.10", + }, +}; + // An object listing the different stuff I do export const PROJECTS = { diff --git a/src/info/pages/servers/index.js b/src/info/pages/servers/index.js new file mode 100644 index 0000000..dbb1ec4 --- /dev/null +++ b/src/info/pages/servers/index.js @@ -0,0 +1,13 @@ +import BasicPage from "../../components/basic-page"; +import WCard from "../../components/werefox-card"; +import SBlock from "../../components/server-block"; + +export default function Servers() { + return ( + + + + + + ); +} diff --git a/src/info/public/emoji/computer.svg b/src/info/public/emoji/computer.svg new file mode 100644 index 0000000..05b9c88 --- /dev/null +++ b/src/info/public/emoji/computer.svg @@ -0,0 +1 @@ + \ No newline at end of file