도메인별 스키마(company·place·fact·local·site·job)를 걷어내고 public 한 벌로 폈다.
스키마 한정자가 붙은 순간부터 ORM·raw SQL·테스트 픽스처가 각자 그 이름을 들고 다녀야 했다.
- 공용 콘텐츠를 한 테이블로 되돌린다. spots·region_stories 를 따로 파 놓고 보니
같은 성격이 세 곳으로 갈라져 있었다 — `area_contents` 가 처음부터 content_type 으로
종류를 가르는 설계였고 그걸 쓰면 됐다. 관계(거리·숨김)만 `place_area_refs` 로 남긴다.
- migrations/ + scripts/migrate.py: `init.sql` 은 **DB 를 처음 만들 때만** 돈다. 파일에
컬럼을 더해도 이미 데이터가 든 DB 에는 반영되지 않는다 — 실제로 TourAPI 가 주변 정보를
받아 와도 저장할 곳이 없어 축제·맛집이 0건이었고, 화면에는 "그냥 안 나오는 것" 으로만 보였다.
DECISIONS.md 가 예고한 그대로다("운영 DB 가 생기는 순간 다시 필요해진다").
Alembic 을 쓰지 않는 이유는 스키마 정의가 이미 두 곳(ORM·init.sql)이라 세 번째를
더하면 어긋날 자리가 하나 더 생기기 때문이다.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
127 lines
3.8 KiB
CSS
127 lines
3.8 KiB
CSS
/**
|
|
* 붙여넣기 아이템의 질감 — Tailwind 로는 못 그리는 것만 여기 둔다.
|
|
* 도넛판 홈, 종이 결, 톱니, 필름 구멍, 시험지 뒤집기.
|
|
*
|
|
* ★ 색은 전부 템플릿 토큰(--tpl-*)에서 받는다. 한때 갱지색·먹색을 hex 로 박아 뒀는데,
|
|
* 템플릿을 바꿔도 이 질감들만 레트로 색으로 남아 화면이 두 벌로 보였다.
|
|
*/
|
|
|
|
/* 종이 결 — 두 방향이 겹쳐야 종이로 읽힌다. 글자색을 옅게 깔아 어떤 팔레트에서도 결이 보인다. */
|
|
.w4-paper {
|
|
background-image:
|
|
repeating-linear-gradient(0deg, color-mix(in oklab, currentcolor 4%, transparent) 0 1px, transparent 1px 3px),
|
|
repeating-linear-gradient(90deg, color-mix(in oklab, currentcolor 3%, transparent) 0 1px, transparent 1px 4px);
|
|
}
|
|
|
|
/* 도넛판. --lbl 이 라벨 색이다. */
|
|
.w4-disc {
|
|
/* 판의 검정은 템플릿의 어두운 면(--tpl-inverse)이다. 홈은 그 위에 밝기 차로만 판다. */
|
|
background:
|
|
radial-gradient(circle at 50% 50%, transparent 0 15.5%, var(--lbl) 15.5% 33%, transparent 33%),
|
|
repeating-radial-gradient(
|
|
circle at 50% 50%,
|
|
color-mix(in oklab, var(--w4-vinyl) 88%, white) 0 1.4px,
|
|
var(--w4-vinyl) 1.4px 3px
|
|
),
|
|
var(--w4-vinyl);
|
|
box-shadow: inset 0 0 40px rgb(0 0 0 / 55%);
|
|
}
|
|
.w4-disc-sheen {
|
|
background: conic-gradient(
|
|
from 210deg,
|
|
rgb(255 255 255 / 12%),
|
|
transparent 22%,
|
|
transparent 70%,
|
|
rgb(255 255 255 / 7%)
|
|
);
|
|
}
|
|
.w4-spin {
|
|
animation: w4-rev 2.2s linear infinite;
|
|
}
|
|
@keyframes w4-rev {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* 미니 판 — 캐러셀에 늘어서는 작은 것. */
|
|
.w4-disc-mini {
|
|
background:
|
|
radial-gradient(circle at 50% 50%, transparent 0 14%, var(--lbl) 14% 34%, transparent 34%),
|
|
repeating-radial-gradient(
|
|
circle at 50% 50%,
|
|
color-mix(in oklab, var(--w4-vinyl) 88%, white) 0 1.2px,
|
|
var(--w4-vinyl) 1.2px 2.6px
|
|
),
|
|
var(--w4-vinyl);
|
|
box-shadow: 0 3px 10px rgb(0 0 0 / 35%);
|
|
}
|
|
|
|
/* 일력 톱니 — 뜯어낸 자국. --tear 는 섹션 바탕색이 들어온다(뜯긴 자리로 바탕이 비쳐야 한다). */
|
|
.w4-perf {
|
|
background: repeating-linear-gradient(90deg, transparent 0 8px, var(--tear) 8px 9px);
|
|
}
|
|
|
|
/* 승차권 절취선 */
|
|
.w4-dash {
|
|
border-top: 1px dashed currentcolor;
|
|
}
|
|
|
|
/* 필름 퍼포레이션 — 위아래 구멍이 있어야 한 장면이 아니라 '롤'로 읽힌다.
|
|
구멍은 currentColor(어두운 면 위의 글자색)로 뚫어 팔레트를 따른다. */
|
|
.w4-film-perf {
|
|
background: repeating-linear-gradient(90deg, currentcolor 0 9px, transparent 9px 21px);
|
|
}
|
|
|
|
/* 시험지 뒤집기. 카드가 얇아 보이지 않게 두 면을 같은 자리에 겹쳐 둔다. */
|
|
.w4-flip {
|
|
perspective: 900px;
|
|
}
|
|
.w4-flip-inner {
|
|
transform-style: preserve-3d;
|
|
transition: transform 0.5s;
|
|
}
|
|
.w4-flip-on .w4-flip-inner {
|
|
transform: rotateY(180deg);
|
|
}
|
|
.w4-flip-face {
|
|
backface-visibility: hidden;
|
|
}
|
|
.w4-flip-back {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
/*
|
|
* 가로 슬라이더의 창(viewport).
|
|
*
|
|
* 스크립트가 붙기 전에는 그냥 가로 스크롤 상자다. embla 가 붙으면 `data-slider="on"` 이
|
|
* 걸리고 그때부터 드래그가 스크롤을 대신한다 — 둘을 같이 켜면 관성이 겹쳐 튄다.
|
|
*/
|
|
.w4-scroll {
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
scroll-snap-type: x mandatory;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.w4-scroll::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.w4-scroll[data-slider='on'] {
|
|
overflow-x: hidden;
|
|
scroll-snap-type: none;
|
|
}
|
|
/* 문장을 잡으면 카드가 안 끌린다 — 끄는 동안만 선택을 끈다. */
|
|
.w4-scroll[data-dragging='true'] {
|
|
cursor: grabbing;
|
|
user-select: none;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.w4-spin {
|
|
animation: none;
|
|
}
|
|
.w4-flip-inner {
|
|
transition: none;
|
|
}
|
|
}
|