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
const cheerio = require('cheerio'); | |
const axios = require('axios'); | |
const fs = require('fs'); | |
async function obtainData(num) { | |
const endpoint = 'https://www.tbpr.org/news-publications/recent-disciplinary-actions?page=' + num; | |
const file = 'data/pg' + num + '.json'; | |
await axios.get(endpoint).then(urlResponse => { | |
const $ = cheerio.load(urlResponse.data); |
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, useEffect } from 'react'; | |
function useWindowSize() { | |
// Initialize state with undefined width/height so server and client renders match | |
const [windowSize, setWindowSize] = useState({ | |
width: undefined, | |
height: undefined, | |
}); | |
useEffect(() => { |
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 { useEffect } from 'react'; | |
import { useRouter } from 'next/router'; | |
const Redirect = ({ to }) => { | |
const router = useRouter(); | |
useEffect(() => { | |
router.push(to) | |
}, [to]) | |
return null |
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 { motion } from 'framer-motion'; | |
import { | |
mainPathVariant, | |
shapeVariations | |
} from '@/lib/config/animations/svgs/svgs'; | |
const color1 = 'rgba(37, 35, 35, 0.3)'; | |
const color2 = 'rgba(202, 222, 252, 0.7)'; | |
/* |
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 '../theme/theme'; | |
@import '../mixins/width'; | |
@import '../mixins/height'; | |
.parent { | |
height: 100%; | |
width: 100vw; | |
color: $bg-d; | |
display: flex; | |
flex-direction: column; |
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
$breakpoints: ( | |
xs: 600px, | |
sm: 800px, | |
md: 1000px, | |
lg: 1200px, | |
xl: 1500px, | |
); | |
@mixin respond-above-width($breakpoint) { | |
@if map-has-key($breakpoints, $breakpoint) { |
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
$breakpoints: ( | |
xxs: 575px, | |
xs: 650px, | |
sm: 725px, | |
md: 800px, | |
lg: 875px, | |
xlg: 960px, | |
); | |
@mixin respond-above-height($breakpoint) { |
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 * as React from 'react' | |
import type { AppProps /*, AppContext */ } from 'next/app' | |
import Head from 'next/head' | |
import { useRouter } from 'next/router' | |
import { AnimatePresence } from 'framer-motion' | |
import theme from '@/lib/theme/theme' | |
import '@/styles/globals.scss' | |
export default function MyApp (props: AppProps) { | |
const { Component, pageProps } = props |
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 'themes'; | |
.container { | |
min-height: 100vh; | |
padding: 0 0.5rem; | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
} |
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 'themes'; | |
html, | |
body { | |
padding: 0; | |
margin: 0; | |
background: $c-bg; | |
color: #fff; | |
font-family: $primary-font-family; | |
} |
NewerOlder