Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Switch, Route} from 'react-router-dom'

import Homepage from './Pages/Homepage'
import UserDashboard from './Pages/user-dashboard';

import Cart from './Pages/shopping-cart';



Expand All @@ -18,6 +18,7 @@ class App extends Component {
<Switch>
<Route exact path="/" component={Homepage} />
<Route exact path="/dashboard/information" component={UserDashboard} />
<Route exact path='/cart' component={Cart} />
</Switch>

</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.subscription {
background-color: #D6DB46;
height: 500px;
height: 333px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
margin-top: 40%;
// margin-top: 40%;
}
.subscription-header {
font-family: Roboto;
Expand Down
72 changes: 72 additions & 0 deletions src/Pages/shopping-cart/cart.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
.cart {

.center {
margin: 0 auto;
}
.fix {
width: 95%;
margin: 0 auto;


.txt {
width: 408px;
height: 59px;
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 50px;
line-height: 59px;
margin-left: 2rem;
margin-top: 2.5rem;
color: rgba(0, 0, 0, 0.6);
}

.ptxt {
position: absolute;
width: 186px;
height: 26px;
min-height: 5rem;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 22px;
line-height: 26px;
margin-bottom: 1rem;
color: rgba(0, 0, 0, 0.4);
}
}
.line {
width: 1301.96px;
height: 0px;
border: 1px solid #e3e3e3;
}
.sub {
margin-top: 3rem !important ;
}
.item {
width: 95%;
margin: 0 auto;
padding-left: 2rem;
padding-top: 1rem;
}
.get-mobile-searchbar {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 5%;
margin-bottom: 5%;
}
.get-mobile-search-header {
margin-right: 33%;
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 26px;
line-height: 22px;
color: #d6db46;
}
.ad {
margin-top: 30rem;
}
}
38 changes: 38 additions & 0 deletions src/Pages/shopping-cart/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from 'react';

import Navigation from '../../components/Navigation/index'
import Subscription from '../Homepage/Homepage-component/subscription/index'
import SearchBar from '../../components/SearchBar/index'
import Footer from '../../components/Footer/index'
import Cartitem from '../../components/cart-item/caritem'
import './cart.scss';

const Cart = () => (
<div className='cart'>
<div className='center'>
<Navigation />
</div>
<div className='fix'>
<div className='txt'>
<h3>
Shopping Cart <span>(1 item(s))</span>
</h3>
<p className='ptxt'>Continue Shopping</p>
</div>
<span className=''></span>
</div>
<div className='item'>
<Cartitem />
</div>
<div className='sub'>
<Subscription />
</div>
<div className="get-mobile-searchbar ad">
<h1 className="get-mobile-search-header">Order Now!</h1>
<SearchBar whitebackground/>
</div>
<Footer />
</div>
)

export default Cart
35 changes: 35 additions & 0 deletions src/components/cart-item/caritem.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faEnvelope } from '@fortawesome/free-solid-svg-icons'
import './cartitem.scss';

const Cartitem = ( ) => (
<div className="cartitem">
<p className='q'>
<span>Resturant: Ajegunle Chou</span>
<button className='button'>
<FontAwesomeIcon icon={faEnvelope} className='m' />
Message Resturant</button>
</p>
<div className="item-details">
<div className="header-block">
<span>Product name & Description</span>
</div>
{/* <div className="header-block">
<span>Description</span>
</div> */}
<div className="header-block">
<span>Quantity</span>
</div>
<div className="header-block">
<span>Price</span>
</div>
<div className="header-block">
<span>Delivery Details</span>
</div>
</div>
</div>
)

export default Cartitem
54 changes: 54 additions & 0 deletions src/components/cart-item/cartitem.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.cartitem {
border-top: 1px solid #eee;
margin: 0.5rem auto;

.q {
margin-top: 1rem;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 18px;
line-height: 21px;
width: 27.5rem;
color: rgba(0, 0, 0, 0.4);

display: flex;
justify-content: space-between;
}
.button{
outline: none;
border: none;
color: rgba(0, 0, 0, 0.4);
background-color: #fff;
.m{
color: #d6db46;
margin-left: .2rem;
}
}
.item-details {
display: flex;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 18px;
line-height: 26px;
color: rgba(0, 0, 0, 0.4);
width: 100%;

.header-block {
text-transform: capitalize;
justify-content: center;

&:first-child {
width: 40%;
}
&:nth-child(2),
&:nth-child(3) {
width: 15%;
}
&:last-child {
width: 30%;
}
}
}
}