import { CopyBlock, dracula } from "react-code-blocks"; import { Link } from "react-router-dom"; import { useAuthContext } from "../context/auth_context"; export const Home = () => { const { player, signedIn } = useAuthContext(); if (signedIn) { const sshConfig = `Host chessh Hostname ${process.env.REACT_APP_SSH_SERVER} Port ${process.env.REACT_APP_SSH_PORT} User "${player?.username}" PubkeyAuthentication yes`; return ( <>

Welcome, {player?.username}


Getting Started

  1. Consider joining the{" "} CheSSH Discord{" "} to receive notifications when other players are looking for opponents, or when it is your move in a game.
  2. Add a public key, or{" "} set a password.
  3. Insert the following block in your{" "} ssh config:
  4. Then, connect with:
  5. Finally, play chess! Ideally, keeping the following contols in mind:
); } return ( <>

Looks like you're not signed in 👀.

); };