summaryrefslogtreecommitdiff
path: root/front
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-31 14:01:35 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-31 14:04:23 -0700
commitcac78a4f4eced88878e746d96b305ecc62826494 (patch)
tree33d1d43d7049a30753af82bab600f721e9f8ac67 /front
parente5d97870a12ec87bd463b7657923bb79d3bcb4cc (diff)
downloadchessh-cac78a4f4eced88878e746d96b305ecc62826494.tar.gz
chessh-cac78a4f4eced88878e746d96b305ecc62826494.zip
Move to discord oauth
Diffstat (limited to 'front')
-rw-r--r--front/Dockerfile4
-rw-r--r--front/src/root.jsx7
-rw-r--r--front/src/routes/home.jsx17
3 files changed, 21 insertions, 7 deletions
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 = () => {
</>
) : (
<>
- <a href={process.env.REACT_APP_GITHUB_OAUTH} className="button">
- 🐙 Login w/ GitHub 🐙
+ <a
+ href={process.env.REACT_APP_DISCORD_OAUTH}
+ className="button"
+ >
+ 👾 Login w/ Discord 👾
</a>
</>
)}
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
@@ -20,6 +20,14 @@ export const Home = () => {
<ol>
<div>
<li>
+ Consider joining the{" "}
+ <a href={process.env.REACT_APP_DISCORD_INVITE}>CheSSH Discord</a>{" "}
+ to receive notifications when other players are looking for
+ opponents, or when it is your move in a game.
+ </li>
+ </div>
+ <div>
+ <li>
Add a <Link to="/keys">public key</Link>, or{" "}
<Link to="/password">set a password</Link>.
</li>
@@ -50,11 +58,14 @@ export const Home = () => {
/>
</div>
<div>
- <li>Finally, play chess!</li>
- <p>Ideally, keeping the following contols in mind:</p>
+ <li>
+ Finally, play chess! Ideally, keeping the following contols in
+ mind:
+ </li>
+
<ul>
<li>Ctrl + b / Escape to return to the main menu.</li>
- <li>Ctrl + c / Ctrl + d to exit at any point.</li>
+ <li>Ctrl + c / Ctrl + d to exit CheSSH at any point.</li>
<li>Arrow keys to move around the board.</li>
<li>
Select a piece with "enter", and move it to a square by pressing