js+css实现简洁清爽操控面板代码
代码语言:html
所属分类:布局界面
代码描述:js+css实现简洁清爽操控面板代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Field Mixer UI</title>
<style>
:root {
--bg-color: #e4e6eb;
--text-color: #555;
--shadow-light: #ffffff;
--shadow-dark: #bec3c9;
--accent-orange: #ff4d2e;
--knob-blue: #2c3e50;
--knob-gold: #c5a059;
--knob-grey: #7f8c8d;
--knob-orange: #e64c3c;
--led-green: #4cd964;
}
* {
box-sizing: border-box;
user-select: none;
}
body {
background-color: #f0f2f5;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Main Device Body */
.device {
width: 900px;
height: 500px;
background-color: var(--bg-color);
border-radius: 20px;
padding: 30px;
box-shadow:
20px 20px 60px #cbd0d8,
-20px -20px 60px #ffffff;
display: flex;
flex-direction: column;
position: relative;
}
/* --- Top Section: Speaker & Knobs --- */
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
height: 80px;
}
.speaker-grille {
display: grid;
grid-template-columns: repeat(10, 1fr);
gap: 2px;
width: 60px;
margin-right: 20px;
opacity: 0.3;
}
.dot { width: 2px; height: 2px; background: #000; border-radius: 50%; }
.controls-left {
display: flex;
gap: 15px;
align-items: center;
}
.mini-btn {
width: 30px;
height: 30px;
border-radius: 50%;
border: none;
background: var(--bg-color);
box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
color: var(--text-color);
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.mini-btn:active {
box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}
.knobs-center {
display: flex;
gap: 40px;
margin-left: auto;
margin-right: auto;
}
.knob-group {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.knob {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--bg-color);
box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
position: relative;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.knob-inner {
width: 28px;
height: 28px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0