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 from "react"; | |
import {Helmet} from "react-helmet"; | |
function About() { | |
return ( | |
<div className="about"> | |
<Helmet> | |
<title>About - yoursite.com</title> | |
<meta name="description" content="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." /> | |
<link rel="canonical" href="http://mysite.com/example" /> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="theme-color" content="#000000" /> | |
<meta | |
name="description" | |
content="Web site created using create-react-app" |
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 from "react"; | |
import { Card, Button } from "react-bootstrap"; | |
function VotingCard(props) { | |
let { team, incrementVoteCount } = props; | |
return ( | |
<Card style={{ width: "18rem" }}> | |
<Card.Img variant="top" src={`/assets/images/${team.logo}`} /> | |
<Card.Body> |
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, { useEffect, useState } from "react"; | |
import { Container, Row, Col } from "react-bootstrap"; | |
import VotingCard from "./components/VotingCard"; | |
import teamsJson from "./lib/teams.json"; | |
import "./assets/scss/styles.scss"; | |
import "bootstrap/dist/css/bootstrap.css"; | |
function App() { | |
let [teams, setTeams] = useState([]); |
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 from "react"; | |
import { Card, ListGroup } from "react-bootstrap"; | |
function Question(props) { | |
let { question, checkOption } = props; | |
return ( | |
<Card> | |
<Card.Body> | |
<Card.Title>{question.name}</Card.Title> | |
<ListGroup> |
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 from "react"; | |
import { Modal, Button } from "react-bootstrap"; | |
import { PieChart } from "react-minimal-pie-chart"; | |
function Question(props) { | |
let { correct, incorrect, testAgain } = props; | |
let correctPercentage = (correct / 10) * 100; | |
let incorrectPercentage = 100 - correctPercentage; | |
return ( |
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, { useEffect, useState } from "react"; | |
import { Container, Navbar, Nav } from "react-bootstrap"; | |
import Question from "./components/Question"; | |
import "./assets/scss/styles.scss"; | |
import "bootstrap/dist/css/bootstrap.css"; | |
import { LoremIpsum } from "lorem-ipsum"; | |
import ResultModal from "./components/ResultModal"; | |
var randomNumber = require("random-number"); |