Skip to content

Commit

Permalink
feat: ✨ #1 working on nav-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhngan22 committed Jul 29, 2022
1 parent c806597 commit c9e9eb5
Show file tree
Hide file tree
Showing 374 changed files with 16,395 additions and 2,418 deletions.
4,948 changes: 2,531 additions & 2,417 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@craco/craco": "^6.4.5",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.2.0",
"node": "16.16",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "^2.1.3",
Expand Down Expand Up @@ -35,5 +37,10 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"autoprefixer": "^9.8.8",
"postcss": "^7.0.39",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17"
}
}
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/images/Screenshot 2022-07-29 223248.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import Footer from './components/footer/Footer';
import Carousel from './components/Carousel';
import CardContainer from './components/CardContainer';
import RowContainer from './components/RowContainer';
import NavBar from './components/NavBar';
import SearchBar from './components/SearchBar';

function App() {

Expand All @@ -23,6 +25,8 @@ function App() {

return (
<div>
<SearchBar/>
<NavBar/>
<Carousel />
<CardContainer />
<RowContainer heading="Top Sellers in Books for you" imgUrls={booksImgUrls} />
Expand Down
29 changes: 28 additions & 1 deletion src/components/NavBar.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,34 @@
import React from 'react'
import '../styles/navbar.css'

export default function NavBar() {
return (
<div>NavBar</div>
<div className='nav-bar-container'>
<ul className='nav-bar'>
<li className='nav-bar-item' >
<a href='#' style = {{display: 'flex'}}>
<div>
<i className='ti-menu' style = {{paddingRight: '6px'}}></i>
</div>
All
</a>
</li>
<li className='nav-bar-item'>
<a href='#'>Today's Deals</a>
</li>
<li className='nav-bar-item'>
<a href='#'>Customer Service</a>
</li>
<li className='nav-bar-item'>
<a href='#'>Registry</a>
</li>
<li className='nav-bar-item'>
<a href='#'>Gift Cards</a>
</li>
<li className='nav-bar-item'>
<a href='#'>Sell</a>
</li>
</ul>
</div>
)
}
9 changes: 9 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
@import '/styles/navbar.css';
@import '/styles/searchbar.css';

@import './styles/themify-icons/themify-icons.css';



body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
Expand All @@ -11,3 +18,5 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}


1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';


const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
Expand Down
1 change: 1 addition & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import './styles/navbar.scss';
40 changes: 40 additions & 0 deletions src/styles/navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.nav-bar-container {
background-color: #232f3e;
height: 39px;
width: 100%;

}

.nav-bar {
height: 100%;
padding-left: 15px;

display: flex;
flex-direction: row;

list-style: none;

font-size: 14px;
}

.nav-bar-item {
align-self: center;
display: block;

}

.nav-bar-item a {
display: inline-block;
color: #fff;
text-decoration: none;

padding: 2px 11px;
margin : 5px 0 6px;

}

.nav-bar-item a:hover {
border: solid 1px #fff;
}


Empty file added src/styles/searchbar.css
Empty file.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/Italic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/agenda.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/alarm-clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/alert.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/align-center.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/align-justify.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/align-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/align-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/anchor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/android.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-double-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-double-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-double-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-double-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/angle-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/announcement.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/apple.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/archive.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/arrow-circle-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles/themify-icons/SVG/arrow-circle-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c9e9eb5

Please sign in to comment.