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
e7c432fd
Commit
e7c432fd
authored
Feb 07, 2020
by
Praveen Reghunathan Nair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing lint errors, removed inline styles
parent
3f0c2e8d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
App.jsx
src/App/App.jsx
+2
-2
App.module.scss
src/App/App.module.scss
+5
-1
ImageCarousel.jsx
src/components/ImageCarousel/ImageCarousel.jsx
+1
-1
LoadingAnimation.jsx
src/components/LoadingAnimation/LoadingAnimation.jsx
+2
-2
LoadingAnimation.module.scss
src/components/LoadingAnimation/LoadingAnimation.module.scss
+0
-1
No files found.
src/App/App.jsx
View file @
e7c432fd
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Component
}
from
'react'
;
import
style
s
from
'./App.module.scss'
;
import
style
from
'./App.module.scss'
;
import
{
BrowserRouter
as
Router
,
Route
,
Redirect
,
Switch
}
from
'react-router-dom'
;
import
{
BrowserRouter
as
Router
,
Route
,
Redirect
,
Switch
}
from
'react-router-dom'
;
import
PLPPage
from
'pages/PLP'
;
import
PLPPage
from
'pages/PLP'
;
import
PDPPage
from
'pages/PDP'
;
import
PDPPage
from
'pages/PDP'
;
...
@@ -21,7 +21,7 @@ class App extends Component {
...
@@ -21,7 +21,7 @@ class App extends Component {
if
(
loading
)
{
if
(
loading
)
{
return
(
return
(
<
LoadingAnimation
style=
{
{
height
:
'100vh'
}
}
></
LoadingAnimation
>
<
LoadingAnimation
className=
{
style
.
loadingAnimation
}
></
LoadingAnimation
>
);
);
}
}
else
{
else
{
...
...
src/App/App.module.scss
View file @
e7c432fd
...
@@ -5,3 +5,7 @@ body {
...
@@ -5,3 +5,7 @@ body {
}
}
main
{}
main
{}
.loadingAnimation
{
height
:
100vh
;
}
\ No newline at end of file
src/components/ImageCarousel/ImageCarousel.jsx
View file @
e7c432fd
...
@@ -50,7 +50,7 @@ class ImageCarousel extends Component {
...
@@ -50,7 +50,7 @@ class ImageCarousel extends Component {
<
div
>
{
`Total images: ${images.length}`
}
</
div
>
<
div
>
{
`Total images: ${images.length}`
}
</
div
>
<
div
className=
{
style
.
content
}
>
<
div
className=
{
style
.
content
}
>
<
Arrow
onArrowClick=
{
this
.
previousSlide
}
glyph=
"◀"
/>
<
Arrow
onArrowClick=
{
this
.
previousSlide
}
glyph=
"◀"
/>
<
img
src=
{
curImage
.
url
}
/>
<
img
src=
{
curImage
.
url
}
alt=
{
curImage
.
alt
}
/>
<
Arrow
onArrowClick=
{
this
.
nextSlide
}
glyph=
"▶"
/>
<
Arrow
onArrowClick=
{
this
.
nextSlide
}
glyph=
"▶"
/>
</
div
>
</
div
>
<
button
className=
{
style
.
closeButton
}
onClick=
{
onClose
}
>
Close
</
button
>
<
button
className=
{
style
.
closeButton
}
onClick=
{
onClose
}
>
Close
</
button
>
...
...
src/components/LoadingAnimation/LoadingAnimation.jsx
View file @
e7c432fd
...
@@ -4,9 +4,9 @@ import React from "react";
...
@@ -4,9 +4,9 @@ import React from "react";
import
styles
from
'./LoadingAnimation.module.scss'
;
import
styles
from
'./LoadingAnimation.module.scss'
;
function
LoadingAnimation
(
props
)
{
function
LoadingAnimation
(
props
)
{
const
{
className
=
''
}
=
props
;
return
(
return
(
<
div
className=
{
styles
.
loadingAnimation
}
style=
{
props
.
style
}
>
<
div
className=
{
`${styles.loadingAnimation} ${className}`
}
>
<
div
className=
{
styles
.
loader
}
></
div
>
<
div
className=
{
styles
.
loader
}
></
div
>
</
div
>
</
div
>
);
);
...
...
src/components/LoadingAnimation/LoadingAnimation.module.scss
View file @
e7c432fd
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
height
:
100%
;
.loader
{
.loader
{
border
:
16px
solid
$gray1
;
border
:
16px
solid
$gray1
;
...
...
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