AndroidCode / code /10043 /10043_1.html
yhzheng1031's picture
Add files using upload-large-folder tool
fa881a6 verified
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Chat UI with Bottom Sheet</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: Arial, Helvetica, sans-serif; }
#render-target {
width: 1080px; height: 2400px;
position: relative; overflow: hidden;
background: #FFFFFF;
}
/* Status bar */
.status-bar {
height: 120px;
background: #ffffff;
color: #333;
display: flex;
align-items: center;
padding: 0 36px;
font-size: 40px;
box-sizing: border-box;
}
.status-left { flex: 1; display: flex; align-items: center; gap: 18px; }
.status-right { display: flex; align-items: center; gap: 28px; }
.status-icon { width: 40px; height: 40px; }
/* Header */
.header {
height: 164px;
border-bottom: 1px solid #e5e5e5;
display: flex; align-items: center;
padding: 0 30px;
box-sizing: border-box;
}
.back-btn { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; margin-right: 6px; }
.avatar {
width: 96px; height: 96px; border-radius: 50%;
background: #E0E0E0; border: 1px solid #BDBDBD;
display: flex; align-items: center; justify-content: center;
color: #757575; font-size: 32px; margin-right: 24px;
}
.title { flex: 1; }
.title .name { font-size: 44px; font-weight: 700; color: #222; }
.status-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.green-dot { width: 18px; height: 18px; background: #22aa3f; border-radius: 50%; }
.status-text { font-size: 32px; color: #444; }
.header-actions { display: flex; align-items: center; gap: 36px; }
.icon-btn { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
/* Conversation area */
.chat {
padding: 24px 30px 180px 30px;
box-sizing: border-box;
}
.day-sep {
display: flex; align-items: center; gap: 24px; color: #666; font-size: 32px;
margin: 28px 0;
}
.day-sep .line { flex: 1; height: 2px; background: #d1d1d1; }
.msg-row { display: flex; align-items: flex-end; margin: 32px 0; }
.msg-row .msg-avatar { margin-right: 18px; }
.msg-bubble {
max-width: 620px;
padding: 26px 32px;
border-radius: 28px;
font-size: 40px;
line-height: 1.3;
color: #222;
}
.incoming { background: #eaeaea; }
.outgoing { background: #77A8AB; color: #0b1f22; margin-left: auto; }
.msg-time { font-size: 30px; color: #666; margin: 0 18px; }
.emoji { width: 54px; height: 54px; border-radius: 50%; background: #E0E0E0; border: 1px solid #BDBDBD; color: #757575;
display: flex; align-items: center; justify-content: center; font-size: 24px; margin-left: 18px; }
/* Dim overlay for sheet */
.overlay {
position: absolute; left: 0; top: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.35);
}
/* Bottom sheet */
.sheet {
position: absolute; left: 0; bottom: 80px;
width: 100%;
background: #ffffff;
border-top-left-radius: 36px; border-top-right-radius: 36px;
box-shadow: 0 0 0 rgba(0,0,0,0);
padding-bottom: 30px;
}
.handle {
width: 160px; height: 14px; background: #BDBDBD; border-radius: 7px;
margin: 20px auto 24px;
}
.sheet-section { margin: 0 24px 24px 24px; background: #f2f2f2; border-radius: 24px; overflow: hidden; }
.sheet-item {
display: flex; align-items: center; justify-content: flex-start;
padding: 28px; gap: 28px; font-size: 40px; color: #222; background: #f2f2f2;
border-bottom: 1px solid #e7e7e7;
}
.sheet-item:last-child { border-bottom: none; }
.sheet-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.danger { color: #d23a3a; }
.danger-row {
margin: 18px 24px 0 24px; background: #ffffff; border-radius: 24px; border: 1px solid #f1f1f1;
overflow: hidden;
}
.danger-item {
display: flex; align-items: center; gap: 28px; padding: 28px; font-size: 40px; color: #d23a3a;
}
/* Gesture bar */
.gesture-bar {
position: absolute; left: 50%; transform: translateX(-50%);
bottom: 20px; width: 320px; height: 16px; background: #777; border-radius: 8px;
}
/* Utility avatar placeholder */
.avatar-placeholder {
width: 80px; height: 80px; border-radius: 50%;
background: #E0E0E0; border: 1px solid #BDBDBD;
display: flex; align-items: center; justify-content: center;
color: #757575; font-size: 26px;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status Bar -->
<div class="status-bar">
<div class="status-left">
<div>3:12</div>
<svg class="status-icon" viewBox="0 0 24 24">
<path d="M12 2l3 6H9l3-6zm0 10a4 4 0 100 8 4 4 0 000-8z" fill="#666"/>
</svg>
</div>
<div class="status-right">
<svg class="status-icon" viewBox="0 0 24 24">
<path d="M12 2a8 8 0 018 8h-3a5 5 0 00-10 0H4a8 8 0 018-8z" fill="#666"/>
</svg>
<svg class="status-icon" viewBox="0 0 24 24">
<rect x="8" y="2" width="8" height="20" rx="2" fill="#666"/>
</svg>
</div>
</div>
<!-- Header -->
<div class="header">
<div class="back-btn">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M15 18l-6-6 6-6" stroke="#333" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div class="avatar">RW</div>
<div class="title">
<div class="name">Richard Wagner</div>
<div class="status-row">
<span class="green-dot"></span>
<span class="status-text">Active now</span>
</div>
</div>
<div class="header-actions">
<div class="icon-btn">
<svg width="48" height="48" viewBox="0 0 24 24">
<rect x="3" y="5" width="18" height="14" rx="2" stroke="#333" stroke-width="2" fill="none"/>
<path d="M16 10l5-3v10l-5-3" fill="#333"/>
</svg>
</div>
<div class="icon-btn">
<svg width="48" height="48" viewBox="0 0 24 24">
<path d="M6 2h5l3 5-4 3 3 5-4 3L6 22l-2-4 3-3-3-3 2-4z" fill="#333"/>
</svg>
</div>
</div>
</div>
<!-- Conversation -->
<div class="chat">
<div class="day-sep">
<div class="line"></div>
<div>Yesterday</div>
<div class="line"></div>
</div>
<!-- Right outgoing bubble -->
<div class="msg-row">
<div class="msg-time" style="margin-left:auto;">4:37 PM</div>
</div>
<div class="msg-row">
<div class="msg-bubble outgoing">Hii Richard</div>
</div>
<div class="day-sep" style="margin-top: 40px;">
<div class="line"></div>
<div>Today</div>
<div class="line"></div>
</div>
<!-- Incoming message -->
<div class="msg-row">
<div class="msg-avatar avatar-placeholder">RW</div>
<div style="font-size:30px; color:#666; margin-bottom: 8px;">Richard, 7:30 AM</div>
</div>
<div class="msg-row">
<div class="msg-avatar avatar-placeholder">RW</div>
<div class="msg-bubble incoming">Hi Natalie</div>
<div class="emoji">:)</div>
</div>
<!-- Another incoming -->
<div class="msg-row" style="margin-top: 22px;">
<div class="msg-avatar avatar-placeholder">RW</div>
<div style="font-size:30px; color:#666; margin-bottom: 8px;">Richard, 7:42 AM</div>
</div>
<div class="msg-row">
<div class="msg-avatar avatar-placeholder">RW</div>
<div class="msg-bubble incoming">Hi Natalie</div>
<div class="emoji">:)</div>
</div>
<!-- Outgoing latest -->
<div class="msg-row" style="margin-top: 60px;">
<div class="msg-time" style="margin-left:auto;">8:14 AM</div>
</div>
<div class="msg-row">
<div class="msg-bubble outgoing" style="margin-left:auto;">How are you doing?</div>
</div>
</div>
<!-- Dimmed overlay -->
<div class="overlay"></div>
<!-- Bottom Sheet -->
<div class="sheet">
<div class="handle"></div>
<div class="sheet-section">
<div class="sheet-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M4 20l4-4h8v-8H8l-4-4v16z" stroke="#333" stroke-width="2" fill="none" stroke-linejoin="round"/>
</svg>
</div>
<div>Edit</div>
</div>
<div class="sheet-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M15 6l-6 6 6 6" stroke="#333" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div>Reply</div>
</div>
<div class="sheet-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M9 6l6 6-6 6" stroke="#333" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</div>
<div>Forward</div>
</div>
</div>
<div class="sheet-section">
<div class="sheet-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<rect x="6" y="3" width="12" height="18" rx="2" stroke="#333" stroke-width="2" fill="none"/>
<path d="M9 7h6M9 11h6M9 15h6" stroke="#333" stroke-width="2"/>
</svg>
</div>
<div>Copy</div>
</div>
<div class="sheet-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M7 17h10M6 7h12M8 12h8" stroke="#333" stroke-width="2"/>
<text x="4" y="9" font-size="6" fill="#333">aあ</text>
</svg>
</div>
<div>Translate</div>
</div>
<div class="sheet-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M6 4h12v16l-6-4-6 4V4z" stroke="#333" stroke-width="2" fill="none"/>
</svg>
</div>
<div>Add bookmark</div>
</div>
<div class="sheet-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9" stroke="#333" stroke-width="2" fill="none"/>
<path d="M9 12l2 2 4-4" stroke="#333" stroke-width="2" fill="none" stroke-linecap="round"/>
</svg>
</div>
<div>Select Messages</div>
</div>
</div>
<div class="danger-row">
<div class="danger-item">
<div class="sheet-icon">
<svg width="44" height="44" viewBox="0 0 24 24">
<path d="M4 7h16l-1 12H5L4 7z" fill="none" stroke="#d23a3a" stroke-width="2"/>
<path d="M10 3h4l1 4H9l1-4z" fill="#d23a3a"/>
</svg>
</div>
<div class="danger">Remove</div>
</div>
</div>
</div>
<!-- Gesture bar -->
<div class="gesture-bar"></div>
</div>
</body>
</html>