Skip to content

Commit e17dd20

Browse files
committed
Remove unused styling in login page and update noauth header styling
1 parent f7fb39c commit e17dd20

File tree

4 files changed

+81
-52
lines changed

4 files changed

+81
-52
lines changed

apps/frontend/src/app/login/page.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export default function Home() {
4343
return (
4444
<>
4545
{contextHolder}
46-
<Layout>
46+
<Layout className="layout">
4747
<NoAuthHeader />
48-
<Content>
48+
<Content className="content">
4949
<div className="login-card">
5050
<h1>Login</h1>
5151
<Form name="basic" onFinish={submitDetails}>
@@ -81,14 +81,23 @@ export default function Home() {
8181
</div>
8282

8383
<Form.Item>
84-
<Button type="primary" htmlType="submit">
84+
<Button
85+
type="primary"
86+
htmlType="submit"
87+
className="login-button"
88+
>
8589
Login
8690
</Button>
8791
</Form.Item>
8892
</Form>
89-
<p>
90-
Let me <Link href="/register">register</Link>
91-
</p>
93+
<div>
94+
<p className="registration-text">
95+
Not registered yet?{" "}
96+
<Link href="/register" className="create-account-link">
97+
Create an account
98+
</Link>
99+
</p>
100+
</div>
92101
</div>
93102
</Content>
94103
</Layout>

apps/frontend/src/app/login/styles.scss

Lines changed: 15 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
.login-card {
1919
/* Rectangle 6698 */
20-
margin: 4rem auto;
21-
padding: 2rem 4rem;
20+
margin: 8rem auto;
21+
padding: 2rem 3rem;
2222
box-sizing: border-box;
23-
max-width: 30rem;
24-
background: #FFFFFF;
25-
border: 2px solid #8A817C;
23+
max-width: 26rem;
24+
background: #ffffff;
25+
border: 2px solid #8a817c;
2626
box-shadow: 3px 4px 4px rgba(0, 0, 0, 0.25);
2727
border-radius: 15px;
2828
}
@@ -32,50 +32,20 @@
3232
font-size: 13px;
3333
}
3434

35-
.content-row-1 {
36-
display: flex;
37-
flex-direction: row;
38-
justify-content: space-between;
39-
}
40-
41-
.content-title {
42-
// font-family: "Poppins";
43-
// font-style: normal;
44-
font-weight: 600;
45-
font-size: 22px;
46-
line-height: 33px;
47-
letter-spacing: -0.01em;
48-
color: #000000;
49-
}
50-
51-
.content-filter {
52-
margin: 1.5rem 0;
53-
}
54-
55-
.edit-button {
56-
margin-right: 0.5rem;
57-
}
58-
59-
.filter-button {
60-
margin-left: 8px;
61-
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02) !important;
35+
.login-button {
36+
width: 100%;
6237
}
6338

64-
.clear-button {
65-
width: 100%;
39+
.registration-text {
40+
color: #bcb8b1;
41+
margin: auto;
42+
text-align: center;
6643
}
6744

68-
.categories-multi-select,
69-
.difficulty-select,
70-
.order-select {
71-
width: 100%;
45+
.create-account-link {
46+
color: #8a817c;
7247
}
7348

74-
.create-title,
75-
.new-problem-categories-multi-select,
76-
.new-problem-difficulty-select,
77-
.create-description,
78-
.create-problem-id {
79-
width: 100%;
80-
margin: 5px;
49+
.create-account-link:hover {
50+
color: #463f3a;
8151
}

apps/frontend/src/components/NoAuthHeader/NoAuthHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const NoAuthHeader = (): JSX.Element => {
2121

2222
return (
2323
// Header Component
24-
<AntdHeader className="header">
24+
<AntdHeader className="noauth-header">
2525
<div className="logo-container">
2626
<div className="logo1">Peer</div>
2727
<div className="logo2">Prep</div>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
$primary-color: #e0afa0;
2+
$secondary-color: #463f3a;
3+
4+
.noauth-header {
5+
display: flex;
6+
align-items: center;
7+
background: white !important;
8+
border-bottom: 1px solid #f3f3f3;
9+
padding-right: 20px !important;
10+
}
11+
12+
.logo {
13+
font-family: "Inter";
14+
font-style: normal;
15+
font-weight: 700;
16+
font-size: 20px;
17+
display: flex;
18+
align-items: center;
19+
text-align: center;
20+
text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
21+
}
22+
23+
.logo1 {
24+
@extend .logo;
25+
color: $primary-color;
26+
}
27+
28+
.logo2 {
29+
@extend .logo;
30+
color: $secondary-color;
31+
}
32+
33+
.logo-container {
34+
display: flex;
35+
flex-direction: row;
36+
padding: 0 16px 0 0;
37+
}
38+
39+
.profile-menu-items {
40+
width: 6rem;
41+
padding: 2px 8px;
42+
}
43+
44+
.profile-menu-icon {
45+
margin-right: 8px;
46+
}
47+
48+
.dropdown {
49+
padding-right: 10px !important;
50+
}

0 commit comments

Comments
 (0)