-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from singnet/master
Pull from parent
- Loading branch information
Showing
14 changed files
with
115 additions
and
53 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions
15
src/components/GetStarted/Category/FeatureMedia/GifContainer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import React from "react"; | ||
import { withStyles } from "@material-ui/styles"; | ||
|
||
const GifContainer = ({ content }) => { | ||
return <div>{content}</div>; | ||
import { useStyles } from "./styles"; | ||
|
||
const GifContainer = ({ classes, content }) => { | ||
return ( | ||
<img | ||
src={content || "https://media.giphy.com/media/pLLLNpJWp6jjW/giphy.gif"} | ||
alt="Demo Gif File" | ||
className={classes.FullWidth} | ||
/> | ||
); | ||
}; | ||
|
||
export default GifContainer; | ||
export default withStyles(useStyles)(GifContainer); |
10 changes: 7 additions & 3 deletions
10
src/components/GetStarted/Category/FeatureMedia/ImgContainer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from "react"; | ||
import { withStyles } from "@material-ui/styles"; | ||
|
||
const ImgContainer = ({ content }) => { | ||
return <div>{content}</div>; | ||
import { useStyles } from "./styles"; | ||
import DummyGetStarted from "../../../../assets/images/DummyGetStarted.png"; | ||
|
||
const ImgContainer = ({ content, classes }) => { | ||
return <img src={content || DummyGetStarted} alt="DummyImage" className={classes.FullWidth} />; | ||
}; | ||
|
||
export default ImgContainer; | ||
export default withStyles(useStyles)(ImgContainer); |
14 changes: 11 additions & 3 deletions
14
src/components/GetStarted/Category/FeatureMedia/VideoContainer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
import React from "react"; | ||
import { withStyles } from "@material-ui/styles"; | ||
|
||
const VideoContainer = ({ content }) => { | ||
return <div>{content}</div>; | ||
import { useStyles } from "./styles"; | ||
|
||
const VideoContainer = ({ classes, content }) => { | ||
return ( | ||
<video controls className={classes.FullWidth}> | ||
<source src={content || "http://techslides.com/demos/sample-videos/small.mp4"} type="video/mp4" /> | ||
Your browser does not support the video tag. | ||
</video> | ||
); | ||
}; | ||
|
||
export default VideoContainer; | ||
export default withStyles(useStyles)(VideoContainer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const useStyles = theme => ({ | ||
FullWidth: { width: "100%" }, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters