Skip to content

Commit

Permalink
add todas as fases, att jogos do dia 22/11
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielovski committed Nov 22, 2022
1 parent 9d9d66d commit dfd3530
Show file tree
Hide file tree
Showing 27 changed files with 1,836 additions and 51 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">NLW Copa</h1>

<p align="center">
Projeto realizado durante a trilha Explorer do evento NLW Copa da Rocketseat onde durante o evento foi feito um projeto mais simples, porém modifiquei algumas coisas e adicionei todos os jogos da fase de grupos da Copa do Mundo de 2022.
Projeto realizado durante a trilha Explorer do evento NLW Copa da Rocketseat onde durante o evento foi feito um projeto mais simples, porém modifiquei algumas coisas e adicionei todos os jogos da Copa do Mundo de 2022.
</p>

<p align="center">
Expand Down Expand Up @@ -31,7 +31,7 @@ Esse projeto foi desenvolvido com as seguintes tecnologias:

## 💻 Projeto

O Calendário da Copa é um projeto que lista os jogos da Fase de Grupos da Copa do Mundo de 2022.
O Calendário da Copa é um projeto que lista os jogos da Copa do Mundo de 2022.

## 🔖 Layout

Expand Down
11 changes: 11 additions & 0 deletions assets/a confirmar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/favicons/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added assets/favicons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/favicon.ico
Binary file not shown.
Binary file added assets/favicons/mstile-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/mstile-310x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/mstile-310x310.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/favicons/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,200 changes: 1,200 additions & 0 deletions assets/favicons/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions assets/favicons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Calend\u00e1rio da Copa",
"short_name": "Calend\u00e1rio da Copa",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#333333",
"background_color": "#333333",
"display": "standalone"
}
72 changes: 72 additions & 0 deletions final.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="pt-br">
<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" />

<title>Final - Calendário de Jogos - Copa 2022</title>
<meta
name="title"
content="Final - Calendário de Jogos - Copa 2022"
/>
<meta
name="description"
content="Fique por dentro dos jogos da Copa do Mundo 2022! Aqui você pode conferir os horários de todos os jogos e compartilhar com os amigos!"
/>

<!-- links (css, fontes) -->
<link rel="stylesheet" href="./style.css" />
<link rel="apple-touch-icon" sizes="180x180" href="./assets/favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicons/favicon-16x16.png" />
<link rel="manifest" href="./assets/favicons/site.webmanifest" />
<link rel="mask-icon" href="./assets/favicons/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#333333" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@700;900&display=swap"
rel="stylesheet"
/>
</head>

<!-- body -->
<body class="green">
<div id="app">
<header>
<img
src="./assets/copalogo.svg"
alt="Logo da Copa do Mundo 2022"
class="logo-copa"
/>
</header>
<div class="fases">
<a href="index.html"
><button class="botoes-fases">Fase de Grupos</button></a
>
<a href="oitavas.html"
><button class="botoes-fases">Oitavas de Final</button></a
>
<a href="quartas.html"
><button class="botoes-fases">Quartas de Final</button></a
>
<a href="semi.html"><button class="botoes-fases">Semifinais</button></a>
<button class="botao-selecionado">Final</button>
</div>
<main id="cards"></main>
</div>
<script src="./scripts/final.js"></script>
<script defer src="/_vercel/insights/script.js"></script>
<footer>
<p>
Desenvolvido por
<a href="https://github.com/gabrielovski" target="_blank">Gabriel</a>
durante o evento NLW Copa da
<a href="http://rocketseat.com.br" target="_blank">Rocketseat</a>!
</p>
</footer>
</body>
</html>
26 changes: 20 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@
<meta name="title" content="Calendário de Jogos - Copa 2022" />
<meta
name="description"
content="Fique por dentro dos jogos da Copa do Mundo 2022! Aqui você pode conferir os horários de todos os jogos, escolher o tema que você quiser e compartilhar com os amigos!"
content="Fique por dentro dos jogos da Copa do Mundo 2022! Aqui você pode conferir os horários de todos os jogos e compartilhar com os amigos!"
/>

<!-- links (css, fontes) -->
<link rel="stylesheet" href="./style.css" />
<link rel="shortcut icon" href="./assets/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" sizes="180x180" href="./assets/favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicons/favicon-16x16.png" />
<link rel="manifest" href="./assets/favicons/site.webmanifest" />
<link rel="mask-icon" href="./assets/favicons/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#333333" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
Expand All @@ -25,7 +31,7 @@
</head>

<!-- body -->
<body class="blue">
<body class="green">
<div id="app">
<header>
<img
Expand All @@ -34,12 +40,20 @@
class="logo-copa"
/>
</header>
<div class="div-botao">
<button id="botao">Mude o tema!</button>
<div class="fases">
<button class="botao-selecionado">Fase de Grupos</button>
<a href="oitavas.html"
><button class="botoes-fases">Oitavas de Final</button></a
>
<a href="quartas.html"
><button class="botoes-fases">Quartas de Final</button></a
>
<a href="semi.html"><button class="botoes-fases">Semifinais</button></a>
<a href="final.html"><button class="botoes-fases">Final</button></a>
</div>
<main id="cards"></main>
</div>
<script src="./main.js"></script>
<script src="./scripts/main.js"></script>
<script defer src="/_vercel/insights/script.js"></script>
<footer>
<p>
Expand Down
88 changes: 88 additions & 0 deletions oitavas.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="pt-br">
<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" />

