24 lines
1.7 KiB
HTML
24 lines
1.7 KiB
HTML
<!doctype html>
|
||
<html lang="ko"><head><meta charset="utf-8">
|
||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Jua&display=swap">
|
||
<style>
|
||
/* 영상 위에 얹는 투명 레이어. 창(132,240 · 816×1440) 왼쪽 아래, 신발이 보이도록 발 위(다리 높이)에 칩·제목을 두고, 그 아래 1397px 줄은 자막(bubble.html) 자리 */
|
||
:root { --main: #4f97e3; --deep: #2b6cb8; --ink: #28304a; }
|
||
* { margin: 0; box-sizing: border-box; }
|
||
html, body { width: 1080px; height: 1920px; overflow: hidden; background: transparent; }
|
||
.win { position: absolute; left: 132px; top: 240px; width: 816px; height: 1440px; border-radius: 40px; overflow: hidden; }
|
||
.shade { position: absolute; left: 0; right: 0; bottom: 0; height: 700px; background: linear-gradient(transparent, rgb(40 48 74 / .45) 55%, rgb(40 48 74 / .2)); }
|
||
.title { position: absolute; left: 176px; bottom: 543px; }
|
||
.chip { display: inline-block; padding: 9px 22px 7px; border-radius: 999px; background: var(--main); color: #fff; font: 30px/1.1 Jua, sans-serif; box-shadow: 0 4px 0 var(--deep); }
|
||
.headline { margin-top: 16px; font: 66px/1.12 Jua, sans-serif; color: #fff; letter-spacing: -1px; text-shadow: 0 3px 16px rgb(40 48 74 / .35); }
|
||
</style></head>
|
||
<body>
|
||
<div class="win"><div class="shade"></div></div>
|
||
<div class="title"><div class="chip">날씨각</div><div class="headline" id="h"></div></div>
|
||
<script>
|
||
const q = new URLSearchParams(location.search);
|
||
const age = q.get('age'); // 40~ 이면 '40대~'
|
||
document.getElementById('h').innerHTML = `이번주 ${age.replace(/~$/, '')}대${age.endsWith('~') ? '~' : ''}<br>${q.get('who')} ${q.get('label') || '코디'}`;
|
||
</script>
|
||
</body></html>
|