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, maximum-scale=1.0, user-scalable=no"> <title>个人中心</title> <style> /* CSS Reset and Basic Styles */ :root { --primary-color: #6D5CE6; --background-color: #F7F8FA; --card-background: #FFFFFF; --text-color-primary: #1F2329; --text-color-secondary: #8A9199; --text-color-light: #C5C8CC; --accent-color: #33C6B3; --border-radius-card: 16px; } body { margin: 0; background-color: var(--background-color); color: var(--text-color-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .mobile-container { max-width: 414px; /* Simulating a common mobile width */ min-height: 100vh; margin: 0 auto; background-color: var(--background-color); background-image: radial-gradient(circle at 50% -20%, #E6F3FF 0%, #F7F8FA 40%); display: flex; flex-direction: column; position: relative; } .main-content { flex-grow: 1; padding: 16px; padding-bottom: 80px; /* Space for fixed bottom nav */ } /* Header */ .header { position: fixed; top: 0; left: 0; right: 0; max-width: 414px; margin: 0 auto; display: flex; justify-content: flex-end; align-items: center; padding: 16px; height: 44px; z-index: 10; } .header-icon { width: 24px; height: 24px; margin-left: 16px; color: var(--text-color-primary); } /* User Info Section */ .user-info-section { margin-top: 60px; /* Space for header */ display: flex; align-items: center; margin-bottom: 24px; } .avatar { width: 64px; height: 64px; border-radius: 50%; background-color: var(--primary-color); display: flex; justify-content: center; align-items: center; color: white; font-size: 32px; font-weight: bold; margin-right: 16px; } .user-details { flex-grow: 1; } .user-name { font-family: 'PingFangSC-Semibold', sans-serif; font-weight: 600; font-size: 20px; margin: 0 0 6px 0; } .user-phone { font-size: 14px; color: var(--text-color-secondary); } .edit-profile { font-size: 13px; color: var(--text-color-secondary); display: flex; align-items: center; cursor: pointer; } .edit-profile svg { width: 16px; height: 16px; } /* Stats Section */ .stats-section { display: flex; justify-content: space-around; text-align: left; margin-bottom: 20px; } .stat-item { padding: 0 10px; } .stat-value { font-family: 'PingFangSC-Semibold', sans-serif; font-size: 22px; font-weight: 600; margin-bottom: 4px; } .stat-label { font-size: 13px; color: var(--text-color-secondary); } /* Membership Card */ .membership-card { background: linear-gradient(90deg, #FAD9A0 0%, #F6C88A 100%); border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #8C5B2C; } .membership-info { display: flex; align-items: center; } .crown-icon { width: 24px; height: 24px; margin-right: 8px; } .membership-title { font-family: 'PingFangSC-Semibold&.........完整代码请登录后点击上方下载按钮下载查看
网友评论0