Skip to content

Commit 9023eb5

Browse files
committed
Create UnregisteredUserPage to take in user and resemble login page
1 parent 63b072b commit 9023eb5

2 files changed

Lines changed: 177 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import React from 'react';
2+
import styles from './unregistereduserpage.module.css';
3+
import { logo } from '../../icons/other';
4+
import { WAVE_PATH } from '../../util/constants';
5+
import { UnregisteredUser } from '../../types/index';
6+
7+
interface UnregisteredUserProps {
8+
user: UnregisteredUser;
9+
onBack: () => void;
10+
}
11+
12+
const UnregisteredUserPage: React.FC<UnregisteredUserProps> = ({
13+
user,
14+
onBack,
15+
}) => {
16+
return (
17+
<div className={styles.container}>
18+
<div className={styles.card}>
19+
<img src={logo} className={styles.logo} alt="Carriage logo" />
20+
21+
<h1 className={styles.greeting}>
22+
Hello {user.name}, you are not registered for Carriage
23+
</h1>
24+
25+
<div className={styles.message}>
26+
<p>
27+
Sorry, you are not a registered Carriage user. To sign up, please
28+
come to Student Disability Services office in Level 5 of the Cornell
29+
Health Building.
30+
</p>
31+
<p className={styles.contact}>
32+
Call <a href="tel:607-254-4545">607-254-4545</a> or email{' '}
33+
<a href="mailto:carriage@cornell.edu">carriage@cornell.edu</a> if
34+
you have any questions.
35+
</p>
36+
</div>
37+
38+
<button onClick={onBack} className={styles.backButton}>
39+
Back to Login
40+
</button>
41+
</div>
42+
43+
<div className={styles.customShape}>
44+
<svg
45+
data-name="Layer 1"
46+
xmlns="http://www.w3.org/2000/svg"
47+
viewBox="0 0 1200 120"
48+
preserveAspectRatio="none"
49+
>
50+
<path d={WAVE_PATH.trim()} className={styles.shapeFill}></path>
51+
</svg>
52+
</div>
53+
</div>
54+
);
55+
};
56+
57+
export default UnregisteredUserPage;
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
.container {
2+
position: relative;
3+
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
4+
url(../../pages/Landing/campus.jpg) no-repeat center center fixed;
5+
-webkit-background-size: cover;
6+
-moz-background-size: cover;
7+
-o-background-size: cover;
8+
background-size: cover;
9+
height: 100vh;
10+
display: flex;
11+
flex-direction: row;
12+
justify-content: center;
13+
align-items: flex-start;
14+
padding: 0 1.25rem;
15+
}
16+
17+
.card {
18+
border: 1px solid black;
19+
border-radius: 16px;
20+
background: white;
21+
max-width: 700px;
22+
width: 100%;
23+
margin-top: 7.5rem;
24+
padding: 48px;
25+
text-align: center;
26+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.16);
27+
}
28+
29+
.logo {
30+
width: 80px;
31+
height: 80px;
32+
margin-bottom: 24px;
33+
}
34+
35+
.greeting {
36+
font-size: 28px;
37+
font-weight: 600;
38+
color: #333;
39+
margin-bottom: 32px;
40+
line-height: 1.4;
41+
}
42+
43+
.message {
44+
font-size: 16px;
45+
line-height: 1.6;
46+
color: #666;
47+
margin-bottom: 32px;
48+
}
49+
50+
.message p {
51+
margin-bottom: 16px;
52+
}
53+
54+
.contact {
55+
margin-top: 24px;
56+
}
57+
58+
.contact a {
59+
color: #0075db;
60+
text-decoration: none;
61+
font-weight: 500;
62+
}
63+
64+
.contact a:hover {
65+
text-decoration: underline;
66+
}
67+
68+
.backButton {
69+
color: white;
70+
background-color: black;
71+
border: 0.063rem solid #000000;
72+
box-sizing: border-box;
73+
border-radius: 0.5rem;
74+
min-width: 6.563rem;
75+
padding: 0.5rem 1rem;
76+
text-align: center;
77+
font-size: 0.9375rem;
78+
cursor: pointer;
79+
}
80+
81+
.backButton:focus {
82+
box-shadow: 0 0 0 3px #0075db;
83+
}
84+
85+
.backButton:hover {
86+
background-color: #333;
87+
}
88+
89+
.customShape {
90+
position: absolute;
91+
bottom: 0;
92+
left: 0;
93+
width: 100%;
94+
overflow: hidden;
95+
line-height: 0;
96+
transform: rotate(180deg);
97+
height: 15%;
98+
z-index: 10;
99+
}
100+
101+
.customShape svg {
102+
position: absolute;
103+
display: block;
104+
width: calc(142% + 1.3px);
105+
}
106+
107+
.shapeFill {
108+
fill: white;
109+
}
110+
111+
@media (max-width: 600px) {
112+
.card {
113+
margin-top: 2rem;
114+
padding: 32px 24px;
115+
}
116+
117+
.greeting {
118+
font-size: 24px;
119+
}
120+
}

0 commit comments

Comments
 (0)