Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sample_pdp
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
Praveen Reghunathan Nair
sample_pdp
Commits
5815ee8f
Commit
5815ee8f
authored
Feb 06, 2020
by
Praveen Reghunathan Nair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Connecting PDP page to data
parent
c7eb99dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
Footer.module.scss
src/components/Footer/Footer.module.scss
+0
-1
PDP.jsx
src/pages/PDP/PDP.jsx
+3
-4
No files found.
src/components/Footer/Footer.module.scss
View file @
5815ee8f
.appFooter
{
.appFooter
{
// position: fixed;
bottom
:
0
;
bottom
:
0
;
left
:
0
;
left
:
0
;
}
}
\ No newline at end of file
src/pages/PDP/PDP.jsx
View file @
5815ee8f
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
style
from
'./PDP.module.scss'
;
import
style
from
'./PDP.module.scss'
;
import
Product
from
'models/product
'
;
import
Product
Details
from
'models/productDetail
'
;
class
PDPPage
extends
Component
{
class
PDPPage
extends
Component
{
...
@@ -10,9 +10,8 @@ class PDPPage extends Component {
...
@@ -10,9 +10,8 @@ class PDPPage extends Component {
}
}
render
()
{
render
()
{
const
image
=
{
url
:
'https://www.westelm.com/weimgs/rk/images/wcm/products/202003/0005/belgian-linen-ladder-stripe-embroidery-duvet-cover-shams-s-m.jpg'
};
const
{
product
}
=
this
.
props
;
const
{
product
}
=
this
.
props
;
const
{
name
,
}
=
new
Product
(
product
);
const
{
name
,
image
,
sellingPrice
}
=
new
ProductDetails
(
product
);
return
(
return
(
<
section
className=
{
style
.
PDPPage
}
>
<
section
className=
{
style
.
PDPPage
}
>
<
div
className=
{
style
.
content
}
>
<
div
className=
{
style
.
content
}
>
...
@@ -25,7 +24,7 @@ class PDPPage extends Component {
...
@@ -25,7 +24,7 @@ class PDPPage extends Component {
</
div
>
</
div
>
<
div
className=
{
style
.
details
}
>
<
div
className=
{
style
.
details
}
>
<
h1
>
{
name
}
</
h1
>
<
h1
>
{
name
}
</
h1
>
<
div
>
Price: 44 - 329
</
div
>
<
div
>
{
`Price: ${sellingPrice}`
}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
section
>
</
section
>
...
...
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