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
image: node:latest | |
# This folder is cached between builds | |
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
cache: | |
paths: | |
- node_modules/ | |
pages: | |
script: |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "ListObjectsInBucket", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Resource": [ |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": "cloudfront:CreateInvalidation", | |
"Resource": "arn:aws:cloudfront:::distribution/<REPLACE_WITH_DISTRIBUTION_ID>" | |
} | |
] |
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
// Text.module.css | |
.custom-text { | |
color: red; | |
font-size: 20px; | |
} | |
// Text.jsx | |
import TextStyles from './Text.module.css'; |
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 Text from './Text.jsx'; | |
function MyComponent() { | |
const BigRedText = styled(Text)` | |
font-size: 40px; | |
color: red; | |
`; | |
return <BigRedText> |
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
function MyComponent() { | |
return <div styles={{ | |
backgroundColor: 'red', | |
fontSize: '25px' | |
}}> | |
... | |
</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
function MyComponent() { | |
return <div className="container"> | |
... | |
</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, { useState } from 'react'; | |
const LightBox = ({ children, src, alt, Wrapper = 'div', zIndex = 100 }) => { | |
const [isOpen, setIsOpen] = useState(false); | |
const toggleIsOpen = () => { | |
setIsOpen(!isOpen); | |
}; | |
return ( |
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, {useState} from 'react'; | |
const LightBox = ({ children, src, alt, Wrapper = 'div' }) => { | |
const [isOpen, setIsOpen] = useState(false); | |
const toggleIsOpen = () => { | |
setIsOpen(!isOpen); | |
}; | |
return ( |
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, {useState} from 'react'; | |
const LightBox = ({ children, src, alt, Wrapper = 'div' }) => { | |
const [isOpen, setIsOpen] = useState(false); | |
const toggleIsOpen = () => { | |
setIsOpen(!isOpen); | |
}; | |
return ( |
NewerOlder