diff --git a/pages/index.tsx b/pages/index.tsx index 4e84a46..5869bb0 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -3,12 +3,24 @@ import { NextPage } from "next"; import Head from "next/head"; import logoImg from "../ui/assets/logo.png"; import Image from "next/image"; -import { Card, Colors, Text } from "@blueprintjs/core"; +import { Button, Card, Colors, Icon, Text } from "@blueprintjs/core"; import Link from "next/link"; import { useDarkMode } from "../ui/providers/dark-mode-provider"; import LANGUAGES from "./languages.json"; +import { GitHubIcon } from "../ui/custom-icons"; + +const REPO_URL = "https://github.com/nilaymaj/esolang-park"; +const WIKI_URL = REPO_URL + "/wiki"; +const GUIDE_URL = REPO_URL + "/wiki/Language-Providers"; +const ISSUE_URL = REPO_URL + "/issues/new"; const styles = { + topPanel: { + position: "absolute" as "absolute", + top: 0, + right: 0, + padding: 10, + }, rootContainer: { height: "100%", display: "flex", @@ -39,15 +51,32 @@ const styles = { }; const Index: NextPage = () => { - const { isDark } = useDarkMode(); - const backgroundColor = isDark ? Colors.DARK_GRAY3 : Colors.WHITE; + const DarkMode = useDarkMode(); + const backgroundColor = DarkMode.isDark ? Colors.DARK_GRAY3 : Colors.WHITE; return ( <> Esolang Park + {/* Buttons in the top-right */} +
+
+ {/* Container for center content */}
+ {/* Project heading */}
logo @@ -59,6 +88,7 @@ const Index: NextPage = () => {

An online visual debugger for esoteric languages

+ {/* Language cards */}
{LANGUAGES.map(({ display, id }) => ( @@ -70,6 +100,14 @@ const Index: NextPage = () => { ))}
+ {/* "More esolangs" section */} + +

+ Need support for your favorite esolang? Submit an{" "} + issue on GitHub (or{" "} + implement it yourself!) +

+
);