Redesign upload archive page

This commit is contained in:
DESKTOP-KSVGT20\shkim
2026-05-10 20:46:12 +09:00
parent 00e0fe60b4
commit f88ff4579e
3 changed files with 228 additions and 102 deletions
+58 -8
View File
@@ -1,9 +1,59 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" role="img" aria-label=""> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 560" role="img" aria-label="">
<rect width="1600" height="900" fill="#20313b"/> <defs>
<rect x="980" y="90" width="420" height="300" rx="18" fill="#e6eef5" opacity=".92"/> <filter id="soft-pencil" x="-10%" y="-10%" width="120%" height="120%">
<rect x="1060" y="160" width="260" height="28" rx="14" fill="#7393a7"/> <feTurbulence type="fractalNoise" baseFrequency=".7" numOctaves="2" seed="8" result="noise"/>
<rect x="1060" y="220" width="190" height="22" rx="11" fill="#94aebd"/> <feDisplacementMap in="SourceGraphic" in2="noise" scale="1.4"/>
<circle cx="1240" cy="455" r="115" fill="#f2c94c" opacity=".85"/> </filter>
<path d="M0 610c160-54 270-78 430-18 142 53 248 42 370-24 146-80 268-72 428 15 132 72 238 78 372 24v293H0z" fill="#0f766e"/> <linearGradient id="fade" x1="0" x2="0" y1="0" y2="1">
<path d="M0 690c146-44 272-48 420 6 126 46 246 42 390-12 168-62 318-48 460 24 124 63 220 70 330 30v162H0z" fill="#115e59"/> <stop offset="0" stop-color="#fff" stop-opacity="0"/>
<stop offset=".68" stop-color="#fff" stop-opacity=".62"/>
<stop offset="1" stop-color="#fff"/>
</linearGradient>
</defs>
<g filter="url(#soft-pencil)" stroke="#242424" stroke-linecap="round" stroke-linejoin="round">
<path d="M58 520c15-78 43-135 88-171 40-31 104-40 142-12 43 31 67 95 73 183z" fill="#e8fbf5" stroke-width="7"/>
<path d="M87 525c13-55 34-97 67-124" fill="none" stroke-width="5" opacity=".55"/>
<path d="M205 355l42 1 10 80-68 2z" fill="#ffffff" stroke-width="6"/>
<path d="M209 361l38 1-19 48z" fill="#5f6768" stroke-width="5"/>
<path d="M152 192c-40 34-42 108-4 153 32 38 94 47 129 10 33-35 39-107 14-150-28-49-98-47-139-13z" fill="#ffc2ac" stroke-width="7"/>
<path d="M114 221c20-83 115-119 178-75 31 21 48 61 40 101-24-18-33-49-27-74-22 31-60 57-106 72-29 9-58 13-85 10z" fill="#686863" stroke-width="7"/>
<path d="M246 145c-23 42-62 71-115 88" fill="none" stroke-width="5"/>
<path d="M306 197c20 10 25 40 11 61-12 18-32 13-39 0" fill="#ffc2ac" stroke-width="6"/>
<path d="M165 288c9 11 28 16 44 11" fill="none" stroke-width="6"/>
<path d="M144 258c0 8-3 15-8 15s-9-7-9-15 4-15 9-15 8 7 8 15z" fill="#050505" stroke="none"/>
<path d="M230 258c0 8-4 15-9 15s-8-7-8-15 3-15 8-15 9 7 9 15z" fill="#050505" stroke="none"/>
<path d="M106 308c21 9 40 11 58 7" fill="none" stroke="#f4a0a2" stroke-width="10" opacity=".35"/>
<path d="M244 304c20-2 37-9 52-21" fill="none" stroke="#f4a0a2" stroke-width="10" opacity=".28"/>
<path d="M311 526c0-82 17-153 58-190 54-48 153-43 194 17 28 41 37 98 33 173z" fill="#ffffff" stroke-width="7"/>
<path d="M394 340c-40 24-70 78-83 166" fill="none" stroke-width="5" opacity=".35"/>
<path d="M381 474c16-40 53-63 105-70" fill="none" stroke="#ebebeb" stroke-width="22"/>
<path d="M389 191c-38 33-46 95-15 137 29 39 91 47 128 12 35-34 43-93 18-134-26-43-93-50-131-15z" fill="#ffd0bd" stroke-width="7"/>
<path d="M361 216c35-57 99-79 150-47 41 25 61 77 51 130 38 41 30 109-23 131-26 11-56 6-77-13 22-40 27-91 15-153-43-4-82-20-116-48z" fill="#9a7768" stroke-width="7"/>
<path d="M406 182c26 35 67 57 122 66" fill="none" stroke-width="5" opacity=".6"/>
<path d="M536 305c19 7 26 30 14 48-10 15-27 13-34 2" fill="#ffd0bd" stroke-width="6"/>
<path d="M435 284c0 8-4 15-9 15s-8-7-8-15 3-15 8-15 9 7 9 15z" fill="#050505" stroke="none"/>
<path d="M502 284c0 8-3 15-8 15s-9-7-9-15 4-15 9-15 8 7 8 15z" fill="#050505" stroke="none"/>
<path d="M440 320c19 16 44 15 61-2" fill="none" stroke-width="6"/>
<path d="M370 315c20 11 40 14 59 10" fill="none" stroke="#f3a7aa" stroke-width="11" opacity=".45"/>
<path d="M503 320c23-1 40-9 52-23" fill="none" stroke="#f3a7aa" stroke-width="11" opacity=".36"/>
<path d="M520 220c42 15 69 50 78 104" fill="none" stroke="#765449" stroke-width="5" opacity=".45"/>
<path d="M546 314c30 37 35 76 15 119" fill="none" stroke="#765449" stroke-width="5" opacity=".45"/>
<path d="M532 234c14 12 33 14 56 8" fill="none" stroke="#0d6a70" stroke-width="5"/>
<path d="M572 243c10 33 12 64 6 92" fill="none" stroke="#0d6a70" stroke-width="5"/>
<path d="M115 416c42 17 85 22 130 15 39-6 73-20 103-42" fill="none" stroke-width="7"/>
<path d="M308 390c15-25 44-37 74-28 25 8 44 30 52 59 25-7 51 8 61 33 14 36-12 74-49 71H300c-38 4-65-31-53-68 9-28 34-45 61-42z" fill="#fffdf1" stroke-width="7"/>
<path d="M304 433c-12-15-31-19-48-10-17 9-25 28-20 46 4 15 17 28 33 31" fill="#ffc2ac" stroke-width="7"/>
<path d="M364 466c-12 12-17 29-15 50" fill="none" stroke="#b8c6c5" stroke-width="5"/>
<path d="M387 469c13 13 19 30 18 52" fill="none" stroke="#b8c6c5" stroke-width="5"/>
<path d="M311 425c13-5 24-5 35 0m-22 28c14-10 28-10 42 0m23-35c17-8 33-7 47 3m-15 41c15-9 30-9 45 0m-115 38c18-9 35-9 51 0" fill="none" stroke="#6f6855" stroke-width="4" opacity=".7"/>
</g>
<rect y="440" width="640" height="120" fill="url(#fade)"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 703 B

