import type { NextPage } from "next"; import Head from "next/head"; import { GithubLogo, InstagramLogo, DiscordLogo, GameController } from "phosphor-react"; import { useRef, useState } from "react"; import ProjectModal from "../components/ProjectModal"; import REPL from "../components/REPL"; import type { Project, Diary } from "../lib/projects/types"; import styles from "../styles/Home.module.css"; const Home: NextPage = () => { const inputRef = useRef(null); const [modalVisible, setModalVisible] = useState(false); const [modalProject, setModalProject] = useState(undefined); const [modalProjectType, setModalProjectType] = useState<"project"|"diary">("project"); const focusInput = () => { if (inputRef.current) inputRef.current.focus(); }; const hideModalOnEsc = (e: React.KeyboardEvent) => { if (e.key === "Escape") { e.preventDefault(); setModalVisible(false); } }; return (
c0ntroller.de
); }; export default Home;