Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZA2-Patou-Mabando-high-scores-react #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions challenge-high-score-tables/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Header from "./components/Header";
import Tables from "./components/Tables";

const App = () => {
return (
<div className="App">
<Header />
<Tables />
</div>
);
};

export default App;
25 changes: 25 additions & 0 deletions challenge-high-score-tables/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>High Score Table</title>
</head>

<body>
<h1>High Score Table</h1>
<!--
<div class="App">
<Header></Header>
<Tables />
</div>

<script src="App.js"></script>
<script src="index.js"></script>
<script src="scores.js"></script> -->
</body>

</html>
5 changes: 5 additions & 0 deletions challenge-high-score-tables/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import "./Index.css";
ReactDOM.render(<App />, document.querySelector("#root"));
104 changes: 71 additions & 33 deletions challenge-high-score-tables/scores.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,72 @@
let allCountryScores = [
{
name: "Ethiopia",
scores: [ {n: "Sub", s: 9990}, {n: "lucy", s: "4134234"}, {n: "DWH", s: 9999}, {n: "Hanif", s: 999999999} ]
},
{
name: "Scotland",
scores: [ {n: "groundkeeper willie", s: 4000}, {n: "Neill", s: 999999}, {n: "braveheart", s: -200}]
},{
name: "England",
scores: [ {n: "Jonny", s: 202020}, {n: "Chris", s: 202021}]
},{
name: "Brazil",
scores: [ {n: "Mozart", s: 999}]
},
{
name: "Colombia",
scores: [ {n: "Maria", s: 6000}, {n: "Melanie", s: "99999999"}, {n: "Ali", s: 5000}]
},
{
name: "Turkey",
scores: [ {n: "selim", s: 900 }, {n: "mahmut", s: 1000 }, {n: "morat", s: 999 } ]
},
{
name: "Iran",
scores: [ {n: "arosha", s: 5550 }, {n: "zahra", s: 3000 }, {n: "nader", s: 2000 }, {n: "Bani", s: 1999 } ]
},
{
name: "Bangladesh",
scores: [ {n: "rahman", s: 700200}, {n: "rayhan", s: 18238123}, {n: "ali", s: 5400000} ]
},
];

export default allCountryScores;
{
id: 1,
name: "Ethiopia",
scores: [
{ n: "Sub", s: 9990 },
{ n: "lucy", s: "4134234" },
{ n: "DWH", s: 9999 },
{ n: "Hanif", s: 999999999 },
],
},
{
id: 2,
name: "Scotland",
scores: [
{ n: "groundkeeper willie", s: 4000 },
{ n: "Neill", s: 999999 },
{ n: "braveheart", s: -200 },
],
},
{
id: 3,
name: "England",
scores: [
{ n: "Jonny", s: 202020 },
{ n: "Chris", s: 202021 },
],
},
{
name: "Brazil",
scores: [{ n: "Mozart", s: 999 }],
},
{
id: 4,
name: "Colombia",
scores: [
{ n: "Maria", s: 6000 },
{ n: "Melanie", s: "99999999" },
{ n: "Ali", s: 5000 },
],
},
{
id: 5,
name: "Turkey",
scores: [
{ n: "selim", s: 900 },
{ n: "mahmut", s: 1000 },
{ n: "morat", s: 999 },
],
},
{
id: 6,
name: "Iran",
scores: [
{ n: "arosha", s: 5550 },
{ n: "zahra", s: 3000 },
{ n: "nader", s: 2000 },
{ n: "Bani", s: 1999 },
],
},
{
id: 7,
name: "Bangladesh",
scores: [
{ n: "rahman", s: 700200 },
{ n: "rayhan", s: 18238123 },
{ n: "ali", s: 5400000 },
],
},
];

export default allCountryScores;
27 changes: 27 additions & 0 deletions challenge-high-score-tables/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@font-face {
font-family: "Retro";
src: url(./Retro\ Gaming.ttf);
}

.App {
font-family: "Retro";
}

button {
width: 200px;
background-color: black;
height: 50px;
color: white;
font-family: "Retro";
font-size: 2rem;
cursor: pointer;
}

span {
color: brown;
}

h1{
font-family: "Retro";
color: rgb(26, 63, 63);
}