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>个人中心UI复刻</title> <style> /* CSS Reset and Basic Styles */ :root { --primary-color: #FF7D58; --avatar-bg-color: #6D5CE6; --background-color: #F7F8FA; --card-background: #FFFFFF; --text-color-primary: #333333; --text-color-secondary: #888888; --text-color-light: #AAAAAA; --font-family-main: 'PingFangSC-Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --font-family-semibold: 'PingFangSC-Semibold', var(--font-family-main); --font-family-numeric: 'D-DIN', var(--font-family-main); } body { margin: 0; font-family: var(--font-family-main); background-color: var(--background-color); color: var(--text-color-primary); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .mobile-container { max-width: 414px; min-height: 100vh; margin: 0 auto; background-color: var(--background-color); display: flex; flex-direction: column; position: relative; } .main-content { flex-grow: 1; padding: 20px; padding-bottom: 80px; /* Space for fixed bottom nav */ } /* Header Section */ .user-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; } .user-info { display: flex; align-items: center; } .avatar { width: 60px; height: 60px; border-radius: 50%; background-color: var(--avatar-bg-color); display: flex; justify-content: center; align-items: center; color: white; font-size: 32px; font-weight: bold; margin-right: 12px; } .user-details { display: flex; flex-direction: column; } .user-name { font-family: var(--font-family-semibold); font-weight: 600; font-size: 20px; margin: 0 0 6px 0; } .user-id { font-size: 13px; color: var(--text-color-secondary); display: flex; align-items: center; } .user-id svg { width: 14px; height: 14px; margin-left: 6px; color: var(--text-color-light); } .sign-in-button { background: linear-gradient(135deg, #FFAC61 0%, #FF6A5A 100%); color: white; font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 18px; display: inline-flex; align-items: center; cursor: pointer; box-shadow: 0 4px 10px rgba(255, 125, 88, 0.4); } .sign-in-button svg { width: 16px; height: 16px; margin-right: 6px; } /* Stats Section */ .stats-section { display: flex; justify-content: space-around; text-align: center; margin-bottom: 24px; } .stat-item { flex: 1; position: relative; } .stat-value { font-family: var(--font-family-numeric); font-size: 22px; font-weight: 700; margin-bottom: 6px; } .stat-label { font-size: 12px; color: var(--text-color-secondary); } .stat-item .badge { position: absolute; top: -4px; right: 8px; background-color: #FFE6D5; color: #FF7B54; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px; font-weight: 500; } /* Card styles */ .card { background-color: var(--card-background); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05); } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .card-title.........完整代码请登录后点击上方下载按钮下载查看
网友评论0