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
<div> | |
<p>Test SCSS</p> | |
</div> | |
<style lang="scss"> | |
div { | |
p { | |
color: red; | |
} | |
} |
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
<p class="text-teal-500">Tailwind is working</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, { Suspense } from "react" | |
import { RecoilRoot } from "recoil" | |
import TimelineMap from "./components/map/TimelineMap" | |
import TimeTravelButtons from "./components/time/TimeTravelButtons" | |
import TimeTravelSlider from "./components/time/TimeTravelSlider" | |
import CurrentStatSelect from "./components/stats/CurrentStatSelect" | |
const App = () => { | |
return ( | |
<RecoilRoot> |
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, { Suspense } from "react" | |
import { RecoilRoot } from "recoil" | |
import TimelineMap from "./components/map/TimelineMap" | |
import TimeTravelButtons from "./components/time/TimeTravelButtons" | |
import TimeTravelSlider from "./components/time/TimeTravelSlider" | |
const App = () => { | |
return ( | |
<RecoilRoot> | |
<Suspense fallback="Loading..."> |
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, { Suspense } from "react" | |
import { RecoilRoot } from "recoil" | |
import TimelineMap from "./components/map/TimelineMap" | |
import TimeTravelButtons from "./components/time/TimeTravelButtons" | |
const App = () => { | |
return ( | |
<RecoilRoot> | |
<Suspense fallback="Loading..."> | |
<TimeTravelButtons /> |
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, { useMemo } from "react" | |
import styled from "styled-components" | |
import { useRecoilState } from "recoil" | |
import { currentDateState, DATE_RANGE } from "../../state/app" | |
import { differenceInCalendarDays, addDays, formatDistanceToNow } from "date-fns" | |
const StyledTimeTravelSlider = styled("div")` | |
display: flex; | |
flex-flow: column; | |
align-items: center; |
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 DeckGLMap from "./DeckGLMap" | |
import { ScatterplotLayer } from "@deck.gl/layers" | |
const DataMap = ({ | |
mapboxToken = "", | |
data = [], | |
dotCoordinates = "coordinates", | |
displayStat = "cases", | |
statMax = 1, |
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 { useRecoilValueLoadable, useRecoilValue } from "recoil" | |
import { mapboxToken } from "../../mapbox-token" | |
import { countriesQuery, currentDateStatusState } from "../../state/api" | |
import { currentStatState, currentStatMaxState } from "../../state/app" | |
import DataMap from "./DataMap" | |
import LoadingIndicator from "../ui/LoadingIndicator" |
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 DeckGLMap from "./DeckGLMap" | |
import { ScatterplotLayer } from "@deck.gl/layers" | |
const DataMap = ({ | |
mapboxToken = "", | |
data = [], | |
dotCoordinates = "coordinates", | |
displayStat = "cases", | |
statMax = 1, |
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 { selector, atom } from "recoil" | |
import { isAfter, isBefore, format } from "date-fns" | |
import { API_DATE_FORMAT, statusByDateQuery } from "../api" | |
export const DATE_RANGE = [new Date("10 Jan 2020"), new Date()] | |
export const CASES = "cases" | |
export const DEATHS = "deaths" | |
export const RECOVERED = "recovered" |
NewerOlder