Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ecommerce-maven
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
ecommerce-maven
Commits
8e6daf28
Commit
8e6daf28
authored
May 13, 2021
by
Shaphen Pangburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-131 Shaphen Pangburn]: Add footer component to root
parent
11013f4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
footer.jsx
ecom-web/src/components/footer/footer.jsx
+21
-0
root.js
ecom-web/src/components/root.js
+4
-2
footer.css
ecom-web/src/resources/stylesheets/footer.css
+8
-0
No files found.
ecom-web/src/components/footer/footer.jsx
0 → 100644
View file @
8e6daf28
import
{
Component
}
from
'react'
;
import
'../../resources/stylesheets/footer.css'
class
Footer
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
}
}
render
()
{
return
(
<
div
className=
"footer"
>
All Rights Reserved 2021
</
div
>
)
}
}
export
default
Footer
\ No newline at end of file
ecom-web/src/components/root.js
View file @
8e6daf28
import
React
from
'react'
;
import
{
Provider
}
from
'react-redux'
import
{
Provider
}
from
'react-redux'
;
import
{
BrowserRouter
,
Route
,
Switch
,
Redirect
}
from
'react-router-dom'
;
import
SessionContainer
from
'./session/session-container'
;
import
ProductMarketContainer
from
'./product-market/product-market-container'
;
import
ShoppingCartContainer
from
'./shopping-cart/shopping-cart-container'
;
import
CheckoutContianer
from
'./checkout/checkout-container'
;
import
Header
from
'./
Header/header-container'
import
Header
from
'./
header/header-container'
;
import
OrderHistory
from
'./order-history/order-history'
;
import
Footer
from
'./footer/footer'
;
const
Root
=
({
store
})
=>
(
<
Provider
store
=
{
store
}
>
...
...
@@ -25,6 +26,7 @@ const Root = ({ store }) => (
<
Route
path
=
"/checkout"
component
=
{
CheckoutContianer
}
/
>
<
Route
path
=
"/orders"
component
=
{
OrderHistory
}
/
>
<
/Switch
>
<
Footer
/>
<
/BrowserRouter
>
<
/Provider
>
)
...
...
ecom-web/src/resources/stylesheets/footer.css
0 → 100644
View file @
8e6daf28
.footer
{
height
:
65px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
#f8f9fa
;
opacity
:
0.4
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment