Skip to content

Commit df4ac1f

Browse files
committed
feat: add styling buttons exercise
1 parent a92da1a commit df4ac1f

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
html {
2+
font-size: 14px;
3+
}
4+
5+
body {
6+
text-align: center;
7+
}
8+
9+
button {
10+
color: #fff;
11+
padding: 8px 18px;
12+
margin: 10px;
13+
border-radius: 5px;
14+
border: none;
15+
}
16+
17+
.primary-btn {
18+
background-color: #3498db;
19+
}
20+
21+
.secondary-btn {
22+
background-color: #2ecc71;
23+
}
24+
25+
.success-btn {
26+
background-color: #27ae60;
27+
}
28+
29+
.danger-btn {
30+
background-color: #e74c3c;
31+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>styling buttons</title>
7+
<link rel="stylesheet" href="buttons-style.css" />
8+
</head>
9+
<body>
10+
<h1>Botones con Diferentes Estilos</h1>
11+
<div class="button-container">
12+
<button class="primary-btn">Botón Primario</button>
13+
<button class="secondary-btn">Botón Secundario</button>
14+
<button class="success-btn">Botón de Éxito</button>
15+
<button class="danger-btn">Botón de Peligro</button>
16+
</div>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)