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'; | |
const Main = styled.div` | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
align-items: flex-start; | |
justify-content: center; | |
align-content: flex-start; | |
`; |
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
/* src/components/Loader.js */ | |
. | |
. | |
. | |
/* line 6 */ | |
const Loader = ({ className }) => (<div className={className}><Loading/></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
/* src/components/Loader.js */ | |
/* line 1 - 39 */ | |
import React from 'react'; | |
import styled, { keyframes } from 'styled-components'; | |
import { getColor } from '../utils/theme' |
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
/* src/User.js */ | |
. | |
. | |
. | |
/* line 40 - 57 */ | |
export default styled(User)` | |
width: 280px; |
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
/* src/components/UserProfile.js */ | |
. | |
. | |
. | |
/* line 74 - 83 */ | |
const Value = styled.span` | |
font-size: ${getFontSize('tn')}; |
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
/* src/components/UserProfile.js */ | |
. | |
. | |
. | |
/* line 44 */ | |
const breakPoint = '600px'; |
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
/* src/index.js */ | |
. | |
. | |
. | |
/* line 10 - 32 */ | |
injectGlobal` | |
* { |
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
/* src/App.js */ | |
import styled, { ThemeProvider } from 'styled-components'; | |
. | |
. | |
. | |
import { getUsers } from './utils/apiCalls'; | |
import { invertTheme, getColor } from './utils/theme'; |
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
// traditional Function-based syntax | |
function Hero(name, specialAbility) { | |
// setting property values | |
this.name = name; | |
this.specialAbility = specialAbility; | |
// declaring a method on the object | |
this.getDetails = function() { | |
return this.name + ' can ' + this.specialAbility; | |
}; |