Skip to content

Commit e966c9a

Browse files
committed
Feat: 방문자수 추가
1 parent d08c5d0 commit e966c9a

File tree

3 files changed

+69
-18
lines changed

3 files changed

+69
-18
lines changed

app/(blog)/page.tsx

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,16 @@ function HomeContent() {
215215
description="더 게을러지기위해 더 똑똑해지기"
216216
extraContent={
217217
<div className="text-muted-foreground">
218-
<p>
218+
<p className="mb-2">
219219
세상을 게으르게 만들기 위해 발전하고 싶은 프론트엔드 개발자입니다.
220220
🚀
221221
</p>
222+
<a href="https://myhits.vercel.app">
223+
<img
224+
src="https://myhits.vercel.app/api/hit/https%3A%2F%2Flazy-dinosaur.github.io%2F?color=green&label=Hits&size=medium"
225+
alt="Hits"
226+
/>
227+
</a>
222228
</div>
223229
}
224230
/>
@@ -262,7 +268,7 @@ function HomeContent() {
262268
exit={{ opacity: 0, height: 0 }}
263269
transition={{
264270
height: { duration: 0.3, ease: "easeInOut" },
265-
opacity: { duration: 0.2 }
271+
opacity: { duration: 0.2 },
266272
}}
267273
className="overflow-hidden"
268274
>
@@ -373,9 +379,25 @@ function HomeContent() {
373379
) : posts.length > 0 ? (
374380
<div className="flex justify-center items-center min-h-[400px]">
375381
<div className="flex flex-col items-center gap-4">
376-
<svg className="animate-spin h-12 w-12 text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
377-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
378-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
382+
<svg
383+
className="animate-spin h-12 w-12 text-primary"
384+
xmlns="http://www.w3.org/2000/svg"
385+
fill="none"
386+
viewBox="0 0 24 24"
387+
>
388+
<circle
389+
className="opacity-25"
390+
cx="12"
391+
cy="12"
392+
r="10"
393+
stroke="currentColor"
394+
strokeWidth="4"
395+
></circle>
396+
<path
397+
className="opacity-75"
398+
fill="currentColor"
399+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
400+
></path>
379401
</svg>
380402
<p className="text-muted-foreground">포스트를 불러오는 중...</p>
381403
</div>
@@ -500,17 +522,35 @@ function HomeContent() {
500522

501523
export default function Home() {
502524
return (
503-
<Suspense fallback={
504-
<div className="flex justify-center items-center min-h-screen">
505-
<div className="flex flex-col items-center gap-4">
506-
<svg className="animate-spin h-16 w-16 text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
507-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
508-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
509-
</svg>
510-
<p className="text-lg text-muted-foreground">로딩 중...</p>
525+
<Suspense
526+
fallback={
527+
<div className="flex justify-center items-center min-h-screen">
528+
<div className="flex flex-col items-center gap-4">
529+
<svg
530+
className="animate-spin h-16 w-16 text-primary"
531+
xmlns="http://www.w3.org/2000/svg"
532+
fill="none"
533+
viewBox="0 0 24 24"
534+
>
535+
<circle
536+
className="opacity-25"
537+
cx="12"
538+
cy="12"
539+
r="10"
540+
stroke="currentColor"
541+
strokeWidth="4"
542+
></circle>
543+
<path
544+
className="opacity-75"
545+
fill="currentColor"
546+
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
547+
></path>
548+
</svg>
549+
<p className="text-lg text-muted-foreground">로딩 중...</p>
550+
</div>
511551
</div>
512-
</div>
513-
}>
552+
}
553+
>
514554
<HomeContent />
515555
</Suspense>
516556
);

app/projects/live-demo-modal.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export default function LiveDemoModal({
228228
isVideoFile(
229229
project.demoImages[currentImageIndex]?.url || "",
230230
) ? (
231-
<div className="relative w-full h-[85vh] max-h-[85vh] sm:max-h-[90vh] pb-36 flex items-center justify-center bg-black/5">
231+
<div className="relative w-full h-full flex items-center justify-center bg-black/5">
232232
<video
233233
src={
234234
project.demoImages[currentImageIndex]?.url || ""
@@ -285,6 +285,17 @@ export default function LiveDemoModal({
285285
}}
286286
key={`video-${project.demoImages[currentImageIndex]?.url}`}
287287
/>
288+
{/* 비디오 설명 추가 */}
289+
{project.demoImages[currentImageIndex]?.description && (
290+
<div className="absolute bottom-12 left-0 right-0 p-3 sm:p-4 bg-background/90 dark:bg-background/90 backdrop-blur-sm w-full text-center">
291+
<p className="text-xs sm:text-sm text-foreground">
292+
{
293+
project.demoImages[currentImageIndex]
294+
?.description
295+
}
296+
</p>
297+
</div>
298+
)}
288299
</div>
289300
) : (
290301
<Image

public/sitemap.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://lazy-dino.github.io/</loc>
5-
<lastmod>2025-06-29</lastmod>
5+
<lastmod>2025-07-01</lastmod>
66
<changefreq>daily</changefreq>
77
<priority>1.0</priority>
88
</url>
99
<url>
1010
<loc>https://lazy-dino.github.io/projects</loc>
11-
<lastmod>2025-06-29</lastmod>
11+
<lastmod>2025-07-01</lastmod>
1212
<changefreq>weekly</changefreq>
1313
<priority>0.9</priority>
1414
</url>

0 commit comments

Comments
 (0)