-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Tadesse-Alemayehu/style
Bookstore: styling
- Loading branch information
Showing
12 changed files
with
248 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
import React from 'react'; | ||
import { NavLink } from 'react-router-dom'; | ||
import { FaUserAlt } from 'react-icons/fa'; | ||
import './navbar.css'; | ||
|
||
export default function Navbar() { | ||
const navStyle = { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
}; | ||
const ulStyle = { | ||
display: 'flex', | ||
gap: '10px', | ||
listStyle: 'none', | ||
}; | ||
return ( | ||
<nav style={navStyle}> | ||
<ul style={ulStyle}> | ||
<nav id="navbar"> | ||
<ul className="menuContainer"> | ||
<h1 className="logo">Bookstore CMS</h1> | ||
<li><NavLink to="/">Book</NavLink></li> | ||
<li><NavLink to="/categories">Category</NavLink></li> | ||
</ul> | ||
<span id="profile-pic"><FaUserAlt className="icon" /></span> | ||
</nav> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#navbar { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 5vw; | ||
background-color: white; | ||
} | ||
|
||
.menuContainer { | ||
display: flex; | ||
list-style: none; | ||
align-items: center; | ||
padding: 0; | ||
} | ||
|
||
.menuContainer li { | ||
margin-left: 2vw; | ||
} | ||
|
||
.logo { | ||
color: var(--blue); | ||
font-size: 1.5rem; | ||
font-weight: bold; | ||
} | ||
|
||
#profile-pic { | ||
padding: 5px; | ||
border: 1px silver solid; | ||
border-radius: 50%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.icon { | ||
margin: auto; | ||
} | ||
|
||
ul { | ||
list-style: none; | ||
padding: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#add-new-book fieldset { | ||
border: none; | ||
display: flex; | ||
min-height: 100%; | ||
gap: 2vw; | ||
margin: 2vw 5vw; | ||
color: var(--blur-silver); | ||
} | ||
|
||
legend { | ||
font-weight: bolder; | ||
margin: 1vw 0; | ||
} | ||
|
||
input { | ||
min-width: 25%; | ||
min-width: 100px; | ||
} | ||
|
||
#add-new-book input { | ||
border: none; | ||
outline: none; | ||
padding: 0.5vw; | ||
} | ||
|
||
.book-title { | ||
min-width: 45%; | ||
flex-grow: 1; | ||
} | ||
|
||
#add-book-button { | ||
padding: 0.5vw 3vw; | ||
max-width: 200px; | ||
} | ||
|
||
hr { | ||
margin: 5vw; | ||
color: var(--blur-silver); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#book { | ||
display: flex; | ||
margin: 2vw 5vw; | ||
padding: 2vw 3vw; | ||
background-color: white; | ||
justify-content: space-between; | ||
} | ||
|
||
#book ul { | ||
display: flex; | ||
gap: 2vw; | ||
font-size: small; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
p { | ||
margin: 0; | ||
} | ||
|
||
.category { | ||
font-size: small; | ||
} | ||
|
||
.content { | ||
width: 45%; | ||
max-width: 45%; | ||
} | ||
|
||
#book a, | ||
.author { | ||
color: var(--blue-blur); | ||
} | ||
|
||
#book a:hover { | ||
font-weight: bolder; | ||
} | ||
|
||
.remove-book { | ||
padding: 1vw 2vw; | ||
box-shadow: 0 0 5px #0000007a; | ||
border-radius: 3px; | ||
} | ||
|
||
.curent-chapter { | ||
color: silver; | ||
margin-bottom: 5px; | ||
} | ||
|
||
.chapter { | ||
margin-bottom: 10px; | ||
} | ||
|
||
#completed { | ||
align-self: center; | ||
display: flex; | ||
align-items: center; | ||
gap: 1vw; | ||
} | ||
|
||
.percent-circle { | ||
width: 4vw; | ||
height: 4vw; | ||
border-left: 3px solid silver; | ||
border-top: 3px solid var(--blue); | ||
border-right: 3px solid var(--blue); | ||
border-bottom: 3px solid var(--blue); | ||
border-radius: 50%; | ||
transform: rotate(45deg); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,37 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100;200;400&display=swap'); | ||
|
||
:root { | ||
--blue: #0290ff; | ||
--blue-blur: #4386bf; | ||
--blur-silver: #888; | ||
} | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
background-color: #fafafa; | ||
font-family: 'Lexend Deca', sans-serif; | ||
font-weight: 300; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: rgb(120, 117, 117); | ||
} | ||
|
||
a.active { | ||
color: black; | ||
font-weight: bold; | ||
} | ||
|
||
.icon { | ||
color: var(--blue); | ||
} | ||
|
||
button { | ||
background-color: var(--blue); | ||
border: none; | ||
outline: none; | ||
color: white; | ||
} |
Oops, something went wrong.