div+css布局实现上门按摩服务app的前台和后台管理系统ui原型图代码
代码语言:html
所属分类:布局界面
代码描述:div+css布局实现上门按摩服务app的前台和后台管理系统ui原型图代码
代码标签: div 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>“悠然到家” - UI 原型图</title>
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/chart.js"></script>
<style>
/* --- Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
:root {
--primary-color: #4A90E2; /* 专业蓝 */
--secondary-color: #50E3C2; /* 活力青 */
--dark-text: #333;
--light-text: #888;
--bg-color: #f4f7f9;
--white-color: #fff;
--border-color: #e8e8e8;
--danger-color: #D0021B;
}
body {
font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
background-color: var(--bg-color);
margin: 0;
padding: 20px;
color: var(--dark-text);
}
.main-container {
max-width: 1800px;
margin: 0 auto;
}
.section-title {
font-size: 2.5em;
font-weight: 700;
color: var(--dark-text);
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 3px solid var(--primary-color);
display: flex;
align-items: center;
}
.section-title i {
margin-right: 15px;
color: var(--primary-color);
}
.prototype-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 30px;
}
.prototype-title {
text-align: center;
font-weight: 500;
margin-bottom: 10px;
font-size: 1.1em;
color: #555;
}
/* --- Mobile Prototype Frame --- */
.mobile-prototype {
width: 375px;
height: 812px;
border: 10px solid #222;
border-radius: 40px;
background-color: var(--white-color);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
.mobile-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
height: 44px;
box-sizing: border-box;
background-color: var(--white-color);
position: sticky;
top: 0;
z-index: 10;
}
.mobile-header.transparent {
background-color: transparent;
position: absolute;
width: calc(100% - 30px);
}
.mobile-header .title {
font-size: 17px;
font-weight: 600;
}
.mobile-status-bar {
height: 44px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
font-size: 14px;
font-weight: 500;
background-color: var(--white-color);
z-index: 20;
}
.mobile-status-bar .time { font-weight: 600; }
.mobile-status-bar .notch {
width: 140px;
height: 30px;
background-color: #222;
border-radius: 0 0 15px 15px;
position: absolute;
top: -10px;
left: 50%;
transform: translateX(-50%);
}
.mobile-content {
flex-grow: 1;
overflow-y: auto;
background-color: var(--bg-color);
}
.mobile-content::-webkit-scrollbar { display: none; }
.mobile-content.white-bg { background-color: var(--white-color); }
.mobile-bottom-nav {
display: flex;
justify-content: space-around;
align-items: center;
height: 83px; /* Include home indicator area */
padding-bottom: 34px; /* Home indicator space */
background-color: var(--white-color);
border-top: 1px solid var(--border-color);
box-sizing: border-box;
}
.nav-item {
display: flex;
flex-direction: column;
align-items: center;
color: var(--light-text);
font-size: 10px;
}
.nav-item i { font-size: 22px; margin-bottom: 4px; }
.nav-item.active { color: var(--primary-color); }
.home-indicator {
position: absolute;
bottom: 8px;
left: 50%;
transform: translateX(-50%);
width: 134px;
height: 5px;
background-color: #000;
border-radius: 100px;
}
/* --- Common Components --- */
.p-20 { padding: 20px; }
.m-20 { margin: 20px; }
.card {
background-color: var(--white-color);
border-radius: 12px;
padding: 15px;
margin-bottom: 15px;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.btn {
display: block;
width: 100%;
padding: 14px;
border-radius: 8px;
font-size: 16px;
font-weight: 500;
text-align: center;
border: none;
cursor: pointer;
box-sizing: border-box;
}
.btn-primary { background-color: var(--primary-color); color: var(--white-color); }
.btn-secondary { background-color: var(--secondary-color); color: var(--white-color); }
.btn-outline { background-color: var(--white-color); color: var(--primary-color); border: 1px solid var(--primary-color);}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.for.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0