refactors style a bit and updates snaps
All checks were successful
gitea-deepak/gog_frontend/pipeline/head This commit looks good

This commit is contained in:
2021-02-01 14:43:25 -06:00
parent e5e123670c
commit 021cfe24f2
6 changed files with 30 additions and 15 deletions

View File

@@ -13,7 +13,7 @@ export default function Login({ login }) {
return (
<div className="login-wrapper">
<h1>Please Log In</h1>
<h2>Please Log In</h2>
<form onSubmit={handleSubmit}>
<label>
<p>Username</p>

View File

@@ -14,7 +14,7 @@ export default function Register({ register }) {
return (
<div className="register-wrapper">
<h1>Enter your data to register.</h1>
<h2>Enter your data to register.</h2>
<form onSubmit={handleSubmit}>
<label>
<p>Username</p>

View File

@@ -1,13 +1,28 @@
@use '../common_styles/colours';
@use '../common_styles/typography';
.unauthenticated-app button {
.unauthenticated-app {
button {
background-color: colours.$accent-color;
border: 0;
color: colours.$inverted-text-color;
font: typography.$stack;
margin: 10px;
padding: 10px 15px;
}
.register-wrapper,
.login-wrapper {
padding: 1em;
margin: 1em;
label {
display: block;
margin: 1em auto;
}
input {
margin-top: 0;
margin-bottom: 1rem;
}
}
}
.unauthenticated-app .choose-register {

View File

@@ -4,9 +4,9 @@ exports[`Login Snapshot 1`] = `
<div
className="login-wrapper"
>
<h1>
<h2>
Please Log In
</h1>
</h2>
<form
onSubmit={[Function]}
>

View File

@@ -4,9 +4,9 @@ exports[`Register Snapshot 1`] = `
<div
className="register-wrapper"
>
<h1>
<h2>
Enter your data to register.
</h1>
</h2>
<form
onSubmit={[Function]}
>

View File

@@ -25,9 +25,9 @@ exports[`UnauthenticatedApp Snapshot 1`] = `
<div
className="login-wrapper"
>
<h1>
<h2>
Please Log In
</h1>
</h2>
<form
onSubmit={[Function]}
>