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 dayjs from 'dayjs'; | |
| import './App.css'; | |
| const date = dayjs().format(); | |
| function App() { | |
| return ( | |
| <div className="App"> | |
| <header className="App-header"> | |
| <p>{date}</p> |
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 { withStyles, makeStyles } from '@material-ui/core/styles'; | |
| import Table from '@material-ui/core/Table'; | |
| import TableBody from '@material-ui/core/TableBody'; | |
| import TableCell from '@material-ui/core/TableCell'; | |
| import TableContainer from '@material-ui/core/TableContainer'; | |
| import TableHead from '@material-ui/core/TableHead'; | |
| import TableRow from '@material-ui/core/TableRow'; | |
| import Skeleton from '@material-ui/lab/Skeleton'; |
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 { makeStyles } from '@material-ui/core'; | |
| import TextField from '@material-ui/core/TextField'; | |
| import Button from '@material-ui/core/Button'; | |
| import Typography from '@material-ui/core/Typography'; | |
| import Link from '@material-ui/core/Link'; | |
| import Box from '@material-ui/core/Box'; | |
| import { useForm, Controller } from 'react-hook-form'; | |
| import { useAuth } from '../../contexts/Auth'; |
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, { useContext, useState, useEffect, createContext } from 'react'; | |
| import { supabase } from '../supabase'; | |
| // create a context for authentication | |
| const AuthContext = createContext(); | |
| export const AuthProvider = ({ children }) => { | |
| // create state values for user data and loading | |
| const [user, setUser] = useState(); | |
| const [loading, setLoading] = useState(true); |
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 { makeStyles } from '@material-ui/core/styles'; | |
| import Grid from '@material-ui/core/Grid'; | |
| import Typography from '@material-ui/core/Typography'; | |
| import Container from '@material-ui/core/Container'; | |
| import EmojiPeopleIcon from '@material-ui/icons/EmojiPeople'; | |
| import FastfoodIcon from '@material-ui/icons/Fastfood'; | |
| import LocationCityIcon from '@material-ui/icons/LocationCity'; | |
| const useStyles = makeStyles(theme => ({ |
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 { Route, Switch, Link } from 'react-router-dom'; | |
| import Home from './Pages/Home'; | |
| import About from './Pages/About'; | |
| import Blog from './Pages/Blog'; | |
| import BlogPost from './Pages/BlogPost'; | |
| const App = () => { | |
| return ( | |
| <div className="App"> | |
| <h1>App</h1> |
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 { makeStyles } from '@material-ui/core/styles'; | |
| import Box from '@material-ui/core/Box'; | |
| import Button from '@material-ui/core/Button'; | |
| import Typography from '@material-ui/core/Typography'; | |
| import ReactPlayer from 'react-player'; | |
| import heroVideo from './HeroVideo.mp4'; | |
| const useStyles = makeStyles(theme => ({ | |
| root: { |