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
<Accordion> | |
<Accordion.Item> | |
<Accordion.Collapsed> | |
…content here | |
</Accordion.Collapsed> | |
<Accordion.Expanded> | |
…content here | |
</Accordion.Expanded> | |
</Accordion.Item> | |
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 from 'react' | |
const Expanded = ({ children }) => { | |
return <div style={styles}>{children}</div> | |
} | |
const styles = { | |
padding: '15px' | |
} |
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 from 'react' | |
const Collapsed = ({ children }) => ( | |
<div style={styles}> | |
{children} | |
</div> | |
) | |
const styles = { | |
color: '#007bff', // blue |
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
return ( | |
<Accordion> | |
<div> | |
<Accordion.Collapsed> | |
…content here | |
</Accordion.Collapsed> | |
<Accordion.Expanded> | |
…content here | |
</Accordion.Expanded> | |
</div> |
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
<meta name="description" content="" /> | |
<meta name="twitter:title" content="" /> | |
<meta name="twitter:description" content="" /> | |
<meta name="twitter:url" content="" /> | |
<meta name="twitter:image" content="" /> | |
<meta name="twitter:card" content="summary_large_image" /> | |
<meta name="twitter:site" content="@your_twitter_handle" /> | |
<meta property="og:title" content="" /> |
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
const puppeteer = require('puppeteer'); | |
const fs = require('fs') | |
async function main() { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('https://some-website.com'); | |
// Return an array of all the link text and assign it to sideBarLinks |
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
const puppeteer = require('puppeteer'); | |
async function main() { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
await page.goto('https://some-website.com'); | |
// Full access to the browser environment. | |
await page.evaluate(() => { |
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
/** @jsx jsx */ | |
import React, { useState, useEffect, useRef } from 'react' | |
import { css, jsx } from '@emotion/core' | |
import SliderContent from './SliderContent' | |
import Slide from './Slide' | |
import Arrow from './Arrow' | |
import Dots from './Dots' | |
const getWidth = () => window.innerWidth |
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
/** @jsx jsx */ | |
import React, { useState, useEffect, useRef } from 'react' | |
import { css, jsx } from '@emotion/core' | |
import SliderContent from './SliderContent' | |
import Slide from './Slide' | |
import Arrow from './Arrow' | |
import Dots from './Dots' | |
const getWidth = () => window.innerWidth |
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
/** @jsx jsx */ | |
import React from 'react' | |
import { css, jsx } from '@emotion/core' | |
const SliderContent = props => ( | |
<div | |
css={css` | |
transform: translateX(-${props.translate}px); | |
transition: transform ease-out ${props.transition}s; | |
height: 100%; |