AndroidCode / code /10043 /10043_4.html
yhzheng1031's picture
Add files using upload-large-folder tool
fa881a6 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Chat UI - Richard Wagner</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: Roboto, Arial, sans-serif; }
#render-target {
width: 1080px; height: 2400px;
position: relative; overflow: hidden;
background: #ffffff; color: #222;
}
/* Status bar */
.status-bar {
position: absolute; top: 0; left: 0; right: 0;
height: 90px; background: #fff;
display: flex; align-items: center; justify-content: space-between;
padding: 0 36px; box-sizing: border-box; color: #5f6368; font-size: 36px;
}
.status-right { display: flex; align-items: center; gap: 26px; }
.icon { width: 42px; height: 42px; display: inline-block; }
/* Header */
.header {
position: absolute; top: 90px; left: 0; right: 0;
height: 190px; background: #fff; box-sizing: border-box;
padding: 20px 32px; border-bottom: 1px solid #e5e5e5;
}
.header-top {
height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.back-wrap { display: flex; align-items: center; gap: 24px; }
.avatar {
width: 80px; height: 80px; border-radius: 50%;
background: linear-gradient(135deg,#cfe1ff,#d9f1ff);
display: flex; align-items: center; justify-content: center;
font-weight: 700; color: #6270c9; border: 1px solid #c9d4f7;
}
.title-wrap { display: flex; flex-direction: column; margin-left: 18px; }
.name { font-size: 48px; font-weight: 600; color: #111; }
.active { font-size: 28px; color: #44b24a; display: flex; align-items: center; gap: 10px; }
.active .dot { width: 14px; height: 14px; border-radius: 50%; background: #26c943; display: inline-block; }
.header-actions { display: flex; align-items: center; gap: 32px; }
.action-icon { width: 60px; height: 60px; }
/* Conversation area */
.content {
position: absolute; left: 0; right: 0; top: 280px; bottom: 220px;
overflow-y: hidden; padding: 20px 28px 0; box-sizing: border-box;
background: #fff;
}
.divider {
display: flex; align-items: center; gap: 24px; color: #9e9e9e;
font-size: 30px; margin: 26px 0;
}
.divider .line { flex: 1; height: 2px; background: #e0e0e0; }
.msg-row { display: flex; align-items: flex-end; margin: 22px 0; }
.msg-row.left { justify-content: flex-start; }
.msg-row.right { justify-content: flex-end; }
.msg-time { font-size: 26px; color: #9e9e9e; margin: 0 16px; }
.bubble {
max-width: 720px; padding: 26px 30px; border-radius: 24px;
box-sizing: border-box; font-size: 40px; line-height: 1.35;
box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.bubble.received { background: #eeeeee; color: #1a1a1a; }
.bubble.sent { background: #cfeff9; color: #0d0d0d; }
.smiley { margin-left: 16px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #dcdcdc; display: flex; align-items: center; justify-content: center; color: #9e9e9e; font-size: 28px; }
.avatar-small {
width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#cfe1ff,#d9f1ff);
border: 1px solid #c9d4f7; color: #6270c9; font-weight: 700; display: flex; align-items: center; justify-content: center;
margin-right: 18px;
}
/* Quoted message card */
.quoted-card {
background: #f5f5f5; border-radius: 20px; padding: 20px; margin-bottom: 16px;
box-shadow: 0 1px 0 rgba(0,0,0,0.04); position: relative;
}
.quoted-card::before {
content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: #2f7cf0; border-radius: 20px 0 0 20px;
}
.quote-text { font-size: 40px; color: #222; margin-left: 18px; }
.quote-meta { font-size: 28px; color: #757575; margin-left: 18px; margin-top: 10px; }
.quoted-card-blue {
background: #eafaff; border-radius: 20px; padding: 20px; margin-bottom: 16px;
box-shadow: 0 1px 0 rgba(0,0,0,0.04); position: relative;
}
.quoted-card-blue::before {
content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: #2f7cf0; border-radius: 20px 0 0 20px;
}
/* Composer */
.composer {
position: absolute; left: 0; right: 0; bottom: 0;
height: 220px; background: #fff; border-top: 1px solid #e6e6e6;
padding: 20px 28px 30px; box-sizing: border-box;
}
.compose-row {
display: flex; align-items: center; gap: 24px;
}
.plus-btn {
width: 116px; height: 116px; border-radius: 58px; background: #1e88e5;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 6px 12px rgba(30,136,229,.3);
}
.input {
flex: 1; height: 116px; border-radius: 58px; background: #f5f7fb;
display: flex; align-items: center; padding: 0 34px; box-sizing: border-box;
border: 1px solid #e2e6ed; color: #777; font-size: 40px;
}
.input .placeholder { flex: 1; color: #838383; }
.compose-actions { display: flex; align-items: center; gap: 26px; }
.action-small { width: 56px; height: 56px; }
/* Simple icons */
svg { display: block; }
</style>
</head>
<body>
<div id="render-target">
<!-- Status Bar -->
<div class="status-bar">
<div class="status-left">3:14</div>
<div class="status-right">
<!-- small walk/person icon -->
<svg class="icon" viewBox="0 0 24 24"><circle cx="12" cy="4" r="3" fill="#666"/><path d="M9 9l3 2 3-2 2 2-3 4v5h-2v-4l-3-3-2 3-2-1 3-5z" fill="#666"/></svg>
<!-- signal -->
<svg class="icon" viewBox="0 0 24 24"><path d="M3 17h2v4H3zm4-6h2v10H7zm4-3h2v13h-2zm4-4h2v17h-2z" fill="#666"/></svg>
<!-- wifi -->
<svg class="icon" viewBox="0 0 24 24"><path d="M2 8c4.6-4 15.4-4 20 0l-2 2c-3.6-3.2-12.4-3.2-16 0L2 8zm3 4c3.5-3 13.5-3 17 0l-2 2c-2.7-2.1-10.3-2.1-13 0l-2-2zm5 5l2 2 2-2c-1.2-1-4.8-1-6 0z" fill="#666"/></svg>
<!-- battery -->
<svg class="icon" viewBox="0 0 24 24"><path d="M2 8h16v8H2z" fill="none" stroke="#666" stroke-width="2"/><rect x="4" y="10" width="12" height="4" fill="#666"/><rect x="18" y="10" width="2" height="4" fill="#666"/></svg>
</div>
</div>
<!-- Header -->
<div class="header">
<div class="header-top">
<div class="back-wrap">
<svg class="action-icon" viewBox="0 0 24 24">
<path d="M15 6l-6 6 6 6" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<div class="avatar">RW</div>
<div class="title-wrap">
<div class="name">Richard Wagner</div>
<div class="active"><span class="dot"></span>Active now</div>
</div>
</div>
<div class="header-actions">
<!-- video -->
<svg class="action-icon" viewBox="0 0 24 24">
<rect x="3" y="6" width="12" height="12" rx="2" fill="none" stroke="#111" stroke-width="2"/>
<path d="M15 9l6-3v12l-6-3z" fill="none" stroke="#111" stroke-width="2" stroke-linejoin="round"/>
</svg>
<!-- phone -->
<svg class="action-icon" viewBox="0 0 24 24">
<path d="M6 2l4 3-2 3c1 2 3 4 5 5l3-2 3 4-2 3c-7 0-14-7-14-14L6 2z" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
</div>
</div>
<!-- Conversation -->
<div class="content">
<!-- Divider: Yesterday -->
<div class="divider"><div class="line"></div>Yesterday<div class="line"></div></div>
<!-- Right message -->
<div class="msg-row right">
<div class="msg-time">4:37 PM</div>
<div class="bubble sent">Hii Richard</div>
</div>
<!-- Divider: Today -->
<div class="divider" style="margin-top: 40px;"><div class="line"></div>Today<div class="line"></div></div>
<!-- Left messages with avatar -->
<div class="msg-row left">
<div class="avatar-small">RW</div>
<div class="bubble received">Hi Natalie</div>
<div class="smiley"></div>
</div>
<div class="msg-row left" style="margin-top: 18px;">
<div class="avatar-small">RW</div>
<div class="bubble received">Hi Natalie</div>
<div class="smiley"></div>
</div>
<!-- Right message -->
<div class="msg-row right" style="margin-top: 24px;">
<div class="msg-time">8:14 AM</div>
<div class="bubble sent">How are you doing?</div>
</div>
<!-- Left reply with quoted message -->
<div class="msg-row left" style="margin-top: 30px;">
<div class="avatar-small">RW</div>
<div class="bubble received" style="max-width: 760px;">
<div class="quoted-card">
<div class="quote-text">↩️ How are you doing?</div>
<div class="quote-meta">Natalie Larson, Today at 8:14 AM</div>
</div>
I'm good, what about you, Natalie?
</div>
<div class="smiley"></div>
</div>
<!-- Right reply quoting previous -->
<div class="msg-row right" style="margin-top: 40px;">
<div class="msg-time">9:32 AM</div>
<div class="bubble sent" style="max-width: 760px;">
<div class="quoted-card-blue">
<div class="quote-text">↩️ I'm good, what about you, Natalie?</div>
<div class="quote-meta">Richard Wagner, Today at 8:41 AM</div>
</div>
I’m Good
</div>
</div>
<!-- A preview placeholder for an image message later (partial at bottom in screenshot) -->
<div class="msg-row left" style="margin-top: 40px;">
<div class="avatar-small">RW</div>
<div class="bubble received">
<div style="width: 560px; height: 240px; background:#E0E0E0; border:1px solid #BDBDBD; display:flex; align-items:center; justify-content:center; color:#757575;">
[IMG: Shared Photo Thumbnail]
</div>
</div>
</div>
</div>
<!-- Composer -->
<div class="composer">
<div class="compose-row">
<div class="plus-btn">
<svg viewBox="0 0 24 24" width="56" height="56">
<path d="M12 5v14M5 12h14" stroke="#fff" stroke-width="3" stroke-linecap="round"/>
</svg>
</div>
<div class="input">
<span class="placeholder">Type a message</span>
<div class="compose-actions">
<!-- emoji -->
<svg class="action-small" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="10" fill="none" stroke="#666" stroke-width="2"/>
<circle cx="9" cy="10" r="1.5" fill="#666"/>
<circle cx="15" cy="10" r="1.5" fill="#666"/>
<path d="M7 15c3 3 7 3 10 0" fill="none" stroke="#666" stroke-width="2" stroke-linecap="round"/>
</svg>
<!-- attach/send icons approximations -->
<svg class="action-small" viewBox="0 0 24 24">
<path d="M4 13l8-8a4 4 0 115.7 5.7L9.7 19A6 6 0 011.3 10.3L11 1.5" fill="none" stroke="#666" stroke-width="2" stroke-linecap="round"/>
</svg>
<svg class="action-small" viewBox="0 0 24 24">
<path d="M3 12l18-8-5 18-5-7-8-3z" fill="none" stroke="#666" stroke-width="2" stroke-linejoin="round"/>
</svg>
</div>
</div>
</div>
<!-- gesture bar -->
<div style="height: 40px; display:flex; align-items:center; justify-content:center; margin-top: 18px;">
<div style="width: 200px; height: 10px; background:#d0d0d0; border-radius: 5px;"></div>
</div>
</div>
</div>
</body>
</html>