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
<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
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
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
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
<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
return ( | |
<Accordion> | |
<Accordion.Collapsed> | |
…content here | |
</Accordion.Collapsed> | |
<Accordion.Expanded> | |
…content here | |
</Accordion.Expanded> | |
</Accordion> | |
) |
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 Accordion = ({ children }) => { | |
return <div>{children}</div> | |
} | |
Accordion.Item = ({ children }) => children | |
export default Accordion |
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> | |
…content here | |
</Accordion.Item> | |
</Accordion> |
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 Accordion = ({ children }) => { | |
return <div>{children}</div> | |
} | |
export default Accordion |