Skip to content

Commit 2eaedfc

Browse files
authored
Merge pull request #21 from oslabs-beta/emailAlerts
Added new email component
2 parents 562ae9f + caac295 commit 2eaedfc

File tree

6 files changed

+65
-1
lines changed

6 files changed

+65
-1
lines changed

README.fr.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ Après avoir cloné ce référentiel, les développeurs peuvent simplement exéc
131131

132132
## <b>Auteurs</b>
133133

134+
- **Ben Margolius** - [@benmarg](https://github.com/benmarg)
135+
- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun)
136+
- **James Nghiem** - [@jemzir](https://github.com/jemzir)
137+
- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948)
134138
- **David Kim** - [@codejunkie7](https://github.com/codejunkie7)
135139
- **Robby Tipton** - [@RobbyTipton](https://github.com/RobbyTipton)
136140
- **Kevin HoEun Lee** - [@khobread](https://github.com/khobread)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,10 @@ of the structure and interfaces of the codebase.
296296

297297
## <b>Authors</b>
298298

299+
- **Ben Margolius** - [@benmarg](https://github.com/benmarg)
300+
- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun)
301+
- **James Nghiem** - [@jemzir](https://github.com/jemzir)
302+
- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948)
299303
- **Louis Lam** - [@llam722](https://github.com/llam722)
300304
- **Samuel Tran** - [@leumastr](https://github.com/leumastr)
301305
- **Brian Yang** - [@yangbrian310](https://github.com/yangbrian310)

README.rus.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ Reactime beta поддерживает приложения, написанны
106106
- [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)
107107

108108
## <b>Авторы</b>
109-
109+
- **Ben Margolius** - [@benmarg](https://github.com/benmarg)
110+
- **Eric Yun** - [@ericsngyun](https://github.com/ericsngyun)
111+
- **James Nghiem** - [@jemzir](https://github.com/jemzir)
112+
- **Wilton Lee** - [@wiltonlee948](https://github.com/wiltonlee948)
110113
- **David Kim** - [@codejunkie7](https://github.com/codejunkie7)
111114
- **Robby Tipton** - [@RobbyTipton](https://github.com/RobbyTipton)
112115
- **Kevin HoEun Lee** - [@khobread](https://github.com/khobread)

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"Andy Tsou",
4747
"Andy Wong",
4848
"Becca Viner",
49+
"Ben Margolius",
4950
"Bryan Lee",
5051
"Caitlin Chan",
5152
"Caner Demir",
@@ -58,12 +59,14 @@
5859
"Dennis Lopez",
5960
"Edwin Menendez",
6061
"Ergi Shehu",
62+
"Eric Yun",
6163
"Freya Wu",
6264
"Gabriela Jardim Aquino",
6365
"Gregory Panciera",
6466
"Haejin Jo",
6567
"Hien Nguyen",
6668
"Jack Crish",
69+
"James Nghiem",
6770
"Joseph Park",
6871
"Josh Kim",
6972
"Joshua Howard",
@@ -83,6 +86,7 @@
8386
"Sierra Swaby",
8487
"Tania Lind",
8588
"Viet Nguyen",
89+
"Wilton Lee",
8690
"Yujin Kang"
8791
],
8892
"license": "ISC",

www/src/pages/components/TeamSection.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const people: string[][] = [
88
["Andy Tsou", "andytsou19"],
99
["Andy Wong", "andywongdev"],
1010
["Becca Viner", "rtviner"],
11+
["Ben Margolius", "benmarg"],
1112
["Ben Michareune", "bmichare"],
1213
["Brian Yang", "yangbrian310"],
1314
["Bryan Lee", "mylee1995"],
@@ -29,13 +30,15 @@ const people: string[][] = [
2930
["Edwin Menendez", "edwinjmenendez"],
3031
["Emin Tahirov", "eminthrv"],
3132
["Ergi Shehu", "Ergi516"],
33+
["Eric Yun", "ericsngyun"],
3234
["Feiyi Wu", "FreyaWu"],
3335
["Gabriela Aquino", "aquinojardim"],
3436
["Greg Panciera", "gpanciera"],
3537
["Haejin Jo", "haejinjo"],
3638
["Harry Fox", "StackOverFlowWhereArtThou"],
3739
["Hien Nguyen", "hienqn"],
3840
["Jack Crish", "JackC27"],
41+
["James Nghiem", "jemzir"],
3942
["Jason Victor", "Theqwertypusher"],
4043
["Joshua Howard", "Joshua-Howard"],
4144
["Joseph Park", "joeepark"],
@@ -69,6 +72,7 @@ const people: string[][] = [
6972
["Tania Lind", "lind-tania"],
7073
["Viet Nguyen", "vnguyen95"],
7174
["Vincent Nguyen", "VNguyenCode"],
75+
["Wilton Lee", "wiltonlee948"],
7276
["Yujin Kang", " yujinkay"],
7377
]
7478

www/src/pages/secret.tsx

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/**
2+
* create an input box
3+
* create a password andusername checker --
4+
* if correct send them the shit
5+
*/
6+
7+
import { type NextPage } from "next";
8+
import { useState } from "react";
9+
import Head from "next/head";
10+
import Link from "next/link";
11+
import LandingPage from "./components/LandingPage";
12+
import NavBar from "./components/NavBar";
13+
import Blogs from "./components/Blogs";
14+
import { trpc } from "../utils/trpc";
15+
16+
const secret: NextPage = () => {
17+
const [isAdmin, setIsAdmin] = useState<boolean>(false);
18+
const [password, setPassword] = useState<string>("");
19+
20+
const clickHandler = () => {
21+
if (process.env.NEXT_PUBLIC_ADMIN_PASSWORD === password) {
22+
setIsAdmin(true);
23+
}
24+
};
25+
26+
return (
27+
<>
28+
{!isAdmin && <div className = 'flex h-screen items-center justify-center'>
29+
<input
30+
type="password"
31+
value={password}
32+
onChange={(e)=>setPassword(e.target.value)}
33+
required
34+
placeholder="password"
35+
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">
36+
</input>
37+
<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>
38+
</div>}
39+
{isAdmin && <div>You logged in!</div>}
40+
41+
</>
42+
);
43+
};
44+
45+
export default secret;

0 commit comments

Comments
 (0)