-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ch68] Modify product page and sidebar
- Loading branch information
Raksani
committed
Feb 1, 2021
1 parent
d7ac976
commit 3cd3fd8
Showing
9 changed files
with
52 additions
and
5,432 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import React from 'react' | ||
|
||
const Sidebar = () => { | ||
return <div className="sidebar-container">Sidebar</div> | ||
return <div className="sidebar">Sidebar</div> | ||
} | ||
|
||
export default Sidebar |
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,23 @@ | ||
import Footer from '../components/Footer' | ||
import Navbar from '../components/Navbar' | ||
import Sidebar from '../components/Sidebar' | ||
import ProductList from '../components/ProductList' | ||
|
||
const Products = () => ( | ||
<div className="layout-products"> | ||
<header> | ||
<Navbar /> | ||
</header> | ||
<aside> | ||
<Sidebar /> | ||
</aside> | ||
<main> | ||
<ProductList /> | ||
</main> | ||
<footer> | ||
<Footer /> | ||
</footer> | ||
</div> | ||
) | ||
|
||
export default Products |
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,14 +1,8 @@ | ||
@import '../abstracts/_abstracts-dir'; | ||
|
||
.sidebar-container { | ||
left: 0; | ||
height: 100vh; | ||
overflow: auto; | ||
width: rem(150px); | ||
.sidebar { | ||
height: 100%; | ||
background-color: $primary; | ||
|
||
@include flex-center(); | ||
@include respond-above(md) { | ||
width: rem(300px); | ||
} | ||
} |
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,3 +1,4 @@ | ||
@import './layout-home'; | ||
@import './layout-authentication'; | ||
@import './layout-about-us'; | ||
@import './layout-products'; |
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