Skip to content

Commit

Permalink
💅 fix: login and signup styling
Browse files Browse the repository at this point in the history
  • Loading branch information
amir-kedis committed Dec 23, 2023
1 parent 281c9f1 commit 75456df
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 34 deletions.
11 changes: 11 additions & 0 deletions client/src/assets/styles/components/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,16 @@
color: var(--grey-50);
}

&--medium {
a {
font-size: 1rem;
}
}

&--success {
background-color: var(--green-400);
color: var(--grey-900);
}

// TODO: Add more button styles and maybe sizes
}
2 changes: 0 additions & 2 deletions client/src/components/landingpage/LandingPage.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Nav from "../common/nav";
import Button from "../common/Button";
import Footer from "../common/Footer";

import FancyBlobs from "./FancyBlobs";

Expand Down
5 changes: 4 additions & 1 deletion client/src/components/login/logIn.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Button from "../common/Button";
import "./logIn.scss";

export default function LogIn() {
Expand All @@ -14,7 +15,9 @@ export default function LogIn() {
الرمز السري
<input type="password" />
</label>
<button>تسجيل الدخول</button>
<Button className="Button--medium Button--success" linkTo="/signUp">
تسجيل الدخول
</Button>
</div>
<div className="small no-account">ليس لديك حساب؟</div>
</div>
Expand Down
14 changes: 0 additions & 14 deletions client/src/components/login/logIn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,4 @@
color: var(--Teal-500);
margin-bottom: 1rem;
}

button {
//color: var(--text-color);
background: var(--green-700);
border: 0px solid;
border-radius: 0.3125rem;
display: flex;
width: 7.25rem;
height: 1.875rem;
padding: 0.8125rem 0.625rem;
justify-content: center;
align-items: center;
gap: 1.25rem;
}
}
3 changes: 2 additions & 1 deletion client/src/components/signup/signUp.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Button from "../common/Button";
import "./signUp.scss";

export default function SignUp() {
Expand Down Expand Up @@ -56,7 +57,7 @@ export default function SignUp() {
</div>
</label>
</div>
<button>تسجيل</button>
<Button className="Button--success Button-medium">تسجيل</Button>
</div>
</div>
</div>
Expand Down
16 changes: 0 additions & 16 deletions client/src/components/signup/signUp.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.signUp {
.hero {
display: flex;
width: 22.5rem;
height: 93.375rem;
flex-direction: column;
align-items: center;
margin: auto;
Expand Down Expand Up @@ -72,18 +70,4 @@
}
}
}

button {
//color: $text-color;
background: var(--Primary-900);
border: 0px solid;
border-radius: 0.3125rem;
display: flex;
width: 12.5rem;
height: 3.125rem;
padding: 0.8125rem 0.6875rem 0.8125rem 0.625rem;
justify-content: center;
align-items: center;
gap: 2.5rem;
}
}

0 comments on commit 75456df

Please sign in to comment.