Skip to content

Commit 309ac04

Browse files
committed
feat: 404 UI 추가
1 parent 2f3fc83 commit 309ac04

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

src/main.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,41 @@ function main() {
10841084
</div>
10851085
`;
10861086

1087+
const _404_ = `
1088+
<main class="max-w-md mx-auto px-4 py-4">
1089+
<div class="text-center my-4 py-20 shadow-md p-6 bg-white rounded-lg">
1090+
<svg viewBox="0 0 320 180" xmlns="http://www.w3.org/2000/svg">
1091+
<defs>
1092+
<linearGradient id="blueGradient" x1="0%" y1="0%" x2="100%" y2="100%">
1093+
<stop offset="0%" style="stop-color:#4285f4;stop-opacity:1" />
1094+
<stop offset="100%" style="stop-color:#1a73e8;stop-opacity:1" />
1095+
</linearGradient>
1096+
<filter id="softShadow" x="-50%" y="-50%" width="200%" height="200%">
1097+
<feDropShadow dx="0" dy="2" stdDeviation="8" flood-color="#000000" flood-opacity="0.1"/>
1098+
</filter>
1099+
</defs>
1100+
1101+
<!-- 404 Numbers -->
1102+
<text x="160" y="85" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif" font-size="48" font-weight="600" fill="url(#blueGradient)" text-anchor="middle">404</text>
1103+
1104+
<!-- Icon decoration -->
1105+
<circle cx="80" cy="60" r="3" fill="#e8f0fe" opacity="0.8"/>
1106+
<circle cx="240" cy="60" r="3" fill="#e8f0fe" opacity="0.8"/>
1107+
<circle cx="90" cy="45" r="2" fill="#4285f4" opacity="0.5"/>
1108+
<circle cx="230" cy="45" r="2" fill="#4285f4" opacity="0.5"/>
1109+
1110+
<!-- Message -->
1111+
<text x="160" y="110" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif" font-size="14" font-weight="400" fill="#5f6368" text-anchor="middle">페이지를 찾을 수 없습니다</text>
1112+
1113+
<!-- Subtle bottom accent -->
1114+
<rect x="130" y="130" width="60" height="2" rx="1" fill="url(#blueGradient)" opacity="0.3"/>
1115+
</svg>
1116+
1117+
<a href="/" data-link class="inline-block px-6 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors">홈으로</a>
1118+
</div>
1119+
</main>
1120+
`;
1121+
10871122
document.body.innerHTML = `
10881123
${상품목록_레이아웃_로딩}
10891124
<br />
@@ -1104,6 +1139,8 @@ function main() {
11041139
${상세페이지_로딩}
11051140
<br />
11061141
${상세페이지_로딩완료}
1142+
<br />
1143+
${_404_}
11071144
`;
11081145
}
11091146

0 commit comments

Comments
 (0)