T2F buttons
by moku23
HTML
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bottoni Migliorati</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="button-container">
<button class="button basic">Basic</button>
<button class="button pro">Pro</button>
</div>
</body>
</html>
CSS
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #121212; /* Sfondo scuro per contrasto */
}
.button-container {
display: flex;
gap: 20px;
}
.button {
border: none;
padding: 10px 25px;
border-radius: 25px;
color: white;
font-size: 18px;
font-weight: bold;
outline: none;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.basic {
background: linear-gradient(145deg, #2f855a, #68d391);
border: 1px solid #4a5568;
}
.pro {
background: linear-gradient(145deg, #2d3748, #4a5568);
color: #48bb78; /* Testo verde brillante per contrasto */
box-shadow: 0 0 10px #48bb78;
}
.pro:hover {
box-shadow: 0 0 20px #48bb78;
}