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>上门废品回收 App - 高保真原型图</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/lucide.min.js"></script>
<style>
* { margin:0; padding:0; box-sizing:border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
background: #f5f5f5;
overflow: hidden;
height: 100vh;
}
#canvas {
position: absolute;
left: 0; top: 0;
width: 4000px;
height: 5000px;
background: #f8f9fa;
transform-origin: 0 0;
transition: transform 0.1s ease-out;
padding: 60px 40px;
display: grid;
grid-template-columns: repeat(auto-fit, 420px);
grid-gap: 60px 80px;
align-content: start;
}
.page {
width: 375px;
height: 812px;
background: #fff;
border-radius: 40px;
box-shadow: 0 20px 60px rgba(0,0,0,0.12);
overflow: hidden;
position: relative;
border: 14px solid #000;
border-bottom-width: 70px;
}
.page::before {
content: "";
position: absolute;
top: -12px; left: 50%; transform: translateX(-50%);
width: 140px; height: 28px;
background: #000;
border-radius: 0 0 20px 20px;
}
.page-title {
position: absolute;
top: -48px; left: 0; right: 0;
text-align: center;
font-size: 20px;
font-weight: 600;
color: #222;
background: #fff;
padding: 8px 20px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
z-index: 10;
}
.status-bar {
height: 44px;
background: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 24px;
font-size: 14px;
font-weight: 600;
}
.time { font-weight: 600; }
.signal { letter-spacing: -1px; }
.nav-bar {
position: absolute;
bottom: 0; left: 0; right: 0;
height: 83px;
background: #fff;
border-top: 1px solid #eee;
display: flex;
padding-bottom: 28px;
}
.nav-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 10px;
color: #888;
gap: 4px;
}
.nav-item.active {
color: #00C853;
}
.btn-primary {
background: linear-gradient(135deg, #00C853, #00B248);
color: white;
border: none;
border-radius: 16px;
height: 52px;
font-size: 17px;
font-weight: 600;
}
.input-group {
background: #f7f7f7;
border-radius: 14px;
padding: 16px 18px;
margin-bottom: 16px;
font-size: 16px;
}
input { border:none; background:none; outline:none; width:100%; font-size:16px; }
</style>
</head>
<body>
<div id="canvas">
<!-- 启动页 -->
<div class="page">
<div class="page-title">启动页</div>
<img src="https://picsum.photos/375/812?random=1" style="width:100%;height:100%;object-fit:cover;">
</div>
<!-- 登录页 -->
<div class="page">
<div class="page-title">登录页</div>
<div class="status-bar"><div class="time">9:41</div><div class="signal">•••• •||</div></div>
<div style="padding:80px 40px 40px;background:linear-gradient(180deg,#00D65F 0%,#00B248 100%);height:100%;color:#fff;display:flex;flex-direction:column;">
<div style="font-size:36px;font-weight:800;margin-bottom:8px;">欢迎回来</div>
<div style="font-size:17px;opacity:0.9;margin-bottom:60px;">回收旧物,换取新生活</div>
<div style="flex:1"></div>
<div class="input-group" style="background:rgba(255,255,255,0.22);color:#fff;">
<input type="tel" placeholder="请输入手机号" style="color:#fff;">
</div>
<div style="display:flex;gap:12px;margin-bottom:24px;">
<div class="input-group" style="flex:1;background:rgba(255,255,255,0.22);color:#fff;">
<input type="text" placeholder="验证码" style="color:#fff;">
</div>
<button style="width:120px;background:rgba(255,255,255,0.3);color:#fff;border:none;border-radius:14px;font-size:15px;">获取验证码.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0