AndroidCode / code /10188 /10188_3.html
yhzheng1031's picture
Add files using upload-large-folder tool
5501681 verified
raw
history blame
4.26 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Save - Chinese fried rice</title>
<style>
body {
margin: 0;
padding: 0;
background: transparent;
}
#render-target {
position: relative;
overflow: hidden;
width: 1080px;
height: 2400px;
background: #000000;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
color: #FFFFFF;
}
/* Hero / top image */
.hero {
position: relative;
width: 1080px;
height: 360px;
overflow: hidden;
}
.hero .img {
position: absolute;
inset: 0;
background: #E0E0E0;
border-bottom: 1px solid #BDBDBD;
display: flex;
align-items: center;
justify-content: center;
color: #757575;
font-size: 30px;
letter-spacing: .2px;
}
.hero:after {
/* fade to black like the screenshot */
content: "";
position: absolute;
left: 0; right: 0; bottom: 0;
height: 70%;
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,1) 100%);
pointer-events: none;
}
/* Back button */
.back-btn {
position: absolute;
top: 210px;
left: 40px;
width: 104px;
height: 104px;
background: #0C0C0C;
border-radius: 52px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.back-btn svg {
width: 40px;
height: 40px;
fill: none;
stroke: #FFFFFF;
stroke-width: 8;
stroke-linecap: round;
stroke-linejoin: round;
}
/* Titles */
.content {
position: relative;
padding: 24px 64px 0 64px;
}
.title {
font-size: 72px;
font-weight: 800;
margin: 8px 0 8px 0;
letter-spacing: -0.5px;
}
.subtitle {
font-size: 40px;
color: #D5D5D5;
margin: 0 0 38px 0;
}
/* Cookbook row */
.row {
display: flex;
align-items: center;
gap: 28px;
}
.mosaic {
width: 140px;
height: 140px;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 6px;
}
.mosaic .tile {
background: #F1E9DD;
border: 1px solid #BDBDBD;
}
.mosaic .tile.img {
background: #E0E0E0;
display: flex;
align-items: center;
justify-content: center;
color: #757575;
font-size: 20px;
text-align: center;
padding: 6px;
}
.row .texts .name {
font-size: 44px;
font-weight: 600;
margin: 0 0 8px 0;
}
.row .texts .meta {
font-size: 28px;
letter-spacing: 2px;
color: #9E9E9E;
margin: 0;
}
/* Create button */
.create-wrap {
position: absolute;
left: 90px;
right: 90px;
bottom: 230px;
display: flex;
justify-content: center;
}
.create-btn {
width: 900px;
max-width: 900px;
height: 128px;
border-radius: 64px;
border: 3px solid #9FDCCB;
color: #C7F2E7;
background: transparent;
font-size: 40px;
letter-spacing: .2px;
display: flex;
align-items: center;
justify-content: center;
}
/* Home indicator */
.home-indicator {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 84px;
width: 290px;
height: 12px;
background: #D9D9D9;
border-radius: 8px;
opacity: 0.9;
}
</style>
</head>
<body>
<div id="render-target">
<div class="hero">
<div class="img">[IMG: Blurred kitchen background]</div>
</div>
<div class="back-btn">
<svg viewBox="0 0 48 48" aria-hidden="true">
<path d="M30 8 L14 24 L30 40"></path>
</svg>
</div>
<div class="content">
<div class="title">Save</div>
<div class="subtitle">Chinese fried rice</div>
<div class="row">
<div class="mosaic">
<div class="tile img">[IMG: Food photo]</div>
<div class="tile"></div>
<div class="tile"></div>
<div class="tile"></div>
</div>
<div class="texts">
<div class="name">My first cookbook</div>
<p class="meta">1 items</p>
</div>
</div>
</div>
<div class="create-wrap">
<div class="create-btn">+ Create new cookbook</div>
</div>
<div class="home-indicator"></div>
</div>
</body>
</html>