-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: basic layout with timer and background
- Loading branch information
Anmol Varma
committed
Mar 29, 2020
1 parent
eb53f21
commit ca0397b
Showing
22 changed files
with
724 additions
and
94 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import "./src/styles/global.css" | ||
|
||
/** | ||
* Implement Gatsby's Browser APIs in this file. | ||
* | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import PropTypes from "prop-types" | ||
import React from "react" | ||
|
||
const Footer = () => ( | ||
<footer | ||
style={{ | ||
background: `#2b8a9d`, | ||
color: `#fff`, | ||
padding: `2px 10px`, | ||
textAlign: `center` | ||
}} | ||
> | ||
© {new Date().getFullYear()}, Built with Love ♥ | ||
</footer> | ||
) | ||
|
||
export default Footer |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -619,4 +619,4 @@ pre tt:after { | |
html { | ||
font-size: 100%; | ||
} | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const NUMBER_OF_QUESTIONS = 10 | ||
const TIME_FOR_EACH_QUESTION = 15 | ||
|
||
export default { | ||
NUMBER_OF_QUESTIONS, | ||
TIME_FOR_EACH_QUESTION | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.