vue3实现pc端邮箱邮件收发系统ui原型图代码

代码语言:html

所属分类:布局界面

代码描述:vue3实现pc端邮箱邮件收发系统ui原型图代码

代码标签: vue pc 邮箱 邮件 收发 系统 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>Vue 3 电子邮箱</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts.5.5.0.js"></script>
    <style>
        :root {
            --primary-color: #007bff;
            --primary-color-light: #e6f2ff;
            --text-color: #333;
            --text-color-light: #777;
            --bg-color: #f8f9fa;
            --bg-color-white: #ffffff;
            --border-color: #dee2e6;
            --sidebar-width: 240px;
            --header-height: 60px;
            --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --border-radius: 8px;
            --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        body, html {
            margin: 0;
            padding: 0;
            font-family: var(--font-family);
            background-color: var(--bg-color);
            color: var(--text-color);
            height: 100%;
            overflow: hidden;
        }

        #app {
            display: flex;
            height: 100vh;
        }

        /* --- Sidebar --- */
        .sidebar {
            width: var(--sidebar-width);
            background-color: var(--bg-color-white);
            border-right: 1px solid var(--border-color);
            padding: 20px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            transition: width 0.3s ease;
        }

        .sidebar h1 {
            font-size: 24px;
            color: var(--primary-color);
            margin: 0 0 30px 0;
            display: flex;
            align-items: center;
        }

        .sidebar h1 svg {
            margin-right: 10px;
        }

        .compose-btn {
            width: 100%;
            padding: 12px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 16px;
            cursor: pointer;
            margin-bottom: 30px;
            transition: background-color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .compose-btn:hover {
            background-color: #0056b3;
        }
        
        .compose-btn svg {
            margin-right: 8px;
        }

        .nav-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-item {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            margin-bottom: 8px;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: background-color 0.2s ease, color 0.2s ease;
            font-weight: 500;
        }

        .nav-item svg {
            margin-right: 15px;
            opacity: 0.7;
        }

        .nav-item:hover {
            background-color: var(--primary-color-light);
        }

        .nav-item.active {
            background-color: var(--primary-color);
            color: white;
            font-weight: bold;
        }

        .nav-item.active svg {
            opacity: 1;
        }

        /* --- Main Content --- */
        .main-content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            background-color: var(--bg-color-white);
            height: 100vh;
        }

        .content-header {
            height: var(--header-height);
            border-bottom: 1px solid var(--border-color);
            padding: 0 30px;
            display: flex;
            align-items: center;
            font-size: 20px;
            font-weight: 600;
            box-sizing: border-box;
            flex-shrink: 0;
        }

        .content-body {
            flex-grow: 1;
            overflow-y: auto;
            display: flex;
        }

        /* --- Email List --- */
        .email-list-container {
            width: 100%;
            height: 100%;
        }
        
        .email-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .email-item {
            display: flex;
            align-items: center;
            padding: 15px 30px;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .email-item:hover {
            background-color: #f1f3f5;
        }
        
        .email-item.unread {
            background-color: var(--primary-color-light);
            font-weight: bold;
        }

        .email-sender {
            width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .email-subject {
            flex-grow: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 20px;
        }

        .email-time {
            color: var(--text-color-light);
            font-size: 14px;
        }

        .empty-list {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            color: var(--text-color-light);
            font-size: 18px;
        }

        /* --- Email Detail --- */
        .email-detail-container {
            padding: 30px;
            width: 100%;
            box-sizing: border-box;
        }

        .email-detail-header {
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 20px;
            margin-bottom: 20px;
        }
      .........完整代码请登录后点击上方下载按钮下载查看

网友评论0