After

Width:  |  Height:  |  Size: 4.3 KiB

+149 -80
View File
@@ -1,12 +1,13 @@
:root { :root {
color-scheme: light; color-scheme: light;
--ink: #16202a; --ink: #070707;
--muted: #667085; --muted: #777777;
--line: #d4dce7; --paper: #ffffff;
--bg: #f5f7fb; --warm: #fff7ca;
--panel: #ffffff; --button: #c90000;
--accent: #0f766e; --button-dark: #9e0000;
--accent-dark: #115e59; --line: #d9d9d9;
--teal: #0d6a70;
} }
* { * {
@@ -16,132 +17,200 @@
body { body {
margin: 0; margin: 0;
min-height: 100vh; min-height: 100vh;
background: var(--bg); background: #1f1f1f;
color: var(--ink); color: var(--ink);
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-family: "Arial", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
} }
.upload-page { .upload-page {
width: min(920px, calc(100% - 28px)); width: min(100%, 512px);
margin: 24px auto; min-height: 100vh;
margin: 0 auto;
padding: 4px 9px 8px;
background: #1f1f1f;
} }
.hero { .archive-card {
min-height: 300px;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
border-radius: 8px; min-height: calc(100vh - 12px);
background: #20313b; padding: clamp(250px, 52vh, 555px) 18px 28px;
}
.hero__media {
position: absolute;
inset: 0;
background: background:
linear-gradient(90deg, rgba(12, 20, 28, 0.78), rgba(12, 20, 28, 0.18)), linear-gradient(180deg, var(--warm) 0, #fffdf0 14%, var(--paper) 38%, var(--paper) 100%);
url("/assets/hero.svg"); text-align: center;
background-size: cover;
background-position: center;
} }
.hero__content { .archive-card__glow {
position: absolute;
left: 0;
right: 0;
top: 430px;
z-index: 1;
height: 190px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 70%);
pointer-events: none;
}
.archive-card__art {
position: absolute;
left: 50%;
top: clamp(185px, 35vh, 330px);
z-index: 0;
width: min(84%, 390px);
height: auto;
transform: translate(-50%, -50%);
filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.08));
}
.archive-card__copy,
.upload-panel {
position: relative; position: relative;
width: min(620px, calc(100% - 36px)); z-index: 2;
padding: 48px 28px;
color: white;
} }
.eyebrow { .archive-card__copy {
margin: 0 0 8px; margin: 0 auto;
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
} }
h1 { h1 {
margin: 0; margin: 0;
font-size: 34px; font-size: clamp(29px, 7vw, 36px);
line-height: 1.18; line-height: 1.12;
font-weight: 900;
word-break: keep-all;
} }
.summary { .archive-card__subtitle {
margin: 14px 0 0; margin: 8px 0 0;
max-width: 520px; font-size: clamp(27px, 6.2vw, 34px);
color: rgba(255, 255, 255, 0.86); line-height: 1.1;
font-size: 16px; font-weight: 900;
} }
.upload-panel { .upload-panel {
margin-top: 16px; width: min(100%, 270px);
padding: 20px; margin: 60px auto 0;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);
} }
.dropzone { .upload-panel__today {
margin: 0 0 14px;
color: var(--muted);
font-size: clamp(27px, 6vw, 33px);
line-height: 1.12;
font-weight: 900;
}
.file-picker {
display: block; display: block;
padding: 24px; width: 100%;
border: 2px dashed var(--line); margin-bottom: 8px;
border-radius: 8px; padding: 11px 12px;
background: #fbfcfe; border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.9);
color: #333333;
cursor: pointer; cursor: pointer;
} }
.dropzone__title, .file-picker__label,
.dropzone__meta { .file-picker__meta {
display: block; display: block;
} }
.dropzone__title { .file-picker__label {
font-size: 18px; font-size: 15px;
font-weight: 750; font-weight: 800;
} }
.dropzone__meta { .file-picker__meta {
margin-top: 6px; margin-top: 3px;
color: var(--muted); color: #747474;
font-size: 14px; font-size: 12px;
line-height: 1.3;
} }
input[type="file"] { input[type="file"] {
margin-top: 16px;
width: 100%; width: 100%;
margin-top: 10px;
color: #3a3a3a;
font: inherit;
font-size: 12px;
} }
button { .upload-button {
margin-top: 16px; display: grid;
place-items: center;
width: 100%; width: 100%;
border: 0; min-height: 99px;
border-radius: 6px; border: 2px solid #280000;
padding: 13px 16px; border-radius: 0;
background: var(--accent); padding: 14px 18px;
color: white; background:
linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 43%),
linear-gradient(180deg, var(--button) 0%, #ca0000 52%, var(--button-dark) 100%);
box-shadow:
inset 0 2px 0 rgba(255, 255, 255, 0.2),
inset 0 -16px 24px rgba(90, 0, 0, 0.26);
color: #ffffff;
font: inherit; font: inherit;
font-weight: 750; font-size: 26px;
line-height: 1.1;
font-weight: 900;
text-shadow: 0 2px 1px rgba(0, 0, 0, 0.25);
cursor: pointer; cursor: pointer;
} }
button:hover { .upload-button:hover {
background: var(--accent-dark); background:
linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 43%),
linear-gradient(180deg, #dc0000 0%, #c60000 50%, #8e0000 100%);
} }
@media (max-width: 640px) { .upload-button:focus-visible,
.file-picker:focus-within {
outline: 3px solid var(--teal);
outline-offset: 3px;
}
.upload-panel__note {
margin: 10px auto 0;
color: #898989;
font-size: 12px;
line-height: 1.4;
word-break: keep-all;
}
@media (min-width: 680px) {
.upload-page { .upload-page {
width: calc(100% - 18px); padding-top: 10px;
margin: 9px auto; padding-bottom: 12px;
} }
.hero { .archive-card {
min-height: 260px; min-height: 1068px;
padding-top: 585px;
} }
.hero__content { .archive-card__art {
width: 100%; top: 365px;
padding: 36px 20px;
} }
h1 { .archive-card__glow {
font-size: 28px; top: 535px;
}
}
@media (max-width: 420px) {
.upload-page {
padding-left: 6px;
padding-right: 6px;
}
.archive-card {
padding-left: 14px;
padding-right: 14px;
}
.upload-panel {
margin-top: 48px;
} }
} }
+21 -14
View File
@@ -8,23 +8,30 @@
</head> </head>
<body> <body>
<main class="upload-page"> <main class="upload-page">
<section class="hero"> <section class="archive-card" aria-labelledby="archive-title">
<div class="hero__media" aria-hidden="true"></div> <div class="archive-card__glow" aria-hidden="true"></div>
<div class="hero__content"> <img class="archive-card__art" src="/assets/hero.svg" alt="">
<p class="eyebrow">Photo Request</p>
<h1>{{title}}</h1>
<p class="summary">이 링크 전체에서 총 {{maxMb}} MB까지 업로드할 수 있어.</p>
</div>
</section>
<section class="upload-panel"> <div class="archive-card__copy">
<form method="post" action="/r/{{slug}}" enctype="multipart/form-data"> <h1 id="archive-title">{{title}}</h1>
<label class="dropzone"> <p class="archive-card__subtitle">WEDDING ARCHIVE</p>
<span class="dropzone__title">사진이나 영상을 선택해줘</span> </div>
<span class="dropzone__meta">허용 형식: {{allowedExts}}</span>
<form class="upload-panel" method="post" action="/r/{{slug}}" enctype="multipart/form-data">
<p class="upload-panel__today">당신이 본 오늘</p>
<label class="file-picker">
<span class="file-picker__label">사진 선택</span>
<span class="file-picker__meta">사진과 영상을 함께 올릴 수 있어</span>
<input type="file" name="files" accept="{{accept}}" multiple required> <input type="file" name="files" accept="{{accept}}" multiple required>
</label> </label>
<button type="submit">업로드</button>
<button class="upload-button" type="submit" aria-label="업로드">
<span>축하 사진</span>
<span>올리기</span>
</button>
<p class="upload-panel__note">총 {{maxMb}} MB까지 · {{allowedExts}}</p>
</form> </form>
</section> </section>
</main> </main>