-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
116 lines (112 loc) · 4.03 KB
/
index.htm
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
<!DOCTYPE html>
<!--
^~^ ,
('Y') )
/ \/
(\|||/) Made by GustavG
-->
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hub dos Exercícios</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body
class="bg-gray-900 text-white min-h-screen flex flex-col items-center justify-center"
>
<!-- min-h-screen garante que a tela tenha a mesma altura que a tela -->
<!-- Junto desses exercícios, quero também explorar o Tailwind diretamente pelo script.
Tenho ciencia que o Tailwind é uma ferramenta de desenvolvimento, mas quero ver se consigo fazer isso funcionar e
que, colocar o framework diretamente no script não é uma das melhores práticas.
Porém, quero ver se consigo fazer isso dar certo.
-->
<!-- Texto principal de boas vindas ao usuário -->
<header class="text-center mb-10">
<h1 class="text-4xl font-bold mb-4">
Bem-vindo(a) ao Hub do Hora de Codar 6!
</h1>
<p class="text-xl">Selecione um exercício abaixo para começar.</p>
</header>
<!-- Seção com os exercícios -->
<section
class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-4xl w-full px-4"
>
<!-- Por que 3 grids? No Tailwind podemos definir as colunas em breakpoints para mobile,
telas médias e telas grandes, consecutivamente. Tornadno assim, o site mais responsivo -->
<!-- Exercício 1 -->
<a
href="exercicios/1.htm"
class="block transform transition-transform hover:scale-105"
>
<div class="bg-gray-800 rounded-lg p-6 flex flex-col items-center">
<!-- Container da imagem com tamanho fixo -->
<div class="w-full h-32 mb-4">
<!-- Inserindo a tag de imagem -->
<img
src="assets/agendaContatos.jpg"
alt="Descrição da Imagem"
class="w-full h-full object-cover rounded-md"
/>
</div>
<h2 class="text-2xl font-semibold">Agenda</h2>
</div>
</a>
<!-- Exercício 2 -->
<a
href="exercicios/2.htm"
class="block transform transition-transform hover:scale-105"
>
<div class="bg-gray-800 rounded-lg p-6 flex flex-col items-center">
<!-- Container da imagem com tamanho fixo -->
<div class="w-full h-32 mb-4">
<!-- Inserindo a tag de imagem -->
<img
src="assets/qualNota.jpg"
alt="Descrição da Imagem"
class="w-full h-full object-cover rounded-md"
/>
</div>
<h2 class="text-2xl font-semibold">Qual a nota?</h2>
</div>
</a>
<!-- Exercício 3 -->
<a
href="exercicios/3.htm"
class="block transform transition-transform hover:scale-105"
>
<div class="bg-gray-800 rounded-lg p-6 flex flex-col items-center">
<!-- Container da imagem com tamanho fixo -->
<div class="w-full h-32 mb-4">
<!-- Inserindo a tag de imagem -->
<img
src="assets/altura.webp"
alt="Descrição da Imagem"
class="w-full h-full object-cover rounded-md"
/>
</div>
<h2 class="text-2xl font-semibold">Nome e Altura</h2>
</div>
</a>
<!-- Exercício 4 -->
<a
href="exercicios/4.htm"
class="block transform transition-transform hover:scale-105"
>
<div class="bg-gray-800 rounded-lg p-6 flex flex-col items-center">
<!-- Container da imagem com tamanho fixo -->
<div class="w-full h-32 mb-4">
<!-- Inserindo a tag de imagem -->
<img
src="assets/funcionario.png"
alt="Descrição da Imagem"
class="w-full h-full object-cover rounded-md"
/>
</div>
<h2 class="text-2xl font-semibold">Funcionários</h2>
</div>
</a>
</section>
<!-- Fim da seção -->
</body>
</html>