Skip to content

Commit

Permalink
Added more styling to the page
Browse files Browse the repository at this point in the history
  • Loading branch information
izicodes committed Aug 29, 2023
1 parent 022e875 commit 9736cac
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Navbar() {
return (
<>
<nav>
<img src="https://em-content.zobj.net/source/softbank/145/frog-face_1f438.png" alt="frog emoji" />
<img src="https://em-content.zobj.net/source/softbank/145/frog-face_1f438.png" width={100} alt="frog emoji" />
<h1>Froggie To-Do</h1>
<small>A user-friendly to-do web app, built with React!</small>
</nav>
Expand Down
43 changes: 32 additions & 11 deletions src/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url("https://fonts.googleapis.com/css2?family=Rowdies&display=swap");

* {
font-family: Arial, Helvetica, sans-serif;
box-sizing: border-box;
Expand All @@ -11,6 +13,17 @@ body {
margin: 0 auto;
}

#root {
background-color: white;
border: 1px solid #6d8e12;
border-radius: 1em;
padding: 1em;
margin-top: 20px;
padding-bottom: 1.5em;
box-shadow: 0 0 5px #8eb32888;
}


.new-item-form {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -67,24 +80,31 @@ body {
font-size: 1.5rem;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
padding: 0 20px;

}

form {
border-top: 1px solid #4d640d;
padding: 20px;
}

.list {
margin: 0;
padding: 0;
list-style: none;
display: flex;
flex-direction: column;
gap: 0.7rem;
padding: 0 20px;
}



.list li:has(input:checked) label {
color: #767778b4;
}

.list {
display: flex;
flex-direction: column;
gap: 0.3rem;
}

.list li {
display: flex;
gap: 0.5rem;
Expand Down Expand Up @@ -144,12 +164,13 @@ body {
}

nav {
text-align: center;
margin-bottom: 40px;
text-align: center;
margin-bottom: 40px;
}

nav h1 {
margin: 5px 0;
font-size: 3rem;
color: #8eb328;
margin: 10px 0;
font-size: 3rem;
color: #8eb328;
font-family: "Rowdies", cursive;
}

0 comments on commit 9736cac

Please sign in to comment.