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; }
.form-group input, .form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 16px;
box-sizing: border-box;
}
.form-group input:focus { border-color: var(--primary-color); outline: none; }
.input-with-btn { display: flex; gap: 10px; }
.input-with-btn input { flex-grow: 1; }
.input-with-btn .btn-sm { padding: 12px 15px; width: auto; font-size: 14px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.rating { color: #FFD700; }
/* --- Specific Page Styles --- */
/* Home */
.location-bar { display: flex; align-items: center; background: rgba(255,255,255,0.9); backdrop-filter: blur(5px); padding: 10px 15px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px;}
.location-bar i { color: var(--primary-color); margin-right: 8px; }
.location-bar span { font-weight: 500; flex-grow: 1;}
.search-bar { width: 100%; padding: 12px; border-radius: 8px; background: #eef1f4; border: none; margin-bottom: 20px; box-sizing: border-box;}
.tech-card { display: flex; gap: 15px; }
.tech-card img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.tech-info { flex-grow: 1; }
.tech-info h3 { margin: 0 0 5px; font-size: 16px; }
.tech-info .details { font-size: 12px; color: var(--light-text); display: flex; align-items: center; gap: 10px; }
.tech-info .distance { font-size: 14px; font-weight: 500; color: var(--secondary-color); text-align: right; }
.tag { background: #eef1f4; color: var(--light-text); padding: 3px 8px; border-radius: 4px; font-size: 10px; }
/* Tech Profile */
.profile-header { text-align: center; padding: 20px; background: var(--white-color); }
.profile-header img { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--white-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 10px; }
.profile-header h2 { margin: 5px 0; }
.verified-badge { background-color: var(--secondary-color); color: var(--white-color); padding: 3px 8px; font-size: 12px; border-radius: 6px; margin-left: 5px; }
.profile-stats { display: flex; justify-content: space-around; margin-top: 15px; }
.stat-item { text-align: center; }
.stat-item .value { font-size: 18px; font-weight: 700; }
.stat-item .label { font-size: 12px; color: var(--light-text); }
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 10px; font-size: 18px; font-weight: 600; }
.service-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--border-color); }
.service-item:last-child { border-bottom: none; }
.service-info h4 { margin: 0 0 5px; }
.service-info p { margin: 0; font-size: 12px; color: var(--light-text); }
.service-price { text-align: right; }
.price { font-size: 18px; font-weight: 700; color: var(--danger-color); }
.duration { font-size: 12px; color: var(--light-text); }
.sticky-footer { position: sticky; bottom: 0; background: var(--white-color); padding: 15px 20px; box-shadow: 0 -5px 15px rgba(0,0,0,0.08); }
/* Order Status Map */
.map-container { flex-grow: 1; background: url('https://i.imgur.com/gKj6D3i.png') center/cover no-repeat; position: relative; }
.status-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: var(--white-color); padding: 20px; border-radius: 20px 20px 0 0; }
.status-overlay h3 { margin: 0 0 10px; }
.eta-info { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 15px;}
.eta-info .time { font-weight: 700; font-size: 20px; color: var(--primary-color); }
/* Tech Dashboard */
.dashboard-header { background: var(--primary-color); color: var(--white-color); padding: 30px 20px; }
.status-toggle { display: flex.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0