Create simple dark-mode website layout
by velo_ninja
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Custom Audio Player</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(45deg, rgba(255, 0, 150, 0.5), rgba(0, 204, 255, 0.5));
font-family: 'Arial', sans-serif;
color: white;
}
.audio-player {
width: 100%;
max-width: 600px;
background: rgba(0, 0, 0, 0.5);
border-radius: 15px;
padding: 25px;
backdrop-filter: blur(10px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
position: relative;
text-align: center;
overflow: hidden;
}
.audio-player::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.3);
border-radius: 15px;
pointer-events: none;
}
.song-title {
font-size: 22px;
font-weight: bold;
margin-bottom: 15px;
letter-spacing: 1px;
}
.controls {
margin-top: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
button, input[type="range"], select {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
padding: 10px 25px;
border-radius: 30px;
font-size: 16px;
margin: 8px 0;
cursor: pointer;
transition: background 0.3s ease;
}
button:hover, input[type="range"]:hover, select:hover {
background: rgba(255, 255, 255, 0.3);
}
#play-pause {
padding: 15px 35px;
font-size: 18px;
border-radius: 40px;
margin-bottom: 15px;
}
#visualizer {
width: 100%;
height: 120px;
margin-top: 20px;
border-radius: 15px;
background: rgba(0, 0, 0, 0.6);
box-shadow: 0...