<title>Oitavas de Final - Calendário de Jogos - Copa 2022</title>
<meta
name="title"
content="Oitavas de Final - Calendário de Jogos - Copa 2022"
/>
<meta
name="description"
content="Fique por dentro dos jogos da Copa do Mundo 2022! Aqui você pode conferir os horários de todos os jogos e compartilhar com os amigos!"
/>

<!-- links (css, fontes) -->
<link rel="stylesheet" href="./style.css" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="./assets/favicons/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/favicons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./assets/favicons/favicon-16x16.png"
/>
<link rel="manifest" href="./assets/favicons/site.webmanifest" />
<link
rel="mask-icon"
href="./assets/favicons/safari-pinned-tab.svg"
color="#5bbad5"
/>
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#333333" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@700;900&display=swap"
rel="stylesheet"
/>
</head>

<!-- body -->
<body class="green">
<div id="app">
<header>
<img
src="./assets/copalogo.svg"
alt="Logo da Copa do Mundo 2022"
class="logo-copa"
/>
</header>
<div class="fases">
<a href="index.html"
><button class="botoes-fases">Fase de Grupos</button></a
>
<button class="botao-selecionado">Oitavas de Final</button>
<a href="quartas.html"
><button class="botoes-fases">Quartas de Final</button></a
>
<a href="semi.html"><button class="botoes-fases">Semifinais</button></a>
<a href="final.html"><button class="botoes-fases">Final</button></a>
</div>
<main id="cards"></main>
</div>
<script src="./scripts/oitavas.js"></script>
<script defer src="/_vercel/insights/script.js"></script>
<footer>
<p>
Desenvolvido por
<a href="https://github.com/gabrielovski" target="_blank">Gabriel</a>
durante o evento NLW Copa da
<a href="http://rocketseat.com.br" target="_blank">Rocketseat</a>!
</p>
</footer>
</body>
</html>
65 changes: 65 additions & 0 deletions quartas.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="pt-br">
<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" />

<title>Quartas de Final - Calendário de Jogos - Copa 2022</title>
<meta name="title" content="Quartas de Final - Calendário de Jogos - Copa 2022" />
<meta
name="description"
content="Fique por dentro dos jogos da Copa do Mundo 2022! Aqui você pode conferir os horários de todos os jogos e compartilhar com os amigos!"
/>

<!-- links (css, fontes) -->
<link rel="stylesheet" href="./style.css" />
<link rel="apple-touch-icon" sizes="180x180" href="./assets/favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicons/favicon-16x16.png" />
<link rel="manifest" href="./assets/favicons/site.webmanifest" />
<link rel="mask-icon" href="./assets/favicons/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#333333" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@700;900&display=swap"
rel="stylesheet"
/>
</head>

<!-- body -->
<body class="green">
<div id="app">
<header>
<img
src="./assets/copalogo.svg"
alt="Logo da Copa do Mundo 2022"
class="logo-copa"
/>
</header>
<div class="fases">
<a href="index.html"
><button class="botoes-fases">Fase de Grupos</button></a
>
<a href="oitavas.html"><button class="botoes-fases">Oitavas de Final</button></a>
<button class="botao-selecionado">Quartas de Final</button>
<a href="semi.html"><button class="botoes-fases">Semifinais</button></a>
<a href="final.html"><button class="botoes-fases">Final</button></a>
</div>
<main id="cards"></main>
</div>
<script src="./scripts/quartas.js"></script>
<script defer src="/_vercel/insights/script.js"></script>
<footer>
<p>
Desenvolvido por
<a href="https://github.com/gabrielovski" target="_blank">Gabriel</a>
durante o evento NLW Copa da
<a href="http://rocketseat.com.br" target="_blank">Rocketseat</a>!
</p>
</footer>
</body>
</html>
41 changes: 41 additions & 0 deletions scripts/final.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
function createGame(player1, hour, player2) {
let player1alt = player1.slice(-1) === "a" ? "da" : "do"
let player2alt = player2.slice(-1) === "a" ? "da" : "do"
return `
<li>
<div class="jogo">
<img src="./assets/${player1}.svg" alt="Bandeira ${player1alt} ${player1}" />
<strong>${hour}</strong>
<img src="./assets/${player2}.svg" alt="Bandeira ${player2alt} ${player2}" />
</div>
</li>
<div class="nome-times">
<h1>${player1}</h1>
<h1>${player2}</h1>
</div>
`
}

let delay = -0.15
function createCard(date, day, games, finished) {
delay = delay + 0.15
return `
<div class="card" style="animation-delay: ${delay}s">
<h2>${date} <span>${day}</span></h2>
<div class="finalizado">
<h3>${finished}</h3>
</div>
<ul>
${games}
</ul>
</div>
`
}

document.querySelector("#cards").innerHTML =
createCard(
"18/12",
"domingo",
createGame("a confirmar", "12:00", "a confirmar"),
"a confirmar"
)
Loading

1 comment on commit dfd3530

@vercel
Copy link

@vercel vercel bot commented on dfd3530 Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.