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
94de113b
Commit
94de113b
authored
May 08, 2021
by
Shaphen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-47 Shaphen Pangburn]: Add more details styling without functionality
parent
975a3615
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
2 deletions
+33
-2
product-market.jsx
ecom-web/src/components/product-market/product-market.jsx
+4
-2
product-market.css
ecom-web/src/resources/stylesheets/product-market.css
+29
-0
No files found.
ecom-web/src/components/product-market/product-market.jsx
View file @
94de113b
...
@@ -39,9 +39,11 @@ export default class ProductMarket extends Component {
...
@@ -39,9 +39,11 @@ export default class ProductMarket extends Component {
<
div
className=
"product-item-container"
key=
{
prod
.
sku
}
>
<
div
className=
"product-item-container"
key=
{
prod
.
sku
}
>
{
prod
.
productName
?
{
prod
.
productName
?
<
div
className=
"product-item"
>
<
div
className=
"product-item"
>
<
img
id=
"prod-img"
src=
{
prod
.
productImageUrl
?
prod
.
productImageUrl
:
"-no photo-"
}
/>
<
div
id=
"more-details-img-box"
>
<
img
id=
"prod-img"
src=
{
prod
.
productImageUrl
?
prod
.
productImageUrl
:
"-no photo-"
}
/>
<
p
id=
"more-details-text"
>
More Details
</
p
>
</
div
>
<
p
id=
"prod-name"
>
{
prod
.
productName
}
</
p
>
<
p
id=
"prod-name"
>
{
prod
.
productName
}
</
p
>
{
/* <p id="prod-description">{ prod.productDescription }</p> */
}
<
p
id=
"prod-price"
>
<
p
id=
"prod-price"
>
{
prod
.
promo
?
{
prod
.
promo
?
<
div
id=
"promo-show"
>
<
div
id=
"promo-show"
>
...
...
ecom-web/src/resources/stylesheets/product-market.css
View file @
94de113b
...
@@ -45,6 +45,35 @@
...
@@ -45,6 +45,35 @@
#prod-img
{
#prod-img
{
height
:
200px
;
height
:
200px
;
transition
:
all
0.3s
;
}
#more-details-img-box
{
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
position
:
relative
;
transition
:
all
0.2s
;
}
#more-details-img-box
:hover
{
cursor
:
pointer
;
}
#more-details-img-box
:hover
#prod-img
{
opacity
:
50%
;
}
#more-details-text
{
display
:
none
;
position
:
absolute
;
top
:
80px
;
font-size
:
35px
;
transition
:
all
1s
;
}
#more-details-img-box
:hover
#more-details-text
{
display
:
block
;
}
}
#prod-name
,
#prod-name
,
...
...
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