File tree Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Expand file tree Collapse file tree 2 files changed +70
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import Login from "./pages/login";
7
7
import SignUp from "./pages/signup" ;
8
8
import AuthGuard from "./auth/AuthGuard" ;
9
9
import { DataContextProvider } from "./data/data.context" ;
10
+ import Landing from "./pages/landing" ;
10
11
11
12
const root = ReactDOM . createRoot (
12
13
document . getElementById ( "root" ) as HTMLElement
@@ -17,9 +18,10 @@ root.render(
17
18
< AuthContextProvider >
18
19
< DataContextProvider >
19
20
< Routes >
20
- < Route path = "/" element = { < App /> } />
21
+ < Route path = "/" element = { < Landing /> } />
21
22
< Route path = "/login" element = { < Login /> } />
22
23
< Route path = "/signup" element = { < SignUp /> } />
24
+ { /* <Route path="/landing" element={<Landing />} /> */ }
23
25
< Route
24
26
path = "/home"
25
27
element = {
Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { Link as RouterLink } from "react-router-dom" ;
3
+ import {
4
+ Typography ,
5
+ Button ,
6
+ Container ,
7
+ Paper ,
8
+ Grid ,
9
+ } from "@mui/material" ;
10
+
11
+ function Landing ( ) {
12
+ return (
13
+ < Container maxWidth = "md" >
14
+ < Paper elevation = { 3 } sx = { { padding : 4 , marginTop : 4 } } >
15
+ < Typography variant = "h4" align = "center" gutterBottom >
16
+ Welcome to PeerPrep!
17
+ </ Typography >
18
+ < Typography variant = "body1" align = "center" paragraph >
19
+ Prepare for technical interviews with PeerPrep
20
+ </ Typography >
21
+ < Grid container spacing = { 3 } >
22
+ < Grid item xs = { 12 } sm = { 6 } >
23
+ < Typography variant = "h5" gutterBottom >
24
+ Why Choose Us?
25
+ </ Typography >
26
+ < Typography variant = "body1" >
27
+ PeerPrep is your go-to platform for technical interview
28
+ preparation. Practice whiteboard-style interview questions with
29
+ peers and improve your skills.
30
+ </ Typography >
31
+ </ Grid >
32
+ < Grid item xs = { 12 } sm = { 6 } >
33
+ < Typography variant = "h5" gutterBottom >
34
+ Get Started
35
+ </ Typography >
36
+ < Typography variant = "body1" >
37
+ Join our community of students and professionals to enhance your
38
+ technical interview skills.
39
+ </ Typography >
40
+ < Button
41
+ variant = "contained"
42
+ color = "primary"
43
+ component = { RouterLink }
44
+ to = "/signup"
45
+ sx = { { marginRight : 2 } }
46
+ >
47
+ Sign Up
48
+ </ Button >
49
+ < Button
50
+ variant = "outlined"
51
+ color = "primary"
52
+ component = { RouterLink }
53
+ to = "/login"
54
+ >
55
+ Log In
56
+ </ Button >
57
+ </ Grid >
58
+ </ Grid >
59
+ </ Paper >
60
+ < Typography variant = "body2" align = "center" sx = { { marginTop : 2 } } >
61
+ © 2023 PeerPrep
62
+ </ Typography >
63
+ </ Container >
64
+ ) ;
65
+ }
66
+
67
+ export default Landing ;
You can’t perform that action at this time.
0 commit comments