Skip to content

Commit

Permalink
Merge pull request #21 from oslabs-beta/emailAlerts
Browse files Browse the repository at this point in the history
Added new email component
  • Loading branch information
wiltonlee948 authored Jan 4, 2023
2 parents 562ae9f + caac295 commit 2eaedfc
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ Après avoir cloné ce référentiel, les développeurs peuvent simplement exéc

## <b>Auteurs</b>

- **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)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ of the structure and interfaces of the codebase.

## <b>Authors</b>

- **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)
Expand Down
5 changes: 4 additions & 1 deletion README.rus.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

## <b>Авторы</b>

- **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)
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"Andy Tsou",
"Andy Wong",
"Becca Viner",
"Ben Margolius",
"Bryan Lee",
"Caitlin Chan",
"Caner Demir",
Expand All @@ -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",
Expand All @@ -83,6 +86,7 @@
"Sierra Swaby",
"Tania Lind",
"Viet Nguyen",
"Wilton Lee",
"Yujin Kang"
],
"license": "ISC",
Expand Down
4 changes: 4 additions & 0 deletions www/src/pages/components/TeamSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -29,13 +30,15 @@ const people: string[][] = [
["Edwin Menendez", "edwinjmenendez"],
["Emin Tahirov", "eminthrv"],
["Ergi Shehu", "Ergi516"],
["Eric Yun", "ericsngyun"],
["Feiyi Wu", "FreyaWu"],
["Gabriela Aquino", "aquinojardim"],
["Greg Panciera", "gpanciera"],
["Haejin Jo", "haejinjo"],
["Harry Fox", "StackOverFlowWhereArtThou"],
["Hien Nguyen", "hienqn"],
["Jack Crish", "JackC27"],
["James Nghiem", "jemzir"],
["Jason Victor", "Theqwertypusher"],
["Joshua Howard", "Joshua-Howard"],
["Joseph Park", "joeepark"],
Expand Down Expand Up @@ -69,6 +72,7 @@ const people: string[][] = [
["Tania Lind", "lind-tania"],
["Viet Nguyen", "vnguyen95"],
["Vincent Nguyen", "VNguyenCode"],
["Wilton Lee", "wiltonlee948"],
["Yujin Kang", " yujinkay"],
]

Expand Down
45 changes: 45 additions & 0 deletions www/src/pages/secret.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* create an input box
* create a password andusername checker --
* if correct send them the shit
*/

import { type NextPage } from "next";
import { useState } from "react";
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 = () => {
const [isAdmin, setIsAdmin] = useState<boolean>(false);
const [password, setPassword] = useState<string>("");

const clickHandler = () => {
if (process.env.NEXT_PUBLIC_ADMIN_PASSWORD === password) {
setIsAdmin(true);
}
};

return (
<>
{!isAdmin && <div className = 'flex h-screen items-center justify-center'>
<input
type="password"
value={password}
onChange={(e)=>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">
</input>
<button onClick={clickHandler} className="blockrounded-md border rounded border-transparent bg-rose-500 px-5 py-3 text-base font-medium text-white shadow hover:bg-rose-600 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:px-10">Submit</button>
</div>}
{isAdmin && <div>You logged in!</div>}

</>
);
};

export default secret;

0 comments on commit 2eaedfc

Please sign in to comment.