From e8f6bc31ae21152578793042e93c0b2ffe786c1b Mon Sep 17 00:00:00 2001 From: wiltonlee948 Date: Tue, 3 Jan 2023 19:54:45 -0800 Subject: [PATCH 1/6] created new email page created new email page --- www/src/pages/secret.tsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 www/src/pages/secret.tsx diff --git a/www/src/pages/secret.tsx b/www/src/pages/secret.tsx new file mode 100644 index 000000000..79b2e75d5 --- /dev/null +++ b/www/src/pages/secret.tsx @@ -0,0 +1,29 @@ +/** + * create an input box + * create a password andusername checker -- + * if correct send them the shit + */ + +import { type NextPage } from "next"; +import Head from "next/head"; +import Link from "next/link"; +import LandingPage from "./components/LandingPage"; +import NavBar from "./components/NavBar"; +import Blogs from "./components/Blogs"; +import { trpc } from "../utils/trpc"; + +const secret: NextPage = () => { + return ( + <> + + + + + ); +}; + +export default secret; From 342da52aef9ea961dee3ea296b307841016ae260 Mon Sep 17 00:00:00 2001 From: wiltonlee948 Date: Tue, 3 Jan 2023 20:00:47 -0800 Subject: [PATCH 2/6] created input element and styled it --- www/src/pages/secret.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/www/src/pages/secret.tsx b/www/src/pages/secret.tsx index 79b2e75d5..33b6052aa 100644 --- a/www/src/pages/secret.tsx +++ b/www/src/pages/secret.tsx @@ -15,13 +15,15 @@ import { trpc } from "../utils/trpc"; const secret: NextPage = () => { return ( <> - - - +
+ + + +
); }; From 6d53eb6d5c14194c8f460a02e64ba360e33a79e3 Mon Sep 17 00:00:00 2001 From: wiltonlee948 Date: Tue, 3 Jan 2023 20:28:56 -0800 Subject: [PATCH 3/6] created clickHandler function --- www/src/pages/secret.tsx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/www/src/pages/secret.tsx b/www/src/pages/secret.tsx index 33b6052aa..df23bf1e1 100644 --- a/www/src/pages/secret.tsx +++ b/www/src/pages/secret.tsx @@ -5,6 +5,7 @@ */ import { type NextPage } from "next"; +import { useState } from "react"; import Head from "next/head"; import Link from "next/link"; import LandingPage from "./components/LandingPage"; @@ -13,17 +14,31 @@ import Blogs from "./components/Blogs"; import { trpc } from "../utils/trpc"; const secret: NextPage = () => { + + const [isAdmin, setIsAdmin] = useState(false); + const [password, setPassword] = useState("") + + const clickHandler = (e:any) => { + if (process.env.NEXT_PUBLIC_ADMIN_PASSWORD === password) { + setIsAdmin(true); + } + }; + return ( <> -
+ {!isAdmin &&
setPassword(e.target.value)} required placeholder="password" className="block w-50 rounded-md border border-gray-300 px-5 py-3 text-base text-gray-900 placeholder-gray-500 shadow-sm focus:border-rose-500 focus:ring-rose-500 mr-8"> - -
+ +
} + {isAdmin &&
You logged in!
} + ); }; From 2ff43879ff9326ea6fcbc086efd88c4f21cf0041 Mon Sep 17 00:00:00 2001 From: wiltonlee948 Date: Tue, 3 Jan 2023 20:37:27 -0800 Subject: [PATCH 4/6] created conditional rendering of elements --- www/src/pages/secret.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/www/src/pages/secret.tsx b/www/src/pages/secret.tsx index df23bf1e1..3dbff3831 100644 --- a/www/src/pages/secret.tsx +++ b/www/src/pages/secret.tsx @@ -14,11 +14,10 @@ import Blogs from "./components/Blogs"; import { trpc } from "../utils/trpc"; const secret: NextPage = () => { - const [isAdmin, setIsAdmin] = useState(false); - const [password, setPassword] = useState("") + const [password, setPassword] = useState(""); - const clickHandler = (e:any) => { + const clickHandler = () => { if (process.env.NEXT_PUBLIC_ADMIN_PASSWORD === password) { setIsAdmin(true); } @@ -35,7 +34,7 @@ const secret: NextPage = () => { placeholder="password" className="block w-50 rounded-md border border-gray-300 px-5 py-3 text-base text-gray-900 placeholder-gray-500 shadow-sm focus:border-rose-500 focus:ring-rose-500 mr-8"> - + } {isAdmin &&
You logged in!
} From 714c8316e7a6836818c136c3a91e4225c67409c5 Mon Sep 17 00:00:00 2001 From: wiltonlee948 Date: Tue, 3 Jan 2023 20:54:27 -0800 Subject: [PATCH 5/6] added contributors --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 5027c8305..a2b6759e4 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "Andy Tsou", "Andy Wong", "Becca Viner", + "Ben Margolius", "Bryan Lee", "Caitlin Chan", "Caner Demir", @@ -58,12 +59,14 @@ "Dennis Lopez", "Edwin Menendez", "Ergi Shehu", + "Eric Yun", "Freya Wu", "Gabriela Jardim Aquino", "Gregory Panciera", "Haejin Jo", "Hien Nguyen", "Jack Crish", + "James Nghiem", "Joseph Park", "Josh Kim", "Joshua Howard", @@ -83,6 +86,7 @@ "Sierra Swaby", "Tania Lind", "Viet Nguyen", + "Wilton Lee", "Yujin Kang" ], "license": "ISC", From caac29558e8da2e9af86511ee6c3a27cd350961f Mon Sep 17 00:00:00 2001 From: wiltonlee948 Date: Tue, 3 Jan 2023 21:01:47 -0800 Subject: [PATCH 6/6] updated readme --- README.fr.md | 4 ++++ README.md | 4 ++++ README.rus.md | 5 ++++- www/src/pages/components/TeamSection.tsx | 4 ++++ 4 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.fr.md b/README.fr.md index eac88a3a6..4104075ea 100644 --- a/README.fr.md +++ b/README.fr.md @@ -131,6 +131,10 @@ Après avoir cloné ce référentiel, les développeurs peuvent simplement exéc ## Auteurs +- **Ben Margolius** - [@benmarg](https://github.com/benmarg) +- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun) +- **James Nghiem** - [@jemzir](https://github.com/jemzir) +- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948) - **David Kim** - [@codejunkie7](https://github.com/codejunkie7) - **Robby Tipton** - [@RobbyTipton](https://github.com/RobbyTipton) - **Kevin HoEun Lee** - [@khobread](https://github.com/khobread) diff --git a/README.md b/README.md index 0abea77e8..4451bbbcd 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,10 @@ of the structure and interfaces of the codebase. ## Authors +- **Ben Margolius** - [@benmarg](https://github.com/benmarg) +- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun) +- **James Nghiem** - [@jemzir](https://github.com/jemzir) +- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948) - **Louis Lam** - [@llam722](https://github.com/llam722) - **Samuel Tran** - [@leumastr](https://github.com/leumastr) - **Brian Yang** - [@yangbrian310](https://github.com/yangbrian310) diff --git a/README.rus.md b/README.rus.md index 6d38591f9..2d4303a2d 100644 --- a/README.rus.md +++ b/README.rus.md @@ -106,7 +106,10 @@ Reactime beta поддерживает приложения, написанны - [Deep in Weeds with Reactime, Concurrent React_fiberRoot, and Browser History Caching](https://itnext.io/deep-in-the-weeds-with-reactime-concurrent-react-fiberroot-and-browser-history-caching-7ce9d7300abb) ## Авторы - +- **Ben Margolius** - [@benmarg](https://github.com/benmarg) +- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun) +- **James Nghiem** - [@jemzir](https://github.com/jemzir) +- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948) - **David Kim** - [@codejunkie7](https://github.com/codejunkie7) - **Robby Tipton** - [@RobbyTipton](https://github.com/RobbyTipton) - **Kevin HoEun Lee** - [@khobread](https://github.com/khobread) diff --git a/www/src/pages/components/TeamSection.tsx b/www/src/pages/components/TeamSection.tsx index 78355cbf3..c0cdb9e0d 100644 --- a/www/src/pages/components/TeamSection.tsx +++ b/www/src/pages/components/TeamSection.tsx @@ -8,6 +8,7 @@ const people: string[][] = [ ["Andy Tsou", "andytsou19"], ["Andy Wong", "andywongdev"], ["Becca Viner", "rtviner"], + ["Ben Margolius", "benmarg"], ["Ben Michareune", "bmichare"], ["Brian Yang", "yangbrian310"], ["Bryan Lee", "mylee1995"], @@ -29,6 +30,7 @@ const people: string[][] = [ ["Edwin Menendez", "edwinjmenendez"], ["Emin Tahirov", "eminthrv"], ["Ergi Shehu", "Ergi516"], + ["Eric Yun", "ericsngyun"], ["Feiyi Wu", "FreyaWu"], ["Gabriela Aquino", "aquinojardim"], ["Greg Panciera", "gpanciera"], @@ -36,6 +38,7 @@ const people: string[][] = [ ["Harry Fox", "StackOverFlowWhereArtThou"], ["Hien Nguyen", "hienqn"], ["Jack Crish", "JackC27"], + ["James Nghiem", "jemzir"], ["Jason Victor", "Theqwertypusher"], ["Joshua Howard", "Joshua-Howard"], ["Joseph Park", "joeepark"], @@ -69,6 +72,7 @@ const people: string[][] = [ ["Tania Lind", "lind-tania"], ["Viet Nguyen", "vnguyen95"], ["Vincent Nguyen", "VNguyenCode"], + ["Wilton Lee", "wiltonlee948"], ["Yujin Kang", " yujinkay"], ]