From cac78a4f4eced88878e746d96b305ecc62826494 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Tue, 31 Jan 2023 14:01:35 -0700 Subject: Move to discord oauth --- front/Dockerfile | 4 ++-- front/src/root.jsx | 7 +++++-- front/src/routes/home.jsx | 17 ++++++++++++++--- 3 files changed, 21 insertions(+), 7 deletions(-) (limited to 'front') diff --git a/front/Dockerfile b/front/Dockerfile index 03a4a4e..16f14f7 100644 --- a/front/Dockerfile +++ b/front/Dockerfile @@ -8,10 +8,10 @@ RUN npm ci COPY . /usr/app -ARG REACT_APP_GITHUB_OAUTH +ARG REACT_APP_DISCORD_OAUTH ARG REACT_APP_SSH_SERVER ARG REACT_APP_SSH_PORT -ENV REACT_APP_GITHUB_OAUTH $REACT_APP_GITHUB_OAUTH +ENV REACT_APP_DISCORD_OAUTH $REACT_APP_DISCORD_OAUTH ENV REACT_APP_SSH_SERVER $REACT_APP_SSH_SERVER ENV REACT_APP_SSH_PORT $REACT_APP_SSH_PORT RUN npm run build diff --git a/front/src/root.jsx b/front/src/root.jsx index 8de2575..1abc67b 100644 --- a/front/src/root.jsx +++ b/front/src/root.jsx @@ -34,8 +34,11 @@ export const Root = () => { ) : ( <> - - 🐙 Login w/ GitHub 🐙 + + 👾 Login w/ Discord 👾 )} diff --git a/front/src/routes/home.jsx b/front/src/routes/home.jsx index 0660a72..c65d87d 100644 --- a/front/src/routes/home.jsx +++ b/front/src/routes/home.jsx @@ -18,6 +18,14 @@ export const Home = () => {

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. +
  3. Add a public key, or{" "} @@ -50,11 +58,14 @@ export const Home = () => { />
  4. -
  5. Finally, play chess!
  6. -

    Ideally, keeping the following contols in mind:

    +
  7. + Finally, play chess! Ideally, keeping the following contols in + mind: +
  8. +
    • Ctrl + b / Escape to return to the main menu.
    • -
    • Ctrl + c / Ctrl + d to exit at any point.
    • +
    • Ctrl + c / Ctrl + d to exit CheSSH at any point.
    • Arrow keys to move around the board.
    • Select a piece with "enter", and move it to a square by pressing -- cgit v1.2.3-70-g09d2