feat: 피드를 시간대별 카드로 다시 짜고 하늘 배경·내 캐릭터 추가, 다른 시안 정리
- 피드: 그날 카드 12장을 03:00에 한 번에 만들고, 시간대(아침·낮·저녁·밤, 저녁은 일몰 2시간 전부터)마다 순서를 바꾸고 조건이 맞는 카드만 켠다. 새 카드 우산·특보, 내일 미리보기, 한 문장·시(예시 seed). 흐린 날 노을은 한 줄 카드.
- 캐시를 feed:{구}:{시간대}로 나누고 시간대 경계·일몰·예보 갱신 때 만료해 새 카드가 늦게 보이던 문제를 고친다.
- 히어로는 오늘 1위 각만 보여 준다.
- 각 점수·노을 점수를 7일 지나면 지운다.
- 화면 전체 하늘 배경(시간대별 색, 느린 일렁임, 밤 별)과 화면 끝까지 이어지는 위·아래 바.
- 상단바 로그인 버튼, 내 정보 창(캐릭터 6종·배경색 6종·오늘 기분 8종·닉네임·로그아웃), PATCH /v1/auth/me, 댓글·상단바에 캐릭터·배경색·기분 표시. users.character·color·mood 칸 추가.
- 카드 슬라이드와 가로 줄을 Embla 카로셀로 바꿔 PC에서도 마우스로 끌어 넘기고 화살표로 넘긴다.
- 좋아요·저장을 받아 둔 피드 데이터에도 반영해 다른 탭에 다녀와도 유지되게 고치고, 좋아요 때 하트가 터지는 애니메이션을 넣는다.
- 보내기에서 게시물을 인스타 스토리 크기(1080×1920) 이미지로 공유하거나 내려받는다 (modern-screenshot).
- 창이 열려 있는 동안 뒤 페이지 스크롤을 잠근다.
- 시안 B 확정: 시안 A 아이콘(public/a)과 쓰지 않는 전역 스타일·글꼴 삭제.
- 문서: 데이터 흐름 지도(backend/docs/data-flow-map.html), 확정 시안(docs/시안B_확정.html), 피드 기획 v2, 호출량·DB 크기 추정, data-pipeline 갱신. 보고 폴더와 예전 시안 html 삭제.
This commit is contained in:
1 parent
f8b47f064a
commit
a9ddbaab3c
93 files changed
+2322
-2751
No files matched your search
@@ -5,46 +5,10 @@
|
||||
--font-jua: 'Jua', 'Pretendard Variable', sans-serif;
|
||||
--font-bagel: 'Bagel Fat One', 'Jua', sans-serif;
|
||||
--font-batang: 'Gowun Batang', 'Nanum Myeongjo', serif;
|
||||
--font-poster: 'Gasoek One', 'Black Han Sans', sans-serif;
|
||||
--font-block: 'Black Han Sans', 'Pretendard Variable', sans-serif;
|
||||
|
||||
--color-pop-orange: #ff5c1f;
|
||||
--color-pop-blue: #2346d9;
|
||||
--color-pop-yellow: #ffd23f;
|
||||
--color-pop-cream: #fff6e0;
|
||||
--color-pop-pink: #ff8fc7;
|
||||
--color-pop-green: #1fbf6a;
|
||||
--color-pop-sky: #8fb3ff;
|
||||
--color-pop-navy: #1d2a5c;
|
||||
|
||||
--color-ink: #28304a;
|
||||
--color-ink-2: #5a6380;
|
||||
--color-sky-1: #bfe3ff;
|
||||
--color-sky-2: #e5f2ff;
|
||||
--color-page: #f7fbff;
|
||||
--color-orange: #ff7a45;
|
||||
--color-orange-deep: #d4552a;
|
||||
--color-butter: #fff1c4;
|
||||
--color-butter-deep: #7a6320;
|
||||
--color-mint: #dcf4e8;
|
||||
--color-peach: #fff4ec;
|
||||
--color-lilac: #ece7ff;
|
||||
--color-rain: #4f97e3;
|
||||
--color-clay-shade: #d9e5f4;
|
||||
--color-gold: #d89413;
|
||||
--color-silver: #7f8aa3;
|
||||
--color-bronze: #b0673a;
|
||||
|
||||
--shadow-clay: inset 0 -6px 0 var(--color-clay-shade), 0 10px 20px rgb(40 48 74 / 0.08);
|
||||
--shadow-clay-lg: inset 0 -9px 0 var(--color-clay-shade), 0 12px 20px rgb(40 48 74 / 0.08);
|
||||
--shadow-btn: inset 0 -6px 0 var(--color-orange-deep), 0 12px 22px rgb(240 106 58 / 0.28);
|
||||
|
||||
--animate-marquee: marquee 40s linear infinite;
|
||||
@keyframes marquee {
|
||||
to {
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@layer base {
|
||||
@@ -61,104 +25,3 @@
|
||||
outline-offset: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
@utility clay-sun {
|
||||
border-radius: 9999px;
|
||||
background: radial-gradient(circle at 34% 30%, #fff5cf 0%, #ffc86e 30%, #ff8e4e 68%, #ee6436 100%);
|
||||
box-shadow:
|
||||
inset -20px -28px 44px rgb(170 50 20 / 0.34),
|
||||
inset 18px 20px 32px rgb(255 255 255 / 0.55),
|
||||
0 34px 64px rgb(240 106 58 / 0.32);
|
||||
}
|
||||
|
||||
@utility clay-cloud {
|
||||
position: relative;
|
||||
border-radius: 9999px;
|
||||
background: #fff;
|
||||
box-shadow:
|
||||
inset 0 -14px 22px rgb(160 190 230 / 0.45),
|
||||
0 20px 34px rgb(40 70 120 / 0.13);
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
border-radius: 9999px;
|
||||
background: #fff;
|
||||
box-shadow: inset 0 -12px 18px rgb(160 190 230 / 0.35);
|
||||
}
|
||||
&::before {
|
||||
left: 16%;
|
||||
top: -58%;
|
||||
width: 46%;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
&::after {
|
||||
left: 50%;
|
||||
top: -36%;
|
||||
width: 36%;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@utility drop-icon {
|
||||
filter: drop-shadow(0 10px 12px rgb(40 48 74 / 0.16));
|
||||
}
|
||||
|
||||
/* 히어로 오브젝트: 하늘에서 떨어진 뒤 계속 둥둥 떠 있기 */
|
||||
@keyframes sky-drop {
|
||||
0% {
|
||||
transform: translateY(-110vh) rotate(-10deg);
|
||||
opacity: 0;
|
||||
}
|
||||
55% {
|
||||
opacity: 1;
|
||||
}
|
||||
72% {
|
||||
transform: translateY(0) rotate(2deg) scale(1.04, 0.96);
|
||||
}
|
||||
86% {
|
||||
transform: translateY(-14px) rotate(-1deg);
|
||||
}
|
||||
100% {
|
||||
transform: none;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes sky-float {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0) rotate(0deg);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(calc(var(--amp, 12px) * -1)) rotate(var(--tilt, 1.5deg));
|
||||
}
|
||||
}
|
||||
|
||||
@utility sky-fall {
|
||||
animation:
|
||||
sky-drop 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) var(--delay, 0s) both,
|
||||
sky-float var(--float, 4.6s) ease-in-out calc(var(--delay, 0s) + 1.1s) infinite;
|
||||
}
|
||||
|
||||
/* PC: 모든 섹션 최소 한 화면(메뉴 바 제외) + 섹션 단위 스냅 */
|
||||
@utility screen-fill {
|
||||
@media (width >= 64rem) {
|
||||
min-height: calc(100svh - var(--nav, 76px));
|
||||
scroll-snap-align: start;
|
||||
scroll-margin-top: var(--nav, 76px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (width >= 64rem) {
|
||||
html {
|
||||
scroll-snap-type: y proximity;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.animate-marquee,
|
||||
.sky-fall {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user