Skip to content

Commit d1ea0cc

Browse files
authored
Merge pull request #22 from Capstone-Projects-2022-Spring/BAZ-116-consistent-theming-for-login-register-page
Baz 116 consistent theming for login register page
2 parents 9a50628 + b1acefd commit d1ea0cc

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/Components/Pages/LoginPage/LoginForm.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function LoginForm() {
126126
// );
127127

128128
const RegisterText = props => (
129-
<div className="switchText">
129+
<div className="switchText text-center text-gray-500">
130130
Are you new here?
131131
<Link to="/register">
132132
Click here to register.
@@ -164,7 +164,7 @@ export function LoginForm() {
164164
)
165165

166166
return (
167-
<section className='login_form'>
167+
<section className='bg-purple-400 p-6 '>
168168
<div id="loginform">
169169
{renderLoggedInMessage()}
170170
<FormHeader title="Login" />
@@ -190,8 +190,8 @@ export function LoginForm() {
190190
value={password}
191191
onChange={handlePasswordChange}
192192
/> */}
193-
<div id="button" className="row">
194-
<button onClick={(username, password) => handleFormSubmit(username, password)}>
193+
<div id="button" className=" flex justify-center items-center my-4 ">
194+
<button className="bg-purple-500 px-2 py-1 text-white rounded-full w-48 text-white" onClick={(username, password) => handleFormSubmit(username, password)}>
195195
Log in
196196
</button>
197197
</div>
@@ -201,4 +201,4 @@ export function LoginForm() {
201201
</div>
202202
</section>
203203
)
204-
}
204+
}

src/Components/Pages/LoginPage/styles.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ html{
88
font-size: 100%;
99
}
1010
.login_form{
11-
background: rgb(34,193,195);
12-
background: linear-gradient(135deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%);
11+
/* background: rgb(34,193,195);
12+
background: linear-gradient(135deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%); */
1313
font-family: "work sans";
1414
width: 100%;
1515
height: 100%;
@@ -85,8 +85,8 @@ html{
8585
font-size: 1.3rem;
8686
color: white;
8787
font-weight: 700;
88-
background: rgb(34,193,195);
89-
background: linear-gradient(90deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%);
88+
/* background: rgb(34,193,195);
89+
background: linear-gradient(90deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%); */
9090
border: 0px;
9191
cursor: pointer;
9292
transition: opacity 0.25s ease-out;

src/Components/Pages/RegisterPage/RegisterForm.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class RegisterForm extends React.Component {
77
render(){
88
return(
99
<>
10-
<section className='regiser'>
10+
<section className='bg-purple-400 p-6'>
1111
<div id="registerform">
1212
<FormHeader title="Register" />
1313
<Form />
@@ -36,8 +36,8 @@ const Form = props => (
3636
);
3737

3838
const FormButton = props => (
39-
<div id="button" class="row">
40-
<button>{props.title}</button>
39+
<div id="button" className="flex justify-center items-center my-4">
40+
<button className="bg-purple-500 px-2 py-1 text-white rounded-full w-48 text-white">{props.title}</button>
4141
</div>
4242
);
4343

@@ -49,7 +49,7 @@ const FormInput = props => (
4949
);
5050

5151
const LoginButton = props => (
52-
<div class="switchText">
52+
<div className="switchText text-center text-gray-500">
5353
Already have an account?
5454
<Link to="/">
5555
Click here to log in.

0 commit comments

Comments
 (0)