171 lines
5.4 KiB
HTML
171 lines
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Buttons</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #4a90e2 50%, #7bb3f0 75%, #a8d0f0 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
text-align: center;
|
|
background: linear-gradient(135deg,
|
|
rgba(255,255,255,0.15) 0%,
|
|
rgba(255,255,255,0.08) 50%,
|
|
rgba(255,255,255,0.05) 100%);
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
border-radius: 8px;
|
|
padding: 40px;
|
|
backdrop-filter: blur(20px);
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.3),
|
|
inset 0 1px 0 rgba(255,255,255,0.4);
|
|
}
|
|
|
|
h1 {
|
|
color: #ffffff;
|
|
font-size: 2rem;
|
|
margin-bottom: 30px;
|
|
text-shadow: 0 0 20px rgba(255,255,255,0.3);
|
|
font-weight: 300;
|
|
}
|
|
|
|
.button-showcase {
|
|
display: flex;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.btn {
|
|
background: linear-gradient(180deg,
|
|
rgba(255,255,255,0.3) 0%,
|
|
rgba(255,255,255,0.1) 50%,
|
|
rgba(255,255,255,0.05) 100%);
|
|
border: 1px solid rgba(255,255,255,0.4);
|
|
color: #ffffff;
|
|
padding: 12px 24px;
|
|
font-size: 14px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.3),
|
|
inset 0 1px 0 rgba(255,255,255,0.5);
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
|
|
font-family: 'Segoe UI', sans-serif;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50%;
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: linear-gradient(180deg,
|
|
rgba(255,255,255,0.4) 0%,
|
|
rgba(255,255,255,0.15) 50%,
|
|
rgba(255,255,255,0.08) 100%);
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.4),
|
|
inset 0 1px 0 rgba(255,255,255,0.6);
|
|
}
|
|
|
|
.btn:active {
|
|
background: linear-gradient(180deg,
|
|
rgba(255,255,255,0.1) 0%,
|
|
rgba(255,255,255,0.2) 50%,
|
|
rgba(255,255,255,0.15) 100%);
|
|
box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.btn.primary {
|
|
background: linear-gradient(180deg,
|
|
rgba(74,144,226,0.8) 0%,
|
|
rgba(58,115,180,0.9) 50%,
|
|
rgba(42,82,138,0.95) 100%);
|
|
border: 1px solid rgba(74,144,226,0.6);
|
|
}
|
|
|
|
.btn.primary:hover {
|
|
background: linear-gradient(180deg,
|
|
rgba(74,144,226,0.9) 0%,
|
|
rgba(58,115,180,0.95) 50%,
|
|
rgba(42,82,138,1) 100%);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.message {
|
|
color: #ffffff;
|
|
padding: 15px;
|
|
background: linear-gradient(135deg,
|
|
rgba(255,255,255,0.1) 0%,
|
|
rgba(255,255,255,0.05) 100%);
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
border-radius: 4px;
|
|
margin-top: 20px;
|
|
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
|
|
display: none;
|
|
backdrop-filter: blur(15px);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.button-showcase {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Buttons</h1>
|
|
|
|
<div class="button-showcase">
|
|
<button class="btn" onclick="showMessage('Standard button clicked!')">Standard</button>
|
|
<button class="btn primary" onclick="showMessage('Primary button clicked!')">Primary</button>
|
|
<button class="btn" onclick="showMessage('Another button clicked!')">Another Button</button>
|
|
<button class="btn" disabled>Disabled</button>
|
|
</div>
|
|
|
|
<div id="message" class="message"></div>
|
|
</div>
|
|
|
|
<script>
|
|
function showMessage(text) {
|
|
const messageDiv = document.getElementById('message');
|
|
messageDiv.textContent = text;
|
|
messageDiv.style.display = 'block';
|
|
|
|
setTimeout(() => {
|
|
messageDiv.style.display = 'none';
|
|
}, 3000);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |