js+css布局实现高端大气简洁音乐app的ui原型图代码
代码语言:html
所属分类:其他
代码描述:js+css布局实现高端大气简洁音乐app的ui原型图代码
代码标签: js css 布局 高端 大气 简洁 音乐 app ui 原型图 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>高端音乐播放器</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: white;
overflow: hidden;
}
.app-container {
max-width: 400px;
margin: 0 auto;
height: 100vh;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(20px);
border-radius: 20px;
position: relative;
display: flex;
flex-direction: column;
}
.page {
display: none;
flex: 1;
flex-direction: column;
padding: 20px;
overflow-y: auto;
}
.page.active {
display: flex;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}
.back-btn {
background: none;
border: none;
color: white;
cursor: pointer;
padding: 8px;
border-radius: 50%;
transition: background 0.3s;
}
.back-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
.title {
font-size: 24px;
font-weight: 700;
text-align: center;
flex: 1;
}
.menu-btn {
background: none;
border: none;
color: white;
cursor: pointer;
padding: 8px;
}
.search-bar {
background: rgba(255, 255, 255, 0.2);
border: none;
border-radius: 25px;
padding: 15px 20px;
color: white;
font-size: 16px;
width: 100%;
margin-bottom: 20px;
}
.search-bar::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.hero-section {
text-align: center;
margin-bottom: 40px;
}
.hero-image {
width: 200px;
height: 200px;
border-radius: 20px;
margin: 0 auto 20px;
object-fit: cover;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.hero-title {
font-size: 28px;
font-weight: 300;
margin-bottom: 10px;
}
.hero-subtitle {
font-size: 16px;
opacity: 0.8;
}
.quick-actions {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-bottom: 30px;
}
.action-card {
background: rgba(255, 255, 255, 0.15);
border-radius: 15px;
padding: 20px;
text-align: center;
cursor: pointer;
transition: all 0.3s;
text-decoration: none;
color: white;
}
.action-card:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.25);
}
.action-icon {
margin-bottom: 10px;
}
.section-title {
font-size: 20px;
font-weight: 600;
margin-bottom: 15px;
}
.playlist-item, .song-item {
display: flex;
align-items: center;
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 15px;
margin-bottom: 10px;
cursor: pointer;
transition: all 0.3s;
text-decoration: none;
color: white;
}
.playlist-item:hover, .song-item:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateX(10px);
}
.playlist-image, .song-image {
width: 50px;
height: 50px;
border-radius: 10px;
margin-right: 15px;
object-fit: cover;
}
.playlist-info, .song-info {
flex: 1;
}
.playlist-name, .song-name {
font-weight: 600;
margin-bottom: 5px;
}
.playlist-count, .artist-name {
opacity: 0.7;
font-size: 14px;
}
.player-controls {
position: fixed;
bottom: 75px;
left: 50%;
transform: translateX(-50%);
width: 100%;
max-width: 400px;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(20px);
padding: 15px 20px;
border-radius: 20px 20px 0 0;
}
.now-playing {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.now-playing-image {
width: 40px;
height: 40px;
border-radius: 8px;
margin-right: 12px;
object-fit: cover;
}
.now-playing-info {
flex: 1;
}
.now-playing-title {
font-size: 14px;
font-weight: 600;
}
.now-playing-artist {
font-size: 12px;
opacity: 0.7;
}
.controls {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
}
.control-btn {
background: none;
border: none;
color: white;
cursor: pointer;
padding: 10px;
border-radius: 50%;
transition: all 0.3s;
}
.control-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
.play-btn {
background: white;
color: #667eea;
width: 50px;
height: 50px;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0