-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojeto1.html
More file actions
140 lines (132 loc) · 5.88 KB
/
Copy pathprojeto1.html
File metadata and controls
140 lines (132 loc) · 5.88 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
<!DOCTYPE html>
<html lang="pt">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Landing Page</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="projeto1.css">
</head>
<body>
<button class="dark-mode-toggle" onclick="toggleDarkMode()">🌞</button>
<div class="sidenav">
<!-- <a href="#produtos" onclick="showSection('produtos')">📦 Produtos</a>
<a href="#clientes" onclick="showSection('clientes')">👤 Clientes</a>
<a href="#ordens" onclick="showSection('ordens')">📜 Ordens</a> -->
<a href="#sobre" onclick="showSection('sobre')">👤 Sobre Mim</a>
<a href="#hobbies" onclick="showSection('hobbies')">🎨 Hobbies</a>
<a href="#contato" onclick="showSection('contato')">📬 Contato</a>
</div>
<div class="content">
<section id="boas-vindas">
<h2>Bem-vindo!</h2>
<p>Navega pelas secções à esquerda.</p>
</section>
<!-- <section id="produtos" class="d-none">
<h2>Lista de Produtos</h2>
<ul id="lista-produtos"></ul>
<button onclick="adicionarProduto()">Adicionar Produto</button>
</section>
<section id="clientes" class="d-none">
<h2>Lista de Clientes</h2>
<ul id="lista-clientes"></ul>
<button onclick="adicionarCliente()">Adicionar Cliente</button>
</section>
<section id="ordens" class="d-none">
<h2>Lista de Ordens</h2>
<ul id="lista-ordens"></ul>
<button onclick="adicionarOrdem()">Adicionar Ordem</button>
</section> -->
<section id="sobre" class="d-none">
<figure>
<img src="img/1621546049097.jpeg" alt="Descrição da imagem" style="width:100%; max-width:600px;">
<figcaption>Francisco de Sales - Electrical Engineer</figcaption>
</figure>
<h2>Sobre Mim</h2>
<p>O nome é Francisco de Sales, sou engenheiro e artista nas horas vagas</p>
</section>
<section id="hobbies" class="d-none">
<h2>Hobbies</h2>
<ul>
<li>Tocar guitarra</li>
<li>Ginásio</li>
<li>Cozinhar</li>
</ul>
</section>
<section id="contato" class="d-none">
<h2>Contato</h2>
<form action="#" method="post">
<div class="mb-3">
<label for="nome" class="form-label">Nome</label>
<input type="text" class="form-control" id="nome" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" required>
</div>
<div class="mb-3">
<label>Género</label><br>
<input type="radio" id="masculino" name="genero" value="masculino">
<label for="masculino">Masculino</label><br>
<input type="radio" id="feminino" name="genero" value="feminino">
<label for="feminino">Feminino</label><br>
<input type="radio" id="outro" name="genero" value="outro">
<label for="outro">Outro</label>
</div>
<div class="mb-3">
<label for="assunto" class="form-label">Assunto</label>
<input type="text" class="form-control" id="assunto" required>
</div>
<div class="mb-3">
<label for="mensagem" class="form-label">Mensagem</label>
<textarea class="form-control" id="mensagem" rows="3" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Enviar</button>
</form>
</section>
</div>
<script>
function toggleDarkMode() {
document.body.classList.toggle('dark-mode');
const button = document.querySelector('.dark-mode-toggle');
if (document.body.classList.contains('dark-mode')) {
button.textContent = '🌙';
} else {
button.textContent = '🌞';
}
}
function showSection(section) {
document.querySelectorAll('.content section').forEach(sec => sec.classList.add('d-none'));
document.getElementById(section).classList.remove('d-none');
}
/* function adicionarProduto() {
let id = prompt("ID do Produto:");
let nome = prompt("Nome do Produto:");
if (id && nome) {
let item = document.createElement('li');
item.textContent = `ID: ${id}, Nome: ${nome}`;
document.getElementById('lista-produtos').appendChild(item);
}
}
function adicionarCliente() {
let id = prompt("ID do Cliente:");
let nome = prompt("Nome do Cliente:");
if (id && nome) {
let item = document.createElement('li');
item.textContent = `ID: ${id}, Nome: ${nome}`;
document.getElementById('lista-clientes').appendChild(item);
}
}
function adicionarOrdem() {
let id = prompt("ID da Ordem:");
let descricao = prompt("Descrição da Ordem:");
if (id && descricao) {
let item = document.createElement('li');
item.textContent = `ID: ${id}, Descrição: ${descricao}`;
document.getElementById('lista-ordens').appendChild(item);
}
} */
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>