diff --git a/gatsby-browser.js b/gatsby-browser.js
index b1e5c31..b705a5e 100644
--- a/gatsby-browser.js
+++ b/gatsby-browser.js
@@ -1,3 +1,5 @@
+import "./src/styles/global.css"
+
/**
* Implement Gatsby's Browser APIs in this file.
*
diff --git a/gatsby-config.js b/gatsby-config.js
index 999bd3d..5892477 100644
--- a/gatsby-config.js
+++ b/gatsby-config.js
@@ -1,8 +1,8 @@
module.exports = {
siteMetadata: {
- title: `Gatsby Default Starter`,
- description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
- author: `@gatsbyjs`,
+ title: `QUIZZZES`,
+ description: `Take football transfer quizes, guess players based on the clubs they have been and beat your friends to show your true power!`,
+ author: `@anmol5varma`,
},
plugins: [
`gatsby-plugin-react-helmet`,
diff --git a/getTeamLogoMapping.js b/getTeamLogoMapping.js
new file mode 100644
index 0000000..2659965
--- /dev/null
+++ b/getTeamLogoMapping.js
@@ -0,0 +1,34 @@
+// const axios = require('axios');
+
+// const leagueId = [
+// 4328, // English Premier League
+// 4331, // German Bundesliga
+// 4332, // Italian Serie A
+// 4334, // French Ligue 1
+// 4335, // Spanish La Liga
+// 4344, // Portuguese Primeira Liga
+// 4346, // American Major League Soccer
+// 4351, // Brazilian Brasileirao
+// 4359 // Chinese Super League
+// ]
+
+// const API_KEY = 1
+
+// Promise.all(
+// leagueId.map(async lid => {
+// const { data: { teams: teamList } } = await axios.get(`https://www.thesportsdb.com/api/v1/json/${API_KEY}/lookup_all_teams.php?id=${lid}`);
+// return teamList.map(({ strTeam, strTeamBadge }) => ({
+// name: strTeam.toLowerCase(),
+// logo: strTeamBadge
+// }))
+// })
+// ).then(parsedTeamList => console.log(JSON.stringify(Array.prototype.concat.apply([], parsedTeamList))))
+
+const abc = require("./src/data/team-logo.json")
+
+const ans = {};
+
+abc.map(({ name, logo }) => ans[name] = logo);
+
+console.log(JSON.stringify(ans));
+
diff --git a/package-lock.json b/package-lock.json
index 9440543..401ac75 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12840,6 +12840,14 @@
"prop-types": "^15.6.2"
}
},
+ "react-countdown-circle-timer": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/react-countdown-circle-timer/-/react-countdown-circle-timer-1.1.1.tgz",
+ "integrity": "sha512-wt9traVc4Dw4fFKNkXcgd7Ik6J8O8FnEEm8o+ttGGPenLz2EnakhWHB4z48h1WC07HJJDIOpTUnNtjwT12ihOQ==",
+ "requires": {
+ "use-elapsed-time": "^1.1.5"
+ }
+ },
"react-dev-utils": {
"version": "4.2.3",
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-4.2.3.tgz",
@@ -13138,6 +13146,14 @@
"resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
"integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
},
+ "react-particles-js": {
+ "version": "2.7.1",
+ "resolved": "https://registry.npmjs.org/react-particles-js/-/react-particles-js-2.7.1.tgz",
+ "integrity": "sha512-H3lnlcnc35HRismahWl8n/1IBNvP1u78r1YdS+QigDYwGkv4Bxqjdp3qLkQOkQnGLzaO5iu+Z4TWnyLVxOKPtA==",
+ "requires": {
+ "lodash": "^4.17.11"
+ }
+ },
"react-reconciler": {
"version": "0.24.0",
"resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.24.0.tgz",
@@ -15752,6 +15768,11 @@
"resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz",
"integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ=="
},
+ "use-elapsed-time": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/use-elapsed-time/-/use-elapsed-time-1.1.5.tgz",
+ "integrity": "sha512-GBi12dcko+IzRnxd9/3xd4SyZVK4z35Bs2heo1g6vOz/l7fo2cOdDUf8cjZP0blekrVAq7hnZxco5jnFcb6EFg=="
+ },
"utif": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/utif/-/utif-2.0.1.tgz",
diff --git a/package.json b/package.json
index dac7673..181e487 100644
--- a/package.json
+++ b/package.json
@@ -15,10 +15,13 @@
"gatsby-transformer-sharp": "^2.3.13",
"prop-types": "^15.7.2",
"react": "^16.12.0",
+ "react-countdown-circle-timer": "^1.1.1",
"react-dom": "^16.12.0",
- "react-helmet": "^5.2.1"
+ "react-helmet": "^5.2.1",
+ "react-particles-js": "^2.7.1"
},
"devDependencies": {
+ "axios": "^0.19.2",
"prettier": "^1.19.1"
},
"keywords": [
diff --git a/src/components/footer.js b/src/components/footer.js
new file mode 100644
index 0000000..4364b32
--- /dev/null
+++ b/src/components/footer.js
@@ -0,0 +1,17 @@
+import PropTypes from "prop-types"
+import React from "react"
+
+const Footer = () => (
+
+)
+
+export default Footer
diff --git a/src/components/header.js b/src/components/header.js
index 8990b7e..4c1e51b 100644
--- a/src/components/header.js
+++ b/src/components/header.js
@@ -2,31 +2,35 @@ import { Link } from "gatsby"
import PropTypes from "prop-types"
import React from "react"
+import Logo from "../images/logo.png"
+
const Header = ({ siteTitle }) => (
-
-
- {siteTitle}
-
-
+
+
+
+ {/*
+
+
+
*/}
)
diff --git a/src/components/image.js b/src/components/image.js
deleted file mode 100644
index e61edb6..0000000
--- a/src/components/image.js
+++ /dev/null
@@ -1,32 +0,0 @@
-import React from "react"
-import { useStaticQuery, graphql } from "gatsby"
-import Img from "gatsby-image"
-
-/*
- * This component is built using `gatsby-image` to automatically serve optimized
- * images with lazy loading and reduced file sizes. The image is loaded using a
- * `useStaticQuery`, which allows us to load the image from directly within this
- * component, rather than having to pass the image data down from pages.
- *
- * For more information, see the docs:
- * - `gatsby-image`: https://gatsby.dev/gatsby-image
- * - `useStaticQuery`: https://www.gatsbyjs.org/docs/use-static-query/
- */
-
-const Image = () => {
- const data = useStaticQuery(graphql`
- query {
- placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) {
- childImageSharp {
- fluid(maxWidth: 300) {
- ...GatsbyImageSharpFluid
- }
- }
- }
- }
- `)
-
- return
-}
-
-export default Image
diff --git a/src/components/layout.css b/src/components/layout.css
index b6f6332..bbb71f3 100644
--- a/src/components/layout.css
+++ b/src/components/layout.css
@@ -619,4 +619,4 @@ pre tt:after {
html {
font-size: 100%;
}
-}
+}
\ No newline at end of file
diff --git a/src/components/layout.js b/src/components/layout.js
index 0359ea6..9746035 100644
--- a/src/components/layout.js
+++ b/src/components/layout.js
@@ -8,8 +8,10 @@
import React from "react"
import PropTypes from "prop-types"
import { useStaticQuery, graphql } from "gatsby"
+import Particles from 'react-particles-js';
import Header from "./header"
+import Footer from "./footer"
import "./layout.css"
const Layout = ({ children }) => {
@@ -26,20 +28,48 @@ const Layout = ({ children }) => {
return (
<>
-
+ params={{
+ particles: {
+ color: {
+ value: "#2b8a9d"
+ },
+ size: {
+ value: "2"
+ },
+ number: {
+ value: "150"
+ },
+ line_linked: {
+ enable: {
+ auto: true
+ },
+ distance: "150",
+ color: "#2b8a9d",
+ opacity: "0.4",
+ width: "1"
+ }
+ },
+ interactivity: {
+ events: {
+ onhover: {
+ enable: true,
+ mode: "repulse"
+ }
+ }
+ }
+ }}
+ />
+
{children}
-
+
>
)
}
diff --git a/src/constants/config.js b/src/constants/config.js
new file mode 100644
index 0000000..92f510e
--- /dev/null
+++ b/src/constants/config.js
@@ -0,0 +1,7 @@
+const NUMBER_OF_QUESTIONS = 10
+const TIME_FOR_EACH_QUESTION = 15
+
+export default {
+ NUMBER_OF_QUESTIONS,
+ TIME_FOR_EACH_QUESTION
+}
\ No newline at end of file
diff --git a/src/images/home.svg b/src/images/home.svg
new file mode 100644
index 0000000..04f59a1
--- /dev/null
+++ b/src/images/home.svg
@@ -0,0 +1,50 @@
+
+
+
+
diff --git a/src/images/logo.png b/src/images/logo.png
new file mode 100644
index 0000000..14d4ad0
Binary files /dev/null and b/src/images/logo.png differ
diff --git a/src/images/refresh.svg b/src/images/refresh.svg
new file mode 100644
index 0000000..5bbbcc6
--- /dev/null
+++ b/src/images/refresh.svg
@@ -0,0 +1,41 @@
+
+
+
+
diff --git a/src/images/reload.png b/src/images/reload.png
new file mode 100644
index 0000000..99dda5f
Binary files /dev/null and b/src/images/reload.png differ
diff --git a/src/jsons/players b/src/jsons/players
new file mode 100644
index 0000000..9461b18
--- /dev/null
+++ b/src/jsons/players
@@ -0,0 +1,32 @@
+Morarta
+Griezman
+Ronaldo
+Hiugain
+Salah
+Kroos
+Alexis sanchez
+Neymar
+Marco balottie
+Zalatan
+Lampard
+David luiz
+Xabi
+Khedira
+Robben
+Mandukic
+Torres
+Eto
+Van persie
+Fabregas
+Ozil
+Lukaku
+Ronaldinho
+Zidane
+Kaka
+Chicharito
+Hazard
+Courtios
+Gotze
+Aubameung
+Mikhitarian
+Gundohan
diff --git a/src/jsons/team-logo.json b/src/jsons/team-logo.json
new file mode 100644
index 0000000..c86d491
--- /dev/null
+++ b/src/jsons/team-logo.json
@@ -0,0 +1,180 @@
+{
+ "arsenal": "https://www.thesportsdb.com/images/media/team/badge/a1af2i1557005128.png",
+ "aston villa": "https://www.thesportsdb.com/images/media/team/badge/aofmzk1565427581.png",
+ "bournemouth": "https://www.thesportsdb.com/images/media/team/badge/y08nak1534071116.png",
+ "brighton": "https://www.thesportsdb.com/images/media/team/badge/ywypts1448810904.png",
+ "burnley": "https://www.thesportsdb.com/images/media/team/badge/sqrttx1448811003.png",
+ "chelsea": "https://www.thesportsdb.com/images/media/team/badge/yvwvtu1448813215.png",
+ "crystal palace": "https://www.thesportsdb.com/images/media/team/badge/rytxyw1448813222.png",
+ "everton": "https://www.thesportsdb.com/images/media/team/badge/eqayrf1523184794.png",
+ "leicester": "https://www.thesportsdb.com/images/media/team/badge/xtxwtu1448813356.png",
+ "liverpool": "https://www.thesportsdb.com/images/media/team/badge/uvxuqq1448813372.png",
+ "man city": "https://www.thesportsdb.com/images/media/team/badge/vwpvry1467462651.png",
+ "man united": "https://www.thesportsdb.com/images/media/team/badge/xzqdr11517660252.png",
+ "newcastle": "https://www.thesportsdb.com/images/media/team/badge/rqvwxt1448813396.png",
+ "norwich": "https://www.thesportsdb.com/images/media/team/badge/uqtwxx1448813449.png",
+ "sheffield united": "https://www.thesportsdb.com/images/media/team/badge/qutsut1424032614.png",
+ "southampton": "https://www.thesportsdb.com/images/media/team/badge/qusxss1448813481.png",
+ "tottenham": "https://www.thesportsdb.com/images/media/team/badge/rxxqtp1448813512.png",
+ "watford": "https://www.thesportsdb.com/images/media/team/badge/rsuswy1448813519.png",
+ "west ham": "https://www.thesportsdb.com/images/media/team/badge/yutyxs1467459956.png",
+ "wolves": "https://www.thesportsdb.com/images/media/team/badge/qwvuqy1448811552.png",
+ "augsburg": "https://www.thesportsdb.com/images/media/team/badge/xqyyvq1473453233.png",
+ "bayern munich": "https://www.thesportsdb.com/images/media/team/badge/sl3wze1557006052.png",
+ "dortmund": "https://www.thesportsdb.com/images/media/team/badge/qtsqtx1473453261.png",
+ "ein frankfurt": "https://www.thesportsdb.com/images/media/team/badge/rurwpy1473453269.png",
+ "fc koln": "https://www.thesportsdb.com/images/media/team/badge/2j1sc91566049407.png",
+ "fortuna düsseldorf": "https://www.thesportsdb.com/images/media/team/badge/rsruww1473454140.png",
+ "freiburg": "https://www.thesportsdb.com/images/media/team/badge/urwtup1473453288.png",
+ "hertha": "https://www.thesportsdb.com/images/media/team/badge/qpsryu1473453350.png",
+ "hoffenheim": "https://www.thesportsdb.com/images/media/team/badge/qusuxu1473453358.png",
+ "leverkusen": "https://www.thesportsdb.com/images/media/team/badge/wuvsup1473453369.png",
+ "m'gladbach": "https://www.thesportsdb.com/images/media/team/badge/sysurw1473453380.png",
+ "mainz": "https://www.thesportsdb.com/images/media/team/badge/fhm9v51552134916.png",
+ "paderborn": "https://www.thesportsdb.com/images/media/team/badge/kddvva1566048058.png",
+ "rasenballsport leipzig": "https://www.thesportsdb.com/images/media/team/badge/myxmk01534875577.png",
+ "schalke 04": "https://www.thesportsdb.com/images/media/team/badge/qqutyp1473453400.png",
+ "union berlin": "https://www.thesportsdb.com/images/media/team/badge/uxxpvw1426865455.png",
+ "werder bremen": "https://www.thesportsdb.com/images/media/team/badge/uurwqy1473453408.png",
+ "wolfsburg": "https://www.thesportsdb.com/images/media/team/badge/yxtrxy1473453416.png",
+ "atalanta": "https://www.thesportsdb.com/images/media/team/badge/lrvxg71534873930.png",
+ "bologna": "https://www.thesportsdb.com/images/media/team/badge/ytytyp1448806245.png",
+ "brescia": "https://www.thesportsdb.com/images/media/team/badge/k0qhbd1566756266.png",
+ "cagliari": "https://www.thesportsdb.com/images/media/team/badge/wvsvxt1447534471.png",
+ "fiorentina": "https://www.thesportsdb.com/images/media/team/badge/twwqss1448806409.png",
+ "genoa": "https://www.thesportsdb.com/images/media/team/badge/rqqvwv1448806429.png",
+ "inter": "https://www.thesportsdb.com/images/media/team/badge/xqyvuy1448806439.png",
+ "juventus": "https://www.thesportsdb.com/images/media/team/badge/dd6d6q1535186317.png",
+ "lazio": "https://www.thesportsdb.com/images/media/team/badge/rwqyvs1448806608.png",
+ "lecce": "https://www.thesportsdb.com/images/media/team/badge/j4vznr1567365249.png",
+ "milan": "https://www.thesportsdb.com/images/media/team/badge/wvspur1448806617.png",
+ "napoli": "https://www.thesportsdb.com/images/media/team/badge/yqtpsq1448806624.png",
+ "parma calcio 1913": "https://www.thesportsdb.com/images/media/team/badge/meaifa1535187178.png",
+ "roma": "https://www.thesportsdb.com/images/media/team/badge/xqpqpq1448806641.png",
+ "sampdoria": "https://www.thesportsdb.com/images/media/team/badge/wsqyvq1448806793.png",
+ "sassuolo": "https://www.thesportsdb.com/images/media/team/badge/xystvp1448806138.png",
+ "spal 2013": "https://www.thesportsdb.com/images/media/team/badge/wttptv1426703169.png",
+ "torino": "https://www.thesportsdb.com/images/media/team/badge/xxprty1448806802.png",
+ "udinese": "https://www.thesportsdb.com/images/media/team/badge/vwvstr1448806811.png",
+ "verona": "https://www.thesportsdb.com/images/media/team/badge/ht7pwm1566757149.png",
+ "amiens": "https://www.thesportsdb.com/images/media/team/badge/yvxwwq1471876116.png",
+ "angers": "https://www.thesportsdb.com/images/media/team/badge/twtppr1426871974.png",
+ "bordeaux": "https://www.thesportsdb.com/images/media/team/badge/wtwvyx1473504715.png",
+ "brest": "https://www.thesportsdb.com/images/media/team/badge/xppypp1429573992.png",
+ "dijon": "https://www.thesportsdb.com/images/media/team/badge/viin5f1547898121.png",
+ "lille": "https://www.thesportsdb.com/images/media/team/badge/2giize1534005340.png",
+ "lyon": "https://www.thesportsdb.com/images/media/team/badge/vwtvyt1473504756.png",
+ "marseille": "https://www.thesportsdb.com/images/media/team/badge/uutsyt1473504764.png",
+ "metz": "https://www.thesportsdb.com/images/media/team/badge/qi3kbg1565469380.png",
+ "monaco": "https://www.thesportsdb.com/images/media/team/badge/xwxsxq1473504775.png",
+ "montpellier": "https://www.thesportsdb.com/images/media/team/badge/spxtvu1473504783.png",
+ "nantes": "https://www.thesportsdb.com/images/media/team/badge/q1fsb91569264657.png",
+ "nice": "https://www.thesportsdb.com/images/media/team/badge/qwvtvt1473504800.png",
+ "nimes": "https://www.thesportsdb.com/images/media/team/badge/7ghm2i1547892868.png",
+ "paris sg": "https://www.thesportsdb.com/images/media/team/badge/rwqrrq1473504808.png",
+ "rennes": "https://www.thesportsdb.com/images/media/team/badge/ypturx1473504818.png",
+ "st etienne": "https://www.thesportsdb.com/images/media/team/badge/lqc1031518124880.png",
+ "stade de reims": "https://www.thesportsdb.com/images/media/team/badge/wqxupr1473505457.png",
+ "strasbourg": "https://www.thesportsdb.com/images/media/team/badge/yuxtyy1464540071.png",
+ "toulouse": "https://www.thesportsdb.com/images/media/team/badge/3kqxs61547893229.png",
+ "alaves": "https://www.thesportsdb.com/images/media/team/badge/vwqswq1420325494.png",
+ "ath bilbao": "https://www.thesportsdb.com/images/media/team/badge/1gs1c31549394822.png",
+ "ath madrid": "https://www.thesportsdb.com/images/media/team/badge/big56a1490135063.png",
+ "barcelona": "https://www.thesportsdb.com/images/media/team/badge/xqwpup1473502878.png",
+ "betis": "https://www.thesportsdb.com/images/media/team/badge/rrxvww1473502887.png",
+ "celta vigo": "https://www.thesportsdb.com/images/media/team/badge/rruxwu1473502896.png",
+ "eibar": "https://www.thesportsdb.com/images/media/team/badge/ytrxqv1473502905.png",
+ "espanol": "https://www.thesportsdb.com/images/media/team/badge/rtyurs1473502916.png",
+ "getafe": "https://www.thesportsdb.com/images/media/team/badge/2l9ie91549394595.png",
+ "granada": "https://www.thesportsdb.com/images/media/team/badge/vvprwu1473502932.png",
+ "leganes": "https://www.thesportsdb.com/images/media/team/badge/qtssvx1420500462.png",
+ "levante": "https://www.thesportsdb.com/images/media/team/badge/xwtxsx1473503739.png",
+ "mallorca": "https://www.thesportsdb.com/images/media/team/badge/ssptsx1473503730.png",
+ "osasuna": "https://www.thesportsdb.com/images/media/team/badge/rvspvt1473502960.png",
+ "real madrid": "https://www.thesportsdb.com/images/media/team/badge/vwvwrw1473502969.png",
+ "sevilla": "https://www.thesportsdb.com/images/media/team/badge/vpsqqx1473502977.png",
+ "sociedad": "https://www.thesportsdb.com/images/media/team/badge/vptvpr1473502986.png",
+ "valencia": "https://www.thesportsdb.com/images/media/team/badge/yxwsqp1473503062.png",
+ "valladolid": "https://www.thesportsdb.com/images/media/team/badge/rvytvt1473503711.png",
+ "villarreal": "https://www.thesportsdb.com/images/media/team/badge/vrypqy1473503073.png",
+ "aves": "https://www.thesportsdb.com/images/media/team/badge/9yw8301512996625.png",
+ "belenenses": "https://www.thesportsdb.com/images/media/team/badge/7po4e21563652867.png",
+ "benfica": "https://www.thesportsdb.com/images/media/team/badge/7t684j1520879174.png",
+ "boavista": "https://www.thesportsdb.com/images/media/team/badge/xuuupr1471876737.png",
+ "braga": "https://www.thesportsdb.com/images/media/team/badge/vpxupr1471876624.png",
+ "f.c. paços de ferreira": "https://www.thesportsdb.com/images/media/team/badge/qstpuw1471878342.png",
+ "famalicao": "https://www.thesportsdb.com/images/media/team/badge/a3f4er1563653256.png",
+ "fc porto": "https://www.thesportsdb.com/images/media/team/badge/vtwwwx1471876518.png",
+ "gil vicente": "https://www.thesportsdb.com/images/media/team/badge/vqxpxw1471878231.png",
+ "guimaraes": "https://www.thesportsdb.com/images/media/team/badge/uvrsxw1471877599.png",
+ "maritimo": "https://www.thesportsdb.com/images/media/team/badge/ttrspv1471878613.png",
+ "moreirense": "https://www.thesportsdb.com/images/media/team/badge/yrquxu1471878153.png",
+ "portimonense": "https://www.thesportsdb.com/images/media/team/badge/sjvp7c1512822011.png",
+ "rio ave": "https://www.thesportsdb.com/images/media/team/badge/wrvqsx1471878073.png",
+ "santa clara": "https://www.thesportsdb.com/images/media/team/badge/b45ikv1579636177.png",
+ "sporting cp": "https://www.thesportsdb.com/images/media/team/badge/svxpsx1471876338.png",
+ "tondela": "https://www.thesportsdb.com/images/media/team/badge/yvyptv1450642524.png",
+ "vitoria setubal": "https://www.thesportsdb.com/images/media/team/badge/ursyxy1471877478.png",
+ "atlanta united": "https://www.thesportsdb.com/images/media/team/badge/mfqsr91492451442.png",
+ "chicago fire": "https://www.thesportsdb.com/images/media/team/badge/kjhf3o1579347879.png",
+ "colorado rapids": "https://www.thesportsdb.com/images/media/team/badge/uppupv1473536412.png",
+ "columbus crew": "https://www.thesportsdb.com/images/media/team/badge/ytuywt1420777938.png",
+ "dc united": "https://www.thesportsdb.com/images/media/team/badge/uwvsyt1467462609.png",
+ "fc cincinnati": "https://www.thesportsdb.com/images/media/team/badge/47ve8t1555084948.png",
+ "fc dallas": "https://www.thesportsdb.com/images/media/team/badge/vwpyuy1473536421.png",
+ "houston dynamo": "https://www.thesportsdb.com/images/media/team/badge/qwsvsu1473536429.png",
+ "inter miami": "https://www.thesportsdb.com/images/media/team/badge/b208gd1578066811.png",
+ "l.a. galaxy": "https://www.thesportsdb.com/images/media/team/badge/ysyysr1420227188.png",
+ "los angeles fc": "https://www.thesportsdb.com/images/media/team/badge/vhq16x1516042594.png",
+ "minnesota united": "https://www.thesportsdb.com/images/media/team/badge/vl67t41492453433.png",
+ "montreal impact": "https://www.thesportsdb.com/images/media/team/badge/qpyxsr1473536442.png",
+ "nashville sc": "https://www.thesportsdb.com/images/media/team/badge/8937bt1578067017.png",
+ "new england rev.": "https://www.thesportsdb.com/images/media/team/badge/hc87qv1548706452.png",
+ "new york city": "https://www.thesportsdb.com/images/media/team/badge/li4y2o1534575820.png",
+ "new york red bulls": "https://www.thesportsdb.com/images/media/team/badge/suytvy1473536462.png",
+ "orlando city": "https://www.thesportsdb.com/images/media/team/badge/qyppxw1423832326.png",
+ "philadelphia union": "https://www.thesportsdb.com/images/media/team/badge/qtwprq1473536474.png",
+ "portland timbers": "https://www.thesportsdb.com/images/media/team/badge/skm30j1557953559.png",
+ "real salt lake": "https://www.thesportsdb.com/images/media/team/badge/kkjlfa1556488022.png",
+ "san jose earthquakes": "https://www.thesportsdb.com/images/media/team/badge/xyrqqt1420781048.png",
+ "seattle sounders fc": "https://www.thesportsdb.com/images/media/team/badge/vpyprt1473536493.png",
+ "sporting kansas city": "https://www.thesportsdb.com/images/media/team/badge/tqupxw1473536504.png",
+ "toronto fc": "https://www.thesportsdb.com/images/media/team/badge/rsxyrr1473536512.png",
+ "vancouver whitecaps": "https://www.thesportsdb.com/images/media/team/badge/tpwxpy1473536521.png",
+ "atletico go": "https://www.thesportsdb.com/images/media/team/badge/sqxqxx1464886547.png",
+ "atletico mg": "https://www.thesportsdb.com/images/media/team/badge/tysuuw1473538009.png",
+ "atletico pr": "https://www.thesportsdb.com/images/media/team/badge/irzu1u1554237406.png",
+ "bahia": "https://www.thesportsdb.com/images/media/team/badge/xuvtsv1473539308.png",
+ "botafogo rj": "https://www.thesportsdb.com/images/media/team/badge/txxyyx1473538026.png",
+ "bragantino": "https://www.thesportsdb.com/images/media/team/badge/5g98nt1580121652.png",
+ "ceara": "https://www.thesportsdb.com/images/media/team/badge/rxxvyp1464886685.png",
+ "corinthians": "https://www.thesportsdb.com/images/media/team/badge/vvuvps1473538042.png",
+ "coritiba": "https://www.thesportsdb.com/images/media/team/badge/ywwsyu1473538050.png",
+ "flamengo": "https://www.thesportsdb.com/images/media/team/badge/syptwx1473538074.png",
+ "fluminense": "https://www.thesportsdb.com/images/media/team/badge/stvvwp1473538082.png",
+ "fortaleza": "https://www.thesportsdb.com/images/media/team/badge/tosmdr1532853458.png",
+ "goias": "https://www.thesportsdb.com/images/media/team/badge/xsrvwx1473539352.png",
+ "gremio": "https://www.thesportsdb.com/images/media/team/badge/uvpwyt1473538089.png",
+ "internacional": "https://www.thesportsdb.com/images/media/team/badge/yprvxx1473538097.png",
+ "palmeiras": "https://www.thesportsdb.com/images/media/team/badge/vsqwqp1473538105.png",
+ "santos fc": "https://www.thesportsdb.com/images/media/team/badge/wptwqt1473538119.png",
+ "sao paulo": "https://www.thesportsdb.com/images/media/team/badge/sxpupx1473538135.png",
+ "sport club do recife": "https://www.thesportsdb.com/images/media/team/badge/tyrbls1545421563.png",
+ "vasco da gama": "https://www.thesportsdb.com/images/media/team/badge/ywwrux1473539365.png",
+ "beijing guoan": "https://www.thesportsdb.com/images/media/team/badge/e5c3hq1563636824.png",
+ "beijing renhe": "https://www.thesportsdb.com/images/media/team/badge/28su0q1560762296.png",
+ "chongqing lifan": "https://www.thesportsdb.com/images/media/team/badge/nacgas1563637310.png",
+ "dalian yifang": "https://www.thesportsdb.com/images/media/team/badge/4gv9fe1583004521.png",
+ "guangzhou evergrande": "https://www.thesportsdb.com/images/media/team/badge/uxsrxx1448828008.png",
+ "guangzhou r&f f.c.": "https://www.thesportsdb.com/images/media/team/badge/0yhf0k1580938533.png",
+ "hebei cffc": "https://www.thesportsdb.com/images/media/team/badge/xxypsx1472763997.png",
+ "henan jianye": "https://www.thesportsdb.com/images/media/team/badge/pivrdb1580938543.png",
+ "jiangsu sainty": "https://www.thesportsdb.com/images/media/team/badge/jbyx881523902169.png",
+ "shandong luneng": "https://www.thesportsdb.com/images/media/team/badge/ywzixj1563636901.png",
+ "shanghai east asia fc": "https://www.thesportsdb.com/images/media/team/badge/6jgrxw1523902442.png",
+ "shanghai greenland shenhua": "https://www.thesportsdb.com/images/media/team/badge/i357vf1581447320.png",
+ "shenzhen fc": "https://www.thesportsdb.com/images/media/team/badge/09bfp41560762903.png",
+ "tianjin teda": "https://www.thesportsdb.com/images/media/team/badge/bn05wg1563637454.png",
+ "tianjin tianhai": "https://www.thesportsdb.com/images/media/team/badge/ar4tzs1563637134.png",
+ "wuhan zall": "https://www.thesportsdb.com/images/media/team/badge/kef3rr1560763047.png"
+}
\ No newline at end of file
diff --git a/src/jsons/transfer.json b/src/jsons/transfer.json
new file mode 100644
index 0000000..ead3caf
--- /dev/null
+++ b/src/jsons/transfer.json
@@ -0,0 +1,11 @@
+[
+ {
+ "player_name": "cristiano ronaldo",
+ "teams": [
+ "sporting cp",
+ "man united",
+ "real madrid",
+ "juventus"
+ ]
+ }
+]
\ No newline at end of file
diff --git a/src/pages/index.js b/src/pages/index.js
index 7eb6257..f5a3f4a 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -1,21 +1,100 @@
-import React from "react"
-import { Link } from "gatsby"
+import React, { Component } from "react"
+import { CountdownCircleTimer } from "react-countdown-circle-timer";
import Layout from "../components/layout"
-import Image from "../components/image"
import SEO from "../components/seo"
+import styles from "../styles/index.module.css"
+import Constants from "../constants/config"
+import data from "../jsons/transfer.json"
+import logo from "../jsons/team-logo.json"
-const IndexPage = () => (
-
-
- Hi people
- Welcome to your new Gatsby site.
- Now go build something great.
-
-
+const renderTime = value => {
+ if (value === 0) {
+ return
Too late...
;
+ }
+
+ return (
+
+
Remaining
+
{value}
+
seconds
-
Go to page 2
-
-)
+ );
+};
+
+class Index extends Component {
+ state = {
+ currentQuestion: 0
+ }
+
+ renderPage = () => (
+
+
+
+
+
+
+
+
Who am I?
+
+ {
+ data[this.state.currentQuestion].teams.map((name, index) => (
+
+ {index !== 0 && <>
>}
+
+
+ ))
+ }
+
+
[false, 1000]}
+ />
+
+ I am
+ input && input.focus()}
+ className={styles.input} type="text"
+ />
+
+
+
+ Next
+
+
+
+
+ )
+
+ goToNextQuestion = () => {
+ this.setState((prevState) => {
+ return {
+ currentQuestion: prevState.currentQuestion + 1
+ };
+ })
+ }
+
+ render() {
+ console.log(Constants);
+
+ return this.renderPage();
+ }
+}
-export default IndexPage
+export default Index
diff --git a/src/pages/page-2.js b/src/pages/page-2.js
deleted file mode 100644
index 666c23e..0000000
--- a/src/pages/page-2.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react"
-import { Link } from "gatsby"
-
-import Layout from "../components/layout"
-import SEO from "../components/seo"
-
-const SecondPage = () => (
-
-
- Hi from the second page
- Welcome to page 2
- Go back to the homepage
-
-)
-
-export default SecondPage
diff --git a/src/styles/global.css b/src/styles/global.css
new file mode 100644
index 0000000..f34276f
--- /dev/null
+++ b/src/styles/global.css
@@ -0,0 +1,42 @@
+.background{
+ display: flex;
+ flex-direction: column;
+ flex-grow: 1;
+ padding: 10px;
+ background: rgb(250, 250, 255);
+}
+#___gatsby > *{
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+ min-height: 100vh;
+}
+
+.header-icon{
+ height: 4vh;
+ width: auto;
+ margin: 0;
+ padding: 0 5px;
+ position: relative;
+ top: 50%;
+ transform: translateY(-50%);
+ filter: invert(100%);
+}
+.header-icon:hover{
+ filter: invert(0%);
+}
+
+.logo{
+ margin: 0;
+ height: 25px;
+}
+
+@media only screen and (max-width: 760px){
+ .background{
+ padding: 0;
+ background: #fff;
+ }
+ .particle-js{
+ display: none;
+ }
+ }
\ No newline at end of file
diff --git a/src/styles/index.module.css b/src/styles/index.module.css
new file mode 100644
index 0000000..4fc449e
--- /dev/null
+++ b/src/styles/index.module.css
@@ -0,0 +1,125 @@
+.wrapperBox{
+ margin: auto;
+ transform: translateY(10%);
+ background: #fff;
+ border-radius: 5px;
+ box-shadow: 0 4px 8px 0 #dddddd, 0 6px 20px 0 #dddddd;
+ max-width: 760px;
+ border: 1px solid #ddd;
+}
+
+.heading{
+ font-size: 25px;
+ font-weight: 600;
+ color: #2b8a9d;
+}
+
+.progressWrapper{
+ height: 100px;
+ border-bottom: 1px solid #ddd;
+ padding: 10px 20px;
+}
+
+.contentWrapper{
+ padding: 10px 20px;
+ font-family: Arial, Helvetica, sans-serif;
+ text-align: center;
+}
+
+.contentWrapper > *{
+ margin: 10px 0;
+}
+
+.logo{
+ display: flex;
+ align-items: center;
+}
+
+.logoWrapper{
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+}
+
+.inputWrapper{
+ text-align: center;
+ margin: 15px 0;
+ color: #2b8a9d;
+}
+
+.button{
+ background: #2b8a9d;
+ color: #fff;
+ text-align: center;
+ padding: 10px 30px;
+ display: inline-block;
+ border-radius: 20px;
+ margin: 20px 0;
+ cursor: pointer;
+}
+
+.input{
+ outline: none;
+ border: 0;
+ border-bottom: 2px solid #2b8a9d;
+ border-radius: 2px;
+ margin-left: 5px;
+}
+
+input::-webkit-calendar-picker-indicator {
+ display: none;
+}
+
+/* right arrow */
+.right {
+ width: 0;
+ height: 0;
+ border-top: 10px solid transparent;
+ border-left: 20px solid #2b8a9d;
+ border-bottom: 10px solid transparent;
+ margin-right: 15px;
+}
+
+.bar{
+ height: 3px;
+ width: 30px;
+ background: #2b8a9d;
+ margin-top: -1px;
+ margin-left: 20px;
+}
+
+/* Team logo */
+.teamLogo{
+ height: 10vh;
+ margin: 5px;
+ filter:drop-shadow(5px 5px 5px #666666);
+ -webkit-filter:drop-shadow(5px 5px 5px #666666);
+}
+
+/* Timer css */
+.timer {
+ font-family: "Montserrat";
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+.text {
+ color: #aaa;
+ font-size: 16px;
+}
+
+.value {
+ font-size: 20px;
+}
+
+@media only screen and (max-width: 760px){
+ .wrapperBox{
+ margin: auto;
+ background: #fff;
+ transform: translateY(0);
+ border: 0;
+ border-radius: 0;
+ box-shadow: none;
+ }
+}
\ No newline at end of file