Created
December 4, 2016 18:50
-
-
Save RyanCCollins/91c9a8cf4a8909f913b9b271bad8996b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React, { Component } from 'react'; | |
import Elm from 'react-elm-components'; | |
import Heading from 'grommet-udacity/components/Heading'; | |
import Section from 'grommet-udacity/components/Section'; | |
import Markdown from 'grommet-udacity/components/Markdown'; | |
import Box from 'grommet-udacity/components/Box'; | |
import { StyledWrapper, StyledArticle } from './styles'; | |
import { Main } from 'elm/src/Main'; | |
import { Divider } from 'components'; | |
const markdownContent = `### Congrats on finding the easter egg! | |
\n I have put together a Giphy Search app for your amusement. | |
I built it using Elm, although it bootstraps via React. | |
\n Maybe I will make a game next. Have any good ideas? \n Anyways, enjoy!`; | |
class GiphySearchContainer extends Component { // eslint-disable-line react/prefer-stateless-function | |
render() { | |
return ( | |
<StyledWrapper pad="large" className="gradient-blue"> | |
<Section justify="center" align="center"> | |
<StyledArticle align="center" pad="large"> | |
<Heading tag="h1" align="center"> | |
Elm Giphy Search | |
</Heading> | |
<Divider /> | |
<Box pad="large" align="center"> | |
<Markdown content={markdownContent} /> | |
</Box> | |
</StyledArticle> | |
</Section> | |
<Section> | |
<Elm src={Main} /> | |
</Section> | |
</StyledWrapper> | |
); | |
} | |
} | |
export default GiphySearchContainer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment