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
    
  
  
    
  | //tailwind.config.js | |
| module.exports = { | |
| purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], | |
| darkMode: false, // or 'media' or 'class' | |
| theme: { | |
| extend: {}, | |
| }, | |
| variants: { | |
| extend: {}, | 
  
    
      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
    
  
  
    
  | /* Based on https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-athena-index.js.html */ | |
| const _ = require('lodash') | |
| const Queue = require('async/queue') | |
| const AWS = require('aws-sdk') | |
| require('dotenv').config() | |
| AWS.config.update({ | |
| region: process.env.AWS_REGION, | |
| accessKeyId: process.env.AWS_ACCESS_KEY_ID, | 
  
    
      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 AWS = require('aws-sdk') | |
| require('dotenv').config() | |
| // Configure AWS SDK with the credentials created before | |
| // You should probably use a .env file for this | |
| AWS.config.update({ | |
| region: process.env.AWS_REGION, | |
| accessKeyId: process.env.AWS_ACCESS_KEY_ID, | |
| secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY | |
| }) | 
  
    
      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' | |
| import { | |
| ThemeProvider, | |
| theme, | |
| ColorModeProvider, | |
| CSSReset, | |
| Box, | |
| Flex, | |
| IconButton, | |
| useColorMode, | 
  
    
      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' | |
| import Button from '../components/Button' | |
| const Home = () => { | |
| return <Button>Theme Test</Button> | |
| } | |
| export default Home | 
  
    
      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, { useState, useEffect } from 'react' | |
| import useDarkMode from 'use-dark-mode' | |
| import { ThemeProvider } from 'styled-components' | |
| import { lightTheme, darkTheme } from '../theme' | |
| const MyApp = ({ Component, pageProps }) => { | |
| const [isMounted, setIsMounted] = useState(false) | |
| const darkMode = useDarkMode(true) | |
| const theme = darkMode.value ? darkTheme : lightTheme | 
  
    
      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 light = { | |
| bg: 'white', | |
| fontColor: 'purple' | |
| } | |
| const dark = { | |
| bg: 'black', | |
| fontColor: 'white' | |
| } |