AndroidCode / code /102 /102_4.html
yhzheng1031's picture
Add files using upload-large-folder tool
5501681 verified
raw
history blame
14.6 kB
<html>
<head>
<meta charset="UTF-8">
<title>Chats UI Mock</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
#render-target {
width: 1080px;
height: 2400px;
position: relative;
overflow: hidden;
background: linear-gradient(#0b2a4a 0%, #091f3a 180px, #0c1320 181px, #0c1320 100%);
color: #e6eef9;
}
/* Status bar */
.statusbar {
position: absolute;
top: 20px;
left: 24px;
right: 24px;
height: 50px;
display: flex;
align-items: center;
justify-content: space-between;
color: #ffffff;
font-weight: 600;
font-size: 34px;
}
.sb-left, .sb-right { display: flex; align-items: center; gap: 20px; }
.sb-icon {
width: 26px; height: 26px; opacity: 0.9;
}
.battery { font-size: 30px; opacity: 0.9; }
/* Top account header */
.topbar {
position: absolute;
top: 80px;
left: 24px;
right: 24px;
height: 140px;
display: flex;
align-items: center;
justify-content: space-between;
}
.profile {
display: flex; align-items: center; gap: 26px;
}
.avatar {
width: 96px; height: 96px; border-radius: 48px;
background: #E0E0E0; border: 1px solid #BDBDBD;
color: #757575; display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: 36px; position: relative;
}
.presence {
position: absolute; right: -2px; bottom: -2px;
width: 18px; height: 18px; background: #38d56b; border: 3px solid #0b2a4a; border-radius: 50%;
}
.name-area { line-height: 1.15; }
.name-area .title { font-size: 44px; font-weight: 700; }
.name-area .subtitle { font-size: 30px; color: #a8c3e6; margin-top: 8px; }
.top-actions { display: flex; align-items: center; gap: 26px; }
.action-btn {
width: 70px; height: 70px; border-radius: 16px; background: #122a4b; border: 1px solid #254a7a;
display: flex; align-items: center; justify-content: center;
}
/* Search */
.searchbar {
position: absolute; top: 230px; left: 24px; right: 24px;
height: 90px; border-radius: 20px;
background: #0f1b2f; border: 1px solid #223a5e;
display: flex; align-items: center; padding: 0 26px; gap: 22px;
}
.search-input {
color: #cfe1ff; font-size: 34px; opacity: 0.9; flex: 1;
}
.filter-btn {
width: 72px; height: 72px; border-radius: 16px; background: #0c1528; border: 1px solid #254a7a;
display: flex; align-items: center; justify-content: center;
}
/* Banner */
.banner {
position: absolute; top: 335px; left: 24px; right: 24px;
background: #112542; border: 1px solid #2b578f; border-radius: 20px;
padding: 26px; display: flex; align-items: center; justify-content: space-between;
}
.banner-left { display: flex; align-items: center; gap: 24px; }
.banner-text { }
.banner-title { font-size: 40px; font-weight: 800; }
.banner-sub { font-size: 30px; color: #b8cde8; margin-top: 6px; }
.banner-close { font-size: 42px; color: #c3d7f2; opacity: 0.8; }
/* List area */
.list {
position: absolute; top: 450px; left: 0; right: 0; bottom: 200px;
padding: 0 24px 24px 24px; overflow: hidden;
}
.chat {
display: grid; grid-template-columns: 120px 1fr 200px; align-items: center;
column-gap: 24px; padding: 30px 10px; border-bottom: 1px solid #1a2a44;
}
.chat .av {
width: 110px; height: 110px; border-radius: 22px;
background: #E0E0E0; border: 1px solid #BDBDBD; color: #757575;
display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.chat.round .av { border-radius: 55px; }
.chat .meta { display: flex; flex-direction: column; gap: 6px; }
.chat .name { font-size: 40px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; }
.chat .snippet { font-size: 32px; color: #a9bfdc; }
.verify {
width: 34px; height: 34px; background: #1e88ff; border-radius: 50%;
display: inline-flex; align-items: center; justify-content: center;
}
.verify svg { width: 22px; height: 22px; }
.right-col { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.date { font-size: 30px; color: #b3c7e6; }
.badge {
width: 50px; height: 50px; background: #2d8cff; border-radius: 25px;
color: #fff; font-weight: 700; font-size: 30px; display: flex; align-items: center; justify-content: center;
}
.green-dot {
width: 20px; height: 20px; border-radius: 10px; background: #49d36b; border: 3px solid #0c1320;
position: absolute; left: 86px; top: 80px;
}
.bing-btn {
margin-top: 16px; width: 540px; height: 74px; border-radius: 38px;
border: 1px solid #2b578f; background: #0f1d36; color: #cfe1ff;
display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700;
}
/* Floating compose */
.fab {
position: absolute; right: 34px; bottom: 280px;
width: 150px; height: 150px; border-radius: 75px;
background: #2b8cff; box-shadow: 0 8px 18px rgba(0,0,0,0.4);
display: flex; align-items: center; justify-content: center;
}
/* Bottom navigation */
.bottomnav {
position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
background: #0e172b; border-top: 1px solid #1b2b47; display: grid; grid-template-columns: repeat(5, 1fr);
align-items: center; text-align: center;
}
.nav-item { color: #c0d3f2; }
.nav-item .icon-wrap { width: 84px; height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.nav-item .label { margin-top: 8px; font-size: 30px; }
.unread-dot {
position: absolute; left: 70px; top: 28px; background: #ff4b4b; color: #fff;
width: 46px; height: 46px; border-radius: 23px; font-size: 26px; display: flex; align-items: center; justify-content: center;
font-weight: 800;
}
.today-dot {
width: 24px; height: 24px; background: #ff4b4b; border-radius: 12px;
position: absolute; right: 34px; bottom: 34px;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status Bar -->
<div class="statusbar">
<div class="sb-left">
<div>8:14</div>
<svg class="sb-icon" viewBox="0 0 24 24">
<circle cx="5" cy="12" r="3" fill="#9ec1ff"/>
<circle cx="14" cy="12" r="3" fill="#9ec1ff"/>
</svg>
<svg class="sb-icon" viewBox="0 0 24 24">
<path d="M2 18h20L12 3 2 18z" fill="#9ec1ff"/>
</svg>
<svg class="sb-icon" viewBox="0 0 24 24">
<rect x="4" y="6" width="16" height="12" rx="2" fill="#9ec1ff"/>
<rect x="19" y="9" width="3" height="6" rx="1" fill="#9ec1ff"/>
</svg>
</div>
<div class="sb-right">
<svg class="sb-icon" viewBox="0 0 24 24">
<rect x="2" y="5" width="20" height="14" rx="7" fill="#9ec1ff"/>
<circle cx="9" cy="12" r="3" fill="#0c1320"/>
</svg>
<div class="battery">100%</div>
</div>
</div>
<!-- Top header -->
<div class="topbar">
<div class="profile">
<div class="avatar">RW<div class="presence"></div></div>
<div class="name-area">
<div class="title">Richard Wagner</div>
<div class="subtitle">Share what you're up to</div>
</div>
</div>
<div class="top-actions">
<div class="action-btn">
<svg width="40" height="40" viewBox="0 0 24 24">
<rect x="3" y="6" width="12" height="12" rx="3" fill="#9ec1ff"/>
<polygon points="16,10 22,8 22,16 16,14" fill="#9ec1ff"/>
</svg>
</div>
<div class="action-btn">
<svg width="40" height="40" viewBox="0 0 24 24">
<path d="M12 3c-4 0-7 3-7 7v4l-2 2h18l-2-2v-4c0-4-3-7-7-7z" fill="#9ec1ff"/>
<circle cx="12" cy="21" r="2" fill="#9ec1ff"/>
</svg>
</div>
</div>
</div>
<!-- Search bar -->
<div class="searchbar">
<svg width="44" height="44" viewBox="0 0 24 24">
<circle cx="10" cy="10" r="7" stroke="#9ec1ff" stroke-width="2" fill="none"/>
<line x1="15" y1="15" x2="22" y2="22" stroke="#9ec1ff" stroke-width="2"/>
</svg>
<div class="search-input">Search</div>
<div class="filter-btn">
<svg width="40" height="40" viewBox="0 0 24 24">
<line x1="4" y1="6" x2="20" y2="6" stroke="#9ec1ff" stroke-width="2"/>
<circle cx="8" cy="6" r="3" fill="#9ec1ff"/>
<line x1="4" y1="12" x2="20" y2="12" stroke="#9ec1ff" stroke-width="2"/>
<circle cx="16" cy="12" r="3" fill="#9ec1ff"/>
<line x1="4" y1="18" x2="20" y2="18" stroke="#9ec1ff" stroke-width="2"/>
<circle cx="11" cy="18" r="3" fill="#9ec1ff"/>
</svg>
</div>
</div>
<!-- Banner -->
<div class="banner">
<div class="banner-left">
<div class="action-btn" style="width:72px;height:72px;">
<svg width="40" height="40" viewBox="0 0 24 24">
<rect x="4" y="6" width="10" height="12" rx="3" fill="#9ec1ff"/>
<polygon points="14,10 22,8 22,16 14,14" fill="#9ec1ff"/>
</svg>
</div>
<div class="banner-text">
<div class="banner-title">Easy meetings with anyone</div>
<div class="banner-sub">Tap here to start a video meeting</div>
</div>
</div>
<div class="banner-close"></div>
</div>
<!-- List -->
<div class="list">
<!-- Bing -->
<div class="chat">
<div class="av">[IMG: Bing Logo]</div>
<div class="meta">
<div class="name">Bing <span class="verify">
<svg viewBox="0 0 24 24"><path d="M9 16l-3-3 1.4-1.4L9 13.2l7.6-7.6L18 7l-9 9z" fill="#fff"/></svg>
</span></div>
<div class="snippet">Hey, this is Bing! How can I help y...</div>
<div class="bing-btn">Compose a new national anthem</div>
</div>
<div class="right-col">
<div class="date">12/12/2023</div>
<div class="badge">1</div>
</div>
</div>
<!-- Richard Wagner (You) -->
<div class="chat">
<div class="av">[IMG: Profile Avatar]</div>
<div class="meta">
<div class="name">Richard Wagner (You) <span class="verify">
<svg viewBox="0 0 24 24"><path d="M9 16l-3-3 1.4-1.4L9 13.2l7.6-7.6L18 7l-9 9z" fill="#fff"/></svg>
</span></div>
<div class="snippet"> </div>
</div>
<div class="right-col">
<svg width="30" height="30" viewBox="0 0 24 24">
<path d="M6 2l12 10-12 10z" fill="#b3c7e6"/>
</svg>
</div>
</div>
<!-- Natalie Larson -->
<div class="chat round" style="position: relative;">
<div class="av">[IMG: Plant Avatar]</div>
<div class="green-dot"></div>
<div class="meta">
<div class="name">Natalie Larson</div>
<div class="snippet">How are you doing?</div>
</div>
<div class="right-col">
<div class="date">8:14 AM</div>
<div class="badge">1</div>
</div>
</div>
<!-- sandra Abraham -->
<div class="chat round">
<div class="av">SA</div>
<div class="meta">
<div class="name">sandra Abraham</div>
<div class="snippet">Translated Conversation requested</div>
</div>
<div class="right-col">
<div class="date">Fri</div>
</div>
</div>
<!-- Hilary May Konadu -->
<div class="chat round">
<div class="av">[IMG: Avatar]</div>
<div class="meta">
<div class="name">Hilary May Konadu</div>
<div class="snippet">Translated Conversation requested</div>
</div>
<div class="right-col">
<div class="date">12/15/2023</div>
<div class="badge">1</div>
</div>
</div>
<!-- Friends -->
<div class="chat round">
<div class="av">FR</div>
<div class="meta">
<div class="name">Friends</div>
<div class="snippet">Amelia miller has made the chat hist...</div>
</div>
<div class="right-col">
<div class="date">12/13/2023</div>
</div>
</div>
<!-- Amelia miller -->
<div class="chat round">
<div class="av">[IMG: Plant Avatar]</div>
<div class="meta">
<div class="name">Amelia miller</div>
<div class="snippet">↪ quoted message</div>
</div>
<div class="right-col">
<div class="date">12/13/2023</div>
</div>
</div>
</div>
<!-- Floating compose button -->
<div class="fab">
<svg width="72" height="72" viewBox="0 0 24 24">
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z" fill="#fff"/>
<path d="M20.71 7.04a1 1 0 0 0 0-1.41L18.37 3.3a1 1 0 0 0-1.41 0l-1.34 1.34 3.75 3.75 1.34-1.35z" fill="#fff"/>
</svg>
</div>
<!-- Bottom navigation -->
<div class="bottomnav">
<div class="nav-item" style="position: relative;">
<div class="unread-dot">3</div>
<div class="icon-wrap">
<svg width="56" height="56" viewBox="0 0 24 24">
<path d="M3 5h18v14H3z" fill="#9ec1ff"/>
<path d="M3 5l9 7 9-7" fill="none" stroke="#0c1320" stroke-width="2"/>
</svg>
</div>
<div class="label">Chats</div>
</div>
<div class="nav-item">
<div class="icon-wrap">
<svg width="56" height="56" viewBox="0 0 24 24">
<path d="M5 4h14v16H5z" fill="#9ec1ff"/>
<path d="M6 8h12M6 12h12M6 16h12" stroke="#0c1320" stroke-width="2"/>
</svg>
</div>
<div class="label">Calls</div>
</div>
<div class="nav-item">
<div class="icon-wrap">
<svg width="56" height="56" viewBox="0 0 24 24">
<rect x="4" y="3" width="16" height="18" rx="3" fill="#9ec1ff"/>
<circle cx="12" cy="7" r="1.5" fill="#0c1320"/>
<circle cx="12" cy="12" r="1.5" fill="#0c1320"/>
<circle cx="12" cy="17" r="1.5" fill="#0c1320"/>
</svg>
</div>
<div class="label">Phone</div>
</div>
<div class="nav-item">
<div class="icon-wrap">
<svg width="56" height="56" viewBox="0 0 24 24">
<rect x="3" y="4" width="18" height="16" rx="2" fill="#9ec1ff"/>
<circle cx="8" cy="10" r="3" fill="#0c1320"/>
<rect x="13" y="8" width="6" height="8" rx="2" fill="#0c1320"/>
</svg>
</div>
<div class="label">Contacts</div>
</div>
<div class="nav-item" style="position: relative;">
<div class="icon-wrap">
<svg width="56" height="56" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10" fill="#9ec1ff"/>
<path d="M12 6v6l4 2" stroke="#0c1320" stroke-width="2" fill="none"/>
</svg>
</div>
<div class="label">Today</div>
</div>
</div>
<div class="today-dot"></div>
</div>
</body>
</html>