diff --git a/pages/index.tsx b/pages/index.tsx index 839e2ff..4e84a46 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -6,13 +6,7 @@ import Image from "next/image"; import { Card, Colors, Text } from "@blueprintjs/core"; import Link from "next/link"; import { useDarkMode } from "../ui/providers/dark-mode-provider"; - -const LANGUAGES = [ - { display: "Befunge-93", id: "befunge93" }, - { display: "Brainf*ck", id: "brainfuck" }, - { display: "Chef", id: "chef" }, - { display: "Deadfish", id: "deadfish" }, -]; +import LANGUAGES from "./languages.json"; const styles = { rootContainer: { @@ -56,7 +50,7 @@ const Index: NextPage = () => {
- + logo

Esolang Park

diff --git a/pages/languages.json b/pages/languages.json new file mode 100644 index 0000000..e4d6e5e --- /dev/null +++ b/pages/languages.json @@ -0,0 +1,18 @@ +[ + { + "display": "Befunge-93", + "id": "befunge93" + }, + { + "display": "Brainf*ck", + "id": "brainfuck" + }, + { + "display": "Chef", + "id": "chef" + }, + { + "display": "Deadfish", + "id": "deadfish" + } +] diff --git a/ui/header.tsx b/ui/header.tsx index 6239b5e..2a61d6c 100644 --- a/ui/header.tsx +++ b/ui/header.tsx @@ -11,7 +11,7 @@ export const Header = ({ langName }: { langName: string }) => {