Files
photo-req/src/public/upload.css
T
2026-05-10 21:28:16 +09:00

412 lines
9.4 KiB
CSS

:root {
color-scheme: light;
--ink: #4b4b4b;
--deep: #174f49;
--deep-dark: #103f3a;
--paper: #ffffff;
--line: rgba(35, 35, 35, 0.14);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: #ffffff;
color: var(--ink);
font-family: "Times New Roman", "Batang", "Apple SD Gothic Neo", serif;
}
.upload-page {
width: 100%;
min-height: 100vh;
margin: 0 auto;
padding: 0;
background:
radial-gradient(circle at 50% 18%, rgba(220, 220, 214, 0.28), transparent 42%),
linear-gradient(180deg, #ffffff 0%, #fbfbfa 74%, #ffffff 100%);
}
.wedding-card {
width: min(100%, 720px);
min-height: 100vh;
margin: 0 auto;
padding: 0 clamp(12px, 3.6vw, 34px) 38px;
background:
radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.7), transparent 44%),
linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fbfbfa 82%, #ffffff 100%);
text-align: center;
}
.poster {
position: relative;
width: min(100%, 620px);
margin: 0 auto;
padding: 0 clamp(4px, 1.4vw, 10px);
}
.poster::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
border-radius: 0 0 22px 22px;
background: rgba(232, 232, 226, 0.38);
filter: blur(24px);
transform: translateY(12px) scale(0.96);
pointer-events: none;
}
.poster__image {
position: relative;
z-index: 1;
display: block;
width: 100%;
height: auto;
filter: drop-shadow(0 18px 30px rgba(88, 88, 80, 0.08));
-webkit-mask-image:
linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
-webkit-mask-composite: source-in;
mask-image:
linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%),
linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
mask-composite: intersect;
}
.poster__plate {
position: absolute;
z-index: 2;
left: 10.5%;
right: 10.5%;
bottom: 11.8%;
padding: clamp(18px, 4vw, 28px) 12px clamp(14px, 3vw, 22px);
background: rgba(255, 255, 255, 0.72);
border-top: 1px solid rgba(55, 55, 55, 0.12);
border-bottom: 1px solid rgba(55, 55, 55, 0.12);
backdrop-filter: blur(2px);
}
h1 {
margin: 0;
color: #565656;
font-size: clamp(32px, 7.5vw, 50px);
line-height: 1.1;
font-weight: 400;
letter-spacing: 0.12em;
word-break: keep-all;
}
.poster__date,
.poster__subtitle {
margin: 0;
color: #555555;
letter-spacing: 0.24em;
white-space: nowrap;
}
.poster__date {
margin-top: clamp(12px, 2.8vw, 20px);
font-size: clamp(16px, 3.3vw, 24px);
font-weight: 700;
}
.poster__subtitle {
margin-top: clamp(14px, 3vw, 22px);
font-size: clamp(15px, 3.3vw, 24px);
font-weight: 700;
}
.upload-panel {
width: min(100%, 430px);
margin: clamp(10px, 2.8vw, 20px) auto 0;
}
.upload-panel__today {
display: flex;
align-items: center;
justify-content: center;
gap: clamp(10px, 2.4vw, 16px);
margin: 0 0 clamp(18px, 3.6vw, 26px);
color: #4f4f4f;
font-size: clamp(24px, 4.8vw, 35px);
line-height: 1.15;
font-weight: 400;
letter-spacing: 0.08em;
white-space: nowrap;
}
.upload-panel__today::before,
.upload-panel__today::after {
content: "";
flex: 0 0 clamp(28px, 6vw, 42px);
height: clamp(16px, 3.4vw, 24px);
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 36'%3E%3Cg fill='none' stroke='%2389a69e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 28c13-12 27-20 47-23'/%3E%3Cpath d='M25 22c-9-1-15-7-17-15 10 1 17 6 20 14' fill='%2389a69e' fill-opacity='.5'/%3E%3Cpath d='M42 13c-7-1-12-5-14-12 8 0 14 4 17 11' fill='%2389a69e' fill-opacity='.55'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
opacity: 0.78;
}
.upload-panel__today::after {
transform: scaleX(-1);
}
.select-button,
.upload-button,
.upload-again {
position: relative;
display: grid;
place-items: center;
width: 100%;
min-height: clamp(68px, 12vw, 86px);
border: 0;
border-radius: 7px;
padding: 15px 24px;
background:
radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.13), transparent 58%),
linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 30% 70%, rgba(255, 255, 255, 0.05)),
linear-gradient(180deg, #1c5d57 0%, #155149 100%);
box-shadow:
0 14px 24px rgba(22, 72, 67, 0.17),
inset 0 1px 0 rgba(255, 255, 255, 0.2),
inset 0 -8px 16px rgba(0, 0, 0, 0.09);
color: #ffffff;
font: inherit;
font-size: clamp(27px, 5.2vw, 37px);
line-height: 1.1;
font-weight: 400;
letter-spacing: 0.08em;
cursor: pointer;
text-decoration: none;
}
.select-button {
margin-bottom: 14px;
background:
radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.2), transparent 58%),
linear-gradient(180deg, #f8f8f6 0%, #eeeee9 100%);
box-shadow:
0 9px 18px rgba(85, 85, 85, 0.11),
inset 0 0 0 1px rgba(83, 83, 83, 0.14);
color: #565656;
font-size: clamp(24px, 4.6vw, 32px);
}
.file-picker input[type="file"] {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.file-summary {
margin: 0 0 14px;
padding: 16px 18px;
border: 1px solid rgba(137, 166, 158, 0.35);
border-radius: 8px;
background: rgba(255, 255, 255, 0.86);
box-shadow: 0 8px 18px rgba(55, 55, 55, 0.06);
text-align: left;
}
.file-summary__title {
margin: 0 0 10px;
color: #45615c;
font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
font-size: 14px;
font-weight: 700;
}
.file-list {
display: grid;
gap: 8px;
margin: 0;
padding: 0;
list-style: none;
}
.file-list li {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
color: #4f4f4f;
font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
font-size: 13px;
}
.file-list span:first-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-list span:last-child {
color: #87928f;
font-size: 12px;
}
.upload-status {
min-height: 22px;
margin: 12px 0 0;
color: #64736f;
font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
font-size: 13px;
line-height: 1.45;
}
.upload-status[data-type="error"] {
color: #a64635;
}
.upload-button:hover {
background:
radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.16), transparent 58%),
linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 30% 70%, rgba(255, 255, 255, 0.07)),
linear-gradient(180deg, #216d65 0%, var(--deep-dark) 100%);
}
.select-button:hover {
background:
radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.26), transparent 58%),
linear-gradient(180deg, #ffffff 0%, #e9e9e3 100%);
}
.upload-button:disabled {
opacity: 0.48;
cursor: default;
}
.upload-panel[data-uploading="true"] .upload-button span {
visibility: hidden;
}
.upload-panel[data-uploading="true"] .upload-button::after {
content: "";
width: 28px;
height: 28px;
border: 3px solid rgba(255, 255, 255, 0.35);
border-top-color: #ffffff;
border-radius: 50%;
animation: spin 0.9s linear infinite;
}
.upload-button:focus-visible,
.upload-again:focus-visible,
.file-picker:focus-within {
outline: 3px solid #89aaa3;
outline-offset: 3px;
}
.thank-you {
width: min(100%, 430px);
margin: clamp(18px, 4vw, 28px) auto 0;
padding: 26px 24px 28px;
border: 1px solid rgba(137, 166, 158, 0.32);
border-radius: 10px;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 14px 30px rgba(55, 55, 55, 0.08);
}
.thank-you__eyebrow {
margin: 0 0 10px;
color: #8aa69f;
font-family: "Times New Roman", "Batang", serif;
font-size: 15px;
font-weight: 700;
letter-spacing: 0.22em;
}
.thank-you h2 {
margin: 0;
color: #4f4f4f;
font-size: clamp(31px, 6vw, 42px);
line-height: 1.15;
font-weight: 400;
letter-spacing: 0.08em;
}
.thank-you p:last-of-type {
margin: 14px 0 22px;
color: #626262;
font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
font-size: 15px;
line-height: 1.6;
word-break: keep-all;
}
.thank-you--error {
border-color: rgba(166, 70, 53, 0.28);
}
.thank-you--error .thank-you__eyebrow,
.thank-you--error h2 {
color: #8c4d43;
}
.upload-again {
min-height: 58px;
margin: 0 auto;
font-size: clamp(22px, 4.4vw, 29px);
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 430px) {
.upload-page {
background:
radial-gradient(circle at 50% 14%, rgba(218, 218, 212, 0.24), transparent 44%),
linear-gradient(180deg, #ffffff 0%, #fbfbfa 78%, #ffffff 100%);
}
.wedding-card {
padding: 0 0 30px;
background:
radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.66), transparent 45%),
linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fbfbfa 82%, #ffffff 100%);
}
.poster {
width: 100%;
padding: 0;
}
.poster::before {
inset: 0 8px;
filter: blur(18px);
}
.poster__image {
-webkit-mask-image:
linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%),
linear-gradient(180deg, #000 0%, #000 89%, transparent 100%);
mask-image:
linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%),
linear-gradient(180deg, #000 0%, #000 89%, transparent 100%);
}
.poster__plate {
left: 9%;
right: 9%;
bottom: 11.2%;
}
.upload-panel {
width: min(calc(100% - 48px), 340px);
}
.thank-you {
width: min(calc(100% - 48px), 340px);
}
.upload-panel__today {
font-size: clamp(23px, 6.5vw, 29px);
}
}