Compare commits

..

3 Commits

Author SHA1 Message Date
DESKTOP-KSVGT20\shkim ae61c02868 Replace hero SVG with wedding image 2026-05-10 20:51:44 +09:00
DESKTOP-KSVGT20\shkim 875f515114 Remove upload helper copy 2026-05-10 20:46:55 +09:00
DESKTOP-KSVGT20\shkim f88ff4579e Redesign upload archive page 2026-05-10 20:46:12 +09:00
5 changed files with 164 additions and 106 deletions
+1 -1
View File
@@ -34,6 +34,6 @@ The server cron runs this once per minute.
- Uploads: `/volume2/AKA Drive/사진 받기` - Uploads: `/volume2/AKA Drive/사진 받기`
- Upload page template: `src/public/upload.html` - Upload page template: `src/public/upload.html`
- Upload page style: `src/public/upload.css` - Upload page style: `src/public/upload.css`
- Upload page image: `src/public/hero.svg` - Upload page image: `src/public/hero-wedding.png`
Each request creates its own folder under the upload directory. Each request creates its own folder under the upload directory.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

-9
View File
@@ -1,9 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" role="img" aria-label="">
<rect width="1600" height="900" fill="#20313b"/>
<rect x="980" y="90" width="420" height="300" rx="18" fill="#e6eef5" opacity=".92"/>
<rect x="1060" y="160" width="260" height="28" rx="14" fill="#7393a7"/>
<rect x="1060" y="220" width="190" height="22" rx="11" fill="#94aebd"/>
<circle cx="1240" cy="455" r="115" fill="#f2c94c" opacity=".85"/>
<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"/>
<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"/>
</svg>

Before

Width:  |  Height:  |  Size: 703 B

+143 -82
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,192 @@
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 {
display: block; display: block;
} }
.dropzone__title { .file-picker__label {
font-size: 18px; font-size: 15px;
font-weight: 750; font-weight: 800;
}
.dropzone__meta {
margin-top: 6px;
color: var(--muted);
font-size: 14px;
} }
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;
} }
} }
+20 -14
View File
@@ -8,23 +8,29 @@
</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-wedding.png" 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>
<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>