feat: 카드뉴스 포스트(관리자 admin/, /v1/card API, 피드 이미지 슬라이드), 인스타 홍보 기획 문서
This commit is contained in:
1 parent
96cbd19c61
commit
739a8c59eb
107 files changed
+17684
-19
No files matched your search
@@ -0,0 +1,482 @@
|
||||
/* 인스타 카드 1080×1350. 브랜드 색·서체는 서비스(frontend b.css)와 같다 */
|
||||
.slide {
|
||||
--ink: #28304a;
|
||||
--paper: #f7fbff;
|
||||
--orange: #ff7a45;
|
||||
--rust: #d4552a;
|
||||
--blue: #4f97e3;
|
||||
--muted: #546078;
|
||||
--accent: var(--rust);
|
||||
--tint: #fff0e5;
|
||||
--soft: #ffd7bd;
|
||||
--stage: #e1efff;
|
||||
position: relative;
|
||||
width: 1080px;
|
||||
height: 1350px;
|
||||
overflow: hidden;
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
font-family: 'Pretendard Variable', Pretendard, sans-serif;
|
||||
isolation: isolate;
|
||||
word-break: keep-all;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.slide h1,
|
||||
.slide h2,
|
||||
.slide p,
|
||||
.slide ol {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-weight: 400;
|
||||
}
|
||||
.slide .line {
|
||||
display: block;
|
||||
}
|
||||
.slide strong {
|
||||
color: var(--accent);
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
/* 공통 머리 */
|
||||
.slide .topbar {
|
||||
position: absolute;
|
||||
top: 85px;
|
||||
left: 80px;
|
||||
right: 80px;
|
||||
height: 53px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
z-index: 5;
|
||||
}
|
||||
.slide .brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
font: 40px/1 Jua, sans-serif;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
.slide .brand-mark {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
background: var(--orange);
|
||||
box-shadow: 0 4px 0 var(--rust);
|
||||
}
|
||||
.slide .brand-mark::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: -7px;
|
||||
bottom: -2px;
|
||||
width: 23px;
|
||||
height: 12px;
|
||||
border-radius: 10px;
|
||||
background: #bddbfb;
|
||||
border: 3px solid var(--paper);
|
||||
}
|
||||
.slide .pagination {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
.slide .pagination i {
|
||||
display: block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: #cbd7e7;
|
||||
}
|
||||
.slide .pagination i.active {
|
||||
width: 30px;
|
||||
border-radius: 8px;
|
||||
background: var(--accent);
|
||||
}
|
||||
.slide .meta {
|
||||
position: absolute;
|
||||
top: 174px;
|
||||
left: 80px;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
letter-spacing: -0.6px;
|
||||
}
|
||||
.slide .meta.right {
|
||||
top: 92px;
|
||||
left: auto;
|
||||
right: 88px;
|
||||
}
|
||||
.slide .sparkle {
|
||||
position: absolute;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
background: var(--orange);
|
||||
clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* OOTD */
|
||||
.ootd .meta {
|
||||
top: 168px;
|
||||
}
|
||||
.ootd-title {
|
||||
position: absolute;
|
||||
top: 214px;
|
||||
left: 80px;
|
||||
right: 80px;
|
||||
font: 104px/1.1 Jua, sans-serif;
|
||||
letter-spacing: -3px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.ootd-stage {
|
||||
position: absolute;
|
||||
top: 350px;
|
||||
left: 80px;
|
||||
width: 920px;
|
||||
height: 840px;
|
||||
border-radius: 44px;
|
||||
overflow: hidden;
|
||||
background: var(--stage);
|
||||
}
|
||||
.ootd-stage > img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
.ootd-labels {
|
||||
position: absolute;
|
||||
inset: 24px;
|
||||
display: grid;
|
||||
grid-template-columns: auto auto;
|
||||
align-content: space-between;
|
||||
justify-content: space-between;
|
||||
justify-items: start;
|
||||
gap: 16px;
|
||||
}
|
||||
.ootd-labels span:nth-child(even) {
|
||||
justify-self: end;
|
||||
}
|
||||
.ootd-labels span {
|
||||
padding: 8px 20px;
|
||||
border-radius: 99px;
|
||||
background: #fff;
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 6px 16px #28304a1f;
|
||||
}
|
||||
.ootd-labels.only {
|
||||
inset: 60px;
|
||||
flex-direction: column;
|
||||
flex-wrap: nowrap;
|
||||
align-content: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 28px;
|
||||
}
|
||||
.ootd-labels.only span {
|
||||
padding: 18px 44px;
|
||||
font: 60px/1.2 Jua, sans-serif;
|
||||
}
|
||||
/* 날씨 타로 표지·마지막 장 */
|
||||
.cover-title {
|
||||
position: absolute;
|
||||
top: 170px;
|
||||
left: 100px;
|
||||
width: 880px;
|
||||
text-align: center;
|
||||
font-family: Jua, sans-serif;
|
||||
line-height: 1.07;
|
||||
letter-spacing: -4px;
|
||||
z-index: 3;
|
||||
}
|
||||
.cover-title .line:first-child {
|
||||
font-size: 64px;
|
||||
}
|
||||
.cover-title .line + .line {
|
||||
margin-top: 10px;
|
||||
font-size: 124px;
|
||||
color: var(--rust);
|
||||
text-shadow: 0 6px 0 var(--soft);
|
||||
}
|
||||
/* 타로 질문: 이 질문에 카드가 답한다 */
|
||||
.slide .cover-question {
|
||||
position: absolute;
|
||||
top: 400px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: max-content;
|
||||
max-width: 900px;
|
||||
padding: 14px 28px;
|
||||
border-radius: 99px;
|
||||
background: #fff;
|
||||
box-shadow: 0 6px 0 var(--soft), 0 14px 26px #28304a10;
|
||||
text-align: center;
|
||||
font-size: 34px;
|
||||
font-weight: 700;
|
||||
line-height: 1.3;
|
||||
letter-spacing: -1.2px;
|
||||
white-space: nowrap;
|
||||
z-index: 5;
|
||||
}
|
||||
.slide .cover-question b {
|
||||
margin-right: 10px;
|
||||
font: 38px/1 'Bagel Fat One', sans-serif;
|
||||
color: var(--rust);
|
||||
}
|
||||
.cover-stage {
|
||||
position: absolute;
|
||||
top: 600px;
|
||||
left: 92px;
|
||||
width: 896px;
|
||||
height: 500px;
|
||||
border-radius: 50%;
|
||||
background: var(--stage);
|
||||
}
|
||||
.back-card {
|
||||
position: absolute;
|
||||
width: 250px;
|
||||
height: 375px;
|
||||
border-radius: 22px;
|
||||
box-shadow: 0 13px 0 #b8cce1, 0 23px 26px #28304a1c;
|
||||
z-index: 3;
|
||||
}
|
||||
.back-card img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 22px;
|
||||
object-fit: cover;
|
||||
}
|
||||
.back-card .number {
|
||||
position: absolute;
|
||||
top: 42px;
|
||||
left: calc(50% - 44px);
|
||||
width: 88px;
|
||||
height: 88px;
|
||||
padding-bottom: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
font: 67px/1 'Bagel Fat One', sans-serif;
|
||||
color: var(--ink);
|
||||
background: var(--paper);
|
||||
border: 5px solid #ffb76f;
|
||||
box-shadow: 0 5px 0 #171f37;
|
||||
}
|
||||
.back-card.big.card-1 { left: 117px; top: 651px; transform: rotate(-9deg); }
|
||||
.back-card.big.card-2 { left: 415px; top: 588px; transform: rotate(1deg); }
|
||||
.back-card.big.card-3 { left: 713px; top: 651px; transform: rotate(9deg); }
|
||||
.tarot-cover .rabbit,
|
||||
.tarot-cover .bear {
|
||||
position: absolute;
|
||||
top: 1120px;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
z-index: 4;
|
||||
}
|
||||
.tarot-cover .rabbit { left: 145px; transform: rotate(-10deg); }
|
||||
.tarot-cover .bear { right: 143px; top: 1128px; transform: rotate(9deg); }
|
||||
.cover-date {
|
||||
position: absolute;
|
||||
top: 1200px;
|
||||
left: 190px;
|
||||
width: 700px;
|
||||
text-align: center;
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.6px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.tarot-cover .sparkle.a { left: 167px; top: 260px; width: 55px; height: 55px; transform: rotate(13deg); }
|
||||
.tarot-cover .sparkle.b { right: 166px; top: 374px; width: 40px; height: 40px; background: var(--blue); }
|
||||
.tarot-cover .sparkle.c { left: 508px; top: 1108px; width: 54px; height: 54px; }
|
||||
|
||||
/* 날씨 타로 결과 장 */
|
||||
|
||||
|
||||
/* 주제별 꾸밈 (topics.json skin): 반짝이(.sparkle)와 표지 장식(.deco) 모양만 바뀐다 */
|
||||
.slide .deco {
|
||||
position: absolute;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
background: var(--orange);
|
||||
clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
|
||||
opacity: 0.85;
|
||||
z-index: 2;
|
||||
}
|
||||
.slide .deco.d1 { left: 74px; top: 560px; width: 30px; height: 30px; }
|
||||
.slide .deco.d2 { right: 70px; top: 520px; width: 38px; height: 38px; background: var(--blue); }
|
||||
.slide .deco.d3 { left: 58px; top: 905px; width: 26px; height: 26px; background: var(--blue); }
|
||||
.slide .deco.d4 { right: 64px; top: 880px; width: 32px; height: 32px; }
|
||||
.slide .deco.d5 { left: 330px; top: 1160px; width: 24px; height: 24px; background: var(--blue); }
|
||||
.slide .deco.d6 { right: 330px; top: 1175px; width: 28px; height: 28px; }
|
||||
|
||||
.slide[data-skin='heart'] :is(.sparkle, .deco) {
|
||||
clip-path: none;
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.5s-7.8-4.7-10-9.4C.4 8.6 2.5 4.4 6.4 4.4c2.3 0 3.8 1.3 5.6 3.4 1.8-2.1 3.3-3.4 5.6-3.4 3.9 0 6 4.2 4.4 7.7-2.2 4.7-10 9.4-10 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.5s-7.8-4.7-10-9.4C.4 8.6 2.5 4.4 6.4 4.4c2.3 0 3.8 1.3 5.6 3.4 1.8-2.1 3.3-3.4 5.6-3.4 3.9 0 6 4.2 4.4 7.7-2.2 4.7-10 9.4-10 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
}
|
||||
.slide[data-skin='coin'] :is(.sparkle, .deco) {
|
||||
clip-path: none;
|
||||
border-radius: 50%;
|
||||
background: radial-gradient(circle, var(--orange) 0 52%, var(--rust) 53% 62%, var(--orange) 63%);
|
||||
}
|
||||
.slide[data-skin='clover'] :is(.sparkle, .deco) {
|
||||
clip-path: none;
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Ccircle cx='16' cy='8' r='5'/%3E%3Ccircle cx='8' cy='16' r='5'/%3E%3Ccircle cx='16' cy='16' r='5'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Ccircle cx='16' cy='8' r='5'/%3E%3Ccircle cx='8' cy='16' r='5'/%3E%3Ccircle cx='16' cy='16' r='5'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
}
|
||||
|
||||
/* 날씨 타로: 대주제(skin)마다 한 번 만든 배경 그림(src/assets/tarot-bg) 위에 카드·글만 갈아 끼운다 */
|
||||
.slide .tarot-bg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
z-index: 0;
|
||||
}
|
||||
.tarot-result > :not(.tarot-bg):not(.topbar) { position: relative; z-index: 1; }
|
||||
|
||||
/* 결과 장: 틀·장식 없이 카드 그림과 리딩이 화면을 채운다. 배경 그림이 없을 땐 아래쪽에 옅은 색 번짐만 */
|
||||
.tarot-result {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 150px 80px 64px;
|
||||
gap: 24px;
|
||||
background:
|
||||
radial-gradient(60% 34% at 85% 96%, var(--tint) 0%, transparent 70%),
|
||||
radial-gradient(40% 24% at 8% 78%, var(--tint) 0%, transparent 70%),
|
||||
var(--paper);
|
||||
}
|
||||
.tarot-result .topbar { z-index: 5; }
|
||||
.result-head {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 18px;
|
||||
}
|
||||
.slide .card-no {
|
||||
margin-bottom: 14px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 99px;
|
||||
background: var(--tint);
|
||||
font: 700 30px/1 'Pretendard Variable', Pretendard, sans-serif;
|
||||
color: var(--accent);
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
.slide .card-name {
|
||||
font: 96px/1 Jua, sans-serif;
|
||||
letter-spacing: -3px;
|
||||
}
|
||||
.result-body {
|
||||
display: grid;
|
||||
grid-template-columns: 520px minmax(0, 1fr);
|
||||
gap: 32px;
|
||||
align-items: stretch;
|
||||
}
|
||||
.slide .card-art {
|
||||
width: 520px;
|
||||
height: 780px;
|
||||
object-fit: cover;
|
||||
border-radius: 30px;
|
||||
box-shadow: 0 12px 0 var(--tint), 0 22px 40px #28304a22;
|
||||
}
|
||||
.slide .card-art-fallback {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--tint);
|
||||
}
|
||||
.slide .card-art-fallback img {
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
object-fit: contain;
|
||||
}
|
||||
.result-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 22px;
|
||||
}
|
||||
.slide .card-keyword {
|
||||
font: 700 34px/1.3 'Pretendard Variable', Pretendard, sans-serif;
|
||||
color: var(--accent);
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
.slide .reading {
|
||||
font: 500 38px/1.55 'Pretendard Variable', Pretendard, sans-serif;
|
||||
letter-spacing: -1px;
|
||||
/* 단어(어절) 단위로만 줄을 바꾸고, 마지막 줄에 한 어절만 남지 않게 */
|
||||
word-break: keep-all;
|
||||
overflow-wrap: normal;
|
||||
text-wrap: pretty;
|
||||
}
|
||||
.slide .reading .line { display: inline; }
|
||||
.slide .reading strong {
|
||||
font-weight: 750;
|
||||
color: var(--accent);
|
||||
}
|
||||
.slide .lucky {
|
||||
margin-top: 18px;
|
||||
padding: 24px 32px;
|
||||
border-radius: 24px;
|
||||
background: var(--tint);
|
||||
font: 700 34px/1.35 'Pretendard Variable', Pretendard, sans-serif;
|
||||
letter-spacing: -0.8px;
|
||||
color: var(--accent);
|
||||
}
|
||||
.slide .lucky::before {
|
||||
content: '행운 포인트 · ';
|
||||
opacity: 0.7;
|
||||
}
|
||||
/* 맨 위: 이 장이 답하는 질문 → 카드 번호·이름 → 그림 순으로 읽힌다 */
|
||||
.slide .result-question {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
align-items: baseline;
|
||||
font: 600 30px/1.4 'Pretendard Variable', Pretendard, sans-serif;
|
||||
letter-spacing: -0.8px;
|
||||
color: var(--muted);
|
||||
word-break: keep-all;
|
||||
}
|
||||
.slide .result-question b {
|
||||
font: 32px/1 'Bagel Fat One', sans-serif;
|
||||
color: var(--accent);
|
||||
}
|
||||
.slide .footnote {
|
||||
margin-top: auto;
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
/* 코디 장 아래: 오늘 날씨 한 줄 */
|
||||
.slide .ootd-weather {
|
||||
position: absolute;
|
||||
left: 80px;
|
||||
right: 80px;
|
||||
bottom: 64px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 18px;
|
||||
font: 600 36px/1.2 'Pretendard Variable', Pretendard, sans-serif;
|
||||
letter-spacing: -1px;
|
||||
color: var(--ink);
|
||||
}
|
||||
.slide .ootd-weather img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
object-fit: contain;
|
||||
}
|
||||
.slide .ootd-weather b {
|
||||
font: 700 40px/1 'Pretendard Variable', Pretendard, sans-serif;
|
||||
color: var(--rust);
|
||||
}
|
||||
|
||||
/* 마지막 장은 표지와 같은 틀. 안내 문구만 캐릭터 사이에 두 줄로 */
|
||||
.tarot-closing .cover-date {
|
||||
left: 290px;
|
||||
width: 500px;
|
||||
top: 1192px;
|
||||
font-size: 27px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
Reference in new issue
Block a user