Skip to content

Commit

Permalink
[frontend] feat: Adding hero image (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
helloitsdave authored May 16, 2024
1 parent 02380bb commit 41abdd2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
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

1 comment on commit 41abdd2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

97.91%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   App.tsx87.50%75%96%30–31, 40–41
   NoteApp.tsx94.44%100%96.99%70–74
src/api
   apiService.ts100%85.71%96.67%88–90
src/components
   Header.tsx100%100%100%
   Login.tsx81.82%100%98.59%32, 32–33
   Note.tsx100%100%100%
   NoteForm.tsx100%100%100%
   NoteFormModal.tsx100%100%100%
   NoteGrid.tsx100%100%100%
   RegistrationForm.tsx84.62%100%96.77%51, 51–55
   RegistrationLink.tsx100%100%100%
   Spinner.tsx100%100%100%

Please sign in to comment.