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;
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0