-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
170 lines (160 loc) · 7.16 KB
/
Copy pathindex.html
File metadata and controls
170 lines (160 loc) · 7.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Capacitação de Git e GitHub — andradas.dev</title>
<meta name="description" content="Guia prático da capacitação de Git e GitHub para a liga acadêmica: conta e 2FA, Git, GitHub CLI, branches, conflitos, Pull Requests, GitHub Pages, GitHub Actions, Git LFS e assinatura de commits, em duas horas.">
<meta name="author" content="Ronivaldo Domingues de Andrade">
<!-- Prévia ao compartilhar o link (LinkedIn, WhatsApp, redes) -->
<meta property="og:type" content="website">
<meta property="og:title" content="Capacitação de Git e GitHub">
<meta property="og:description" content="Guia, slides e exercícios de Git e GitHub, do primeiro commit ao GitHub Actions, com instalação no Windows, no Linux e no macOS.">
<meta property="og:url" content="https://andradasdev.github.io/github/">
<meta property="og:image" content="https://andradasdev.github.io/github/assets/card.png">
<meta property="og:image:width" content="1280">
<meta property="og:image:height" content="640">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Crect%20width='32'%20height='32'%20rx='6'%20fill='%231E1647'/%3E%3Cpath%20d='M4%2022h24'%20stroke='%23fff'%20stroke-width='2'/%3E%3Cpath%20d='M8%2022c3%200%202-10%206-10h4c4%200%203%2010%206%2010'%20fill='none'%20stroke='%23FFFF00'%20stroke-width='2'/%3E%3Ccircle%20cx='5.5'%20cy='22'%20r='2.6'%20fill='%231E1647'%20stroke='%23fff'%20stroke-width='2'/%3E%3Ccircle%20cx='16'%20cy='12'%20r='2.6'%20fill='%231E1647'%20stroke='%23FFFF00'%20stroke-width='2'/%3E%3Ccircle%20cx='25'%20cy='22'%20r='3'%20fill='%23FFFF00'/%3E%3C/svg%3E">
<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=Lexend:wght@400;600;700&display=swap" rel="stylesheet">
<style>
/* Paleta da for_code */
:root {
--roxo-escuro: #1E1647;
--roxo-claro: #614AD3;
--amarelo: #FFFF00;
--fundo: #f4f4f7;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
display: flex;
flex-direction: column;
background: var(--fundo);
color: var(--roxo-escuro);
font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, "Helvetica Neue", Arial, sans-serif;
}
header {
display: flex;
flex-wrap: wrap;
gap: .75rem 1rem;
align-items: center;
justify-content: space-between;
padding: .75rem 1.25rem;
background: var(--roxo-escuro);
color: #fff;
border-bottom: 3px solid var(--roxo-claro);
position: relative;
z-index: 2;
}
header .titulo { display: flex; flex-direction: column; gap: .1rem; }
header .marca { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--amarelo); }
header h1 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
header .acoes { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
header a, header button, header summary {
display: inline-block;
padding: .4rem .85rem;
border-radius: 999px;
font: inherit;
font-size: .85rem;
font-weight: 600;
text-decoration: none;
color: #fff;
background: transparent;
border: 1px solid rgba(255,255,255,.45);
cursor: pointer;
}
header a:hover, header a:focus-visible,
header button:hover, header button:focus-visible,
header summary:hover, header summary:focus-visible { background: var(--roxo-claro); border-color: var(--roxo-claro); }
header a.primario { background: var(--amarelo); border-color: var(--amarelo); color: var(--roxo-escuro); }
header a.primario:hover, header a.primario:focus-visible { background: #fff; border-color: #fff; }
header button[aria-pressed="true"] { background: rgba(255,255,255,.16); border-color: #fff; }
/* Menu de materiais: um <details> que abre uma lista sob o botão */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; }
.menu[open] summary { background: var(--roxo-claro); border-color: var(--roxo-claro); }
.menu .lista {
position: absolute;
right: 0;
top: calc(100% + .4rem);
display: flex;
flex-direction: column;
gap: .35rem;
padding: .5rem;
min-width: 14rem;
background: var(--roxo-escuro);
border: 1px solid var(--roxo-claro);
border-radius: .75rem;
box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.menu .lista a { border-radius: .5rem; }
main { flex: 1 1 auto; min-height: 0; }
object { width: 100%; height: 100%; border: none; display: block; }
/* Só aparece se o navegador não conseguir embutir o PDF (iOS, alguns
navegadores móveis). Fica DENTRO do <object>, como conteúdo alternativo. */
.fallback {
max-width: 34rem;
margin: 3rem auto;
padding: 0 1.5rem;
text-align: center;
line-height: 1.6;
}
.fallback a { color: var(--roxo-claro); font-weight: 600; }
</style>
</head>
<body>
<header>
<div class="titulo">
<span class="marca">FOR_CODE · GIT · GITHUB</span>
<h1>Capacitação de Git e GitHub</h1>
</div>
<nav class="acoes">
<a class="primario" href="./docs/guia.pdf" download>Baixar o guia</a>
<button type="button" data-pdf="./docs/guia.pdf" aria-pressed="true">Ver guia</button>
<button type="button" data-pdf="./docs/apresentacao.pdf" aria-pressed="false">Ver slides</button>
<details class="menu">
<summary>Materiais</summary>
<div class="lista">
<a href="./materials/jogo-da-memoria.zip" download>Jogo da memória (.zip)</a>
<a href="./materials/main.py" download>Script Python</a>
<a href="./materials/modelo-actions.zip" download>Modelo Fortran (.zip)</a>
</div>
</details>
<a href="https://github.com/ronidomingues/github-training">Código-fonte</a>
</nav>
</header>
<main id="visor">
<object data="./docs/guia.pdf" type="application/pdf">
<div class="fallback">
<p>Seu navegador não consegue exibir o PDF nesta página.</p>
<p><a href="./docs/guia.pdf">Abrir o guia</a> · <a href="./docs/apresentacao.pdf">Abrir os slides</a></p>
</div>
</object>
</main>
<script>
// Troca o PDF exibido. O <object> é recriado porque alguns navegadores
// ignoram a mudança do atributo "data" depois que o PDF já carregou.
const visor = document.getElementById('visor');
const botoes = document.querySelectorAll('button[data-pdf]');
botoes.forEach(botao => botao.addEventListener('click', () => {
const atual = visor.querySelector('object');
const novo = atual.cloneNode(true);
novo.data = botao.dataset.pdf;
atual.replaceWith(novo);
botoes.forEach(b => b.setAttribute('aria-pressed', String(b === botao)));
}));
// Fecha o menu de materiais ao clicar fora dele.
document.addEventListener('click', evento => {
document.querySelectorAll('details.menu[open]').forEach(menu => {
if (!menu.contains(evento.target)) menu.removeAttribute('open');
});
});
</script>
</body>
</html>