Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frontend] feat: Adding hero image #43

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added frontend/public/hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 20 additions & 8 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
}

body {
display: grid;
place-items: center;
height: 100vh;
margin: 0px;
background: linear-gradient(100deg, #83a4d4, #b6fbff);
background-attachment: fixed;

min-height: 100vh;
width: 100vw;
background-image: url('../public/hero.jpg');
background-size: cover;
background-position: center;
}

@media (min-width: 600px) {
Expand Down Expand Up @@ -62,6 +63,8 @@ body {
width: 260px;
height: 350px;
padding: 10px;
backdrop-filter: blur(5px);

}

.login-page button{
Expand Down Expand Up @@ -192,10 +195,11 @@ textarea {
margin: 0px 20px 20px 20px;
padding: 10px;
width: 300px;
border-radius: 10px;
height: 200px;
background-color: azure;
border-radius: 20px;
border: 2px solid white;
margin: 10px;
backdrop-filter: blur(10px);
}

.registration-link {
Expand All @@ -204,6 +208,7 @@ textarea {
align-items: center;
justify-content: center;
margin: auto;

}

.nav-link {
Expand Down Expand Up @@ -295,12 +300,19 @@ textarea {

.registration-page-header {
text-align: center;
backdrop-filter: blur(100px);
border: 2px solid white;
border-radius: 20px;
padding: 20px;
margin: 10px;

}

.registration-form {
display: flex;
flex-direction: column;
gap: 20px;
gap: 20px;
margin: 20px;
}

.registration-form button {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function App() {

const handleLogin = () => {
setLoggedIn(true);
setRegistered(false);
};

const handleLogout = () => {
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/RegistrationLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const RegistrationLink = (props: { onRegister: boolean }) => {
<div className="registration-link">
<h1>e-notes</h1>
</div>
<div className="registration-link-container">
{!props.onRegister ? (
<div className="registration-link-container">
<p>Welcome to the e-notes app</p>
Expand All @@ -20,7 +19,6 @@ const RegistrationLink = (props: { onRegister: boolean }) => {
</div>

)}
</div>
</div>
);
};
Expand Down
Loading