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>
     
        :root {
            --primary-color: #2DE0C4;
            --background-color: #F7F8FA;
            --card-background: #FFFFFF;
            --text-color-primary: #212121;
            --text-color-secondary: #757575;
            --text-color-light: #BDBDBD;
            --badge-color: #FF4D4F;
        }

     

        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);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .main-content {
            flex-grow: 1;
            padding: 20px;
            padding-bottom: 80px; /* Space for fixed bottom nav */
        }
        
        /* User Info Section */
        .user-info-section {
            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%;
            margin-right: 16px;
        }

        .user-details {
            display: flex;
            flex-direction: column;
        }

        .user-name {
            font-family: 'PingFangSC-Semibold', sans-serif;
            font-weight: 600;
            font-size: 20px;
            margin: 0 0 6px 0;
        }
        
        .user-phone {
            font-size: 13px;
            color: var(--text-color-secondary);
        }
        
        .sign-in-button {
            background-color: var(--primary-color);
            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(45, 224, 196, 0.3);
        }

        .sign-in-button svg {
            width: 18px;
            height: 18px;
            ma.........完整代码请登录后点击上方下载按钮下载查看

网友评论0