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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import configureStore from "./store/configureStore"; | |
const store = configureStore(); | |
const rootEl = document.getElementById("root"); |
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
import React from 'react' | |
import styled from 'styled-components' | |
const Content = ({ skyblue, className }) => { | |
return ( | |
<div className={className}> | |
<div className="content__img" /> | |
<div className="content__info"> | |
<div className="content__title" skyblue> | |
Cute Puppy |
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
export default ({ skyblue }) => { | |
return ( | |
<ContentWrapper> | |
<Img /> | |
<InfoWrapper> | |
<Title skyblue>Cute Puppy</Title> | |
<Description> | |
Sed ut voluptatem neque cumque. Qui sed ut itaque est doloribus qui. | |
Eos perferendis autem qui fugiat. | |
</Description> |
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
import React from 'react' | |
import styled from 'styled-components' | |
const ContentWrapper = styled.div` | |
width: 80%; | |
height: 300px; | |
box-shadow: 0 0 5px 2px #ccc; | |
` | |
const Img = styled.div` |
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
import React from 'react' | |
import styled from 'styled-components' | |
const ContentWrapper = styled.div` | |
width: 80%; | |
height: 300px; | |
box-shadow: 0 0 5px 2px #ccc; | |
` | |
const Img = styled.div` |
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
import React from 'react' | |
import styled from 'styled-components' | |
const ContentWrapper = styled.div` | |
width: 80%; | |
height: 300px; | |
box-shadow: 0 0 5px 2px #ccc; | |
` | |
const Img = styled.div` |
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
.content{ | |
width: 80%; | |
height: 300px; | |
box-shadow: 0 0 5px 2px #ccc; | |
} | |
.content__img{ | |
display: inline-block; | |
width: 300px; | |
height: 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
export default () => ( | |
<div className="content"> | |
<div className="content__img" /> | |
<div className="content__info"> | |
<div className="content__title">Cute Puppy</div> | |
<div className="content__description"> | |
Sed ut voluptatem neque cumque. Qui sed ut itaque est doloribus qui. | |
Eos perferendis autem qui fugiat. | |
</div> | |
</div> |
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
import React from 'react' | |
import './content.css' | |
export default ({ skyblue }) => { | |
/* add new css classes */ | |
let titleStyles = ['content__title'] | |
if (skyblue) { | |
titleStyles.push('content--skyblue') | |
} |
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
.content{ | |
width: 80%; | |
height: 300px; | |
box-shadow: 0 0 5px 2px #ccc; | |
} | |
.content__img{ | |
display: inline-block; | |
width: 300px; | |
height: 100%; |
NewerOlder