From 2d7c31216f4ee2a7fa916ce0a35c801ecc43bdba Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 14 Oct 2025 15:05:27 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EC=A0=90=EC=8B=AC=20=EC=9B=94=EB=93=9C?= =?UTF-8?q?=EC=BB=B5=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EA=B5=90=EC=B2=B4=20?= =?UTF-8?q?=EB=B0=8F=20=EC=83=89=EC=83=81=20=ED=86=B5=EC=9D=BC=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0=20=EB=82=B4=EC=9A=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 만개의 레시피 크롤링 방법 추가 - purple-pink 브랜드 컬러 통일 내역 기록 - 커밋 해시 참조 추가 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../251014_namuwiki_image_crawl_failure.md | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/troubleshooting/251014_namuwiki_image_crawl_failure.md b/troubleshooting/251014_namuwiki_image_crawl_failure.md index 6380e55..4e0a3cb 100644 --- a/troubleshooting/251014_namuwiki_image_crawl_failure.md +++ b/troubleshooting/251014_namuwiki_image_crawl_failure.md @@ -97,7 +97,33 @@ ls scripts/download_korean_pixabay.sh rm public/images/foods/{007,034,048,075,082,084,093}_*.jpg ``` +## 최종 해결 (2025-10-14 오후) + +### 이미지 교체 +**방법**: 만개의 레시피(10000recipe.com) 크롤링 +```javascript +// scripts/download_recipe_images.cjs +await page.goto(`https://www.10000recipe.com/recipe/list.html?q=${encodeURIComponent(food.name)}`); +const imgUrls = await page.evaluate(() => { + const imgs = document.querySelectorAll('.common_sp_thumb img'); + return Array.from(imgs).slice(0, 3).map(img => img.src); +}); +const imgUrl = imgUrls[2] || imgUrls[1] || imgUrls[0]; // 3번째 이미지 (텍스트 오버레이 회피) +``` + +**교체 완료**: 김치찌개, 된장찌개 등 + +### 색상 통일 +**문제**: `from-orange-400 to-pink-600` (로빙 브랜드와 불일치) +**해결**: `from-purple-600 to-pink-600` (브랜드 컬러 통일) + +**변경 파일**: `src/pages/LunchWorldcup.tsx` +- 배경 3곳: purple-pink 그라데이션 +- 버튼 4곳: gradient 버튼 통일 +- hover overlay: purple-500/20 + +**커밋**: `473eabd`, `cec8449` + ## 참고 - **CLAUDE.md 원칙**: 추측 금지, 문서 100줄 이하, 코드 블록 최소화 ✅ - **트러블슈팅 형식**: `yymmdd_주제.md`, 시간순, 교훈 필수 ✅ -- **다음 작업**: frontend-customer/scripts/download_korean_pixabay.sh 실행