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 styled from 'styled-components'; | |
export const Box = styled.div` | |
display: inline-block; | |
background: pink; | |
width: 200px; | |
height: 200px; | |
transition: transform 300ms ease-in-out; | |
` | |
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 styled from 'styled-components'; | |
import Box from './Box; | |
export const Trigger = styled.div` | |
width: 200px; | |
height: 200px; | |
border: 20px solid #999; | |
background: #ddd; | |
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 styled from 'styled-components'; | |
import { keyFrameExampleOne } from './KeyFrames'; | |
export const Box = styled.div` | |
display: inline-block; | |
background: pink; | |
width: 200px; | |
height: 200px; | |
position: relative; |
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 styled, { keyframes } from 'styled-components'; | |
export const keyFrameExampleOne = keyframes` | |
0% { | |
height: 200px; | |
} | |
100% { | |
height: 600px; | |
background: orange; | |
} |
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 Box from './styles/Box' | |
import Trigger from './styles/Trigger'; | |
export class App extends React.Component { | |
render() { | |
return ( | |
<Trigger> | |
<Box /> | |
</Trigger> |
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 styled, { keyframes } from 'styled-components'; | |
const coolBoxKeyframes = keyframes` | |
0% { | |
height: 0px; | |
background: green; | |
} | |
100% { | |
height: 200px; | |
background: blue; |
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 CoolBox from '../CoolBox'; | |
export class Final extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { isCool: false } | |
} | |
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 Box from './styles/Box' | |
// import Trigger from './styles/Trigger'; | |
import Final from '../Final'; | |
export class App extends React.Component { | |
render() { | |
return ( | |
<Final /> |
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 styled, { keyframes } from 'styled-components'; | |
export const keyFrameExampleOne = keyframes` | |
0% { | |
height: 200px; | |
} | |
30%, 100% { | |
width: 400px; | |
} | |
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
INSTALLED_APPS = [ | |
'django.contrib.admin', | |
'django.contrib.auth', | |
'django.contrib.contenttypes', | |
'django.contrib.sessions', | |
'django.contrib.messages', | |
'django.contrib.staticfiles', | |
'rest_framework', | |
'todos', | |
'users', |