-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ✨ 로딩 개선 (#154) * ✨ 로딩 개선 * 🎉 필터링 리스트 페이지 로딩 fallback 변경 --------- Co-authored-by: doggopawer <[email protected]> * 🎉 sitemap 및 robots 추가 (#156) --------- Co-authored-by: 정재희 <[email protected]>
- Loading branch information
1 parent
a222e0f
commit e23b71e
Showing
18 changed files
with
177 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use client' | ||
|
||
import Lottie from 'react-lottie-player' | ||
import lottieJson from '/public/loading.json' | ||
|
||
const Loading = () => { | ||
return ( | ||
<div className="z-50 flex-1 w-full h-full text-center"> | ||
<div className="flex flex-col items-center w-[320px] h-[360px] absolute top-0 left-1/2 translate-y-[50%] translate-x-[-50%] "> | ||
<Lottie | ||
loop | ||
animationData={lottieJson} | ||
play | ||
style={{ | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
/> | ||
<p className="font- text-[20px]">잠시만 기다려 주세요.</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use client' | ||
|
||
import Lottie from 'react-lottie-player' | ||
import lottieJson from '/public/loading.json' | ||
|
||
const Loading = () => { | ||
return ( | ||
<div className="z-50 flex-1 w-full h-full text-center"> | ||
<div className="flex flex-col items-center w-[320px] h-[360px] absolute top-0 left-1/2 translate-y-[50%] translate-x-[-50%] "> | ||
<Lottie | ||
loop | ||
animationData={lottieJson} | ||
play | ||
style={{ | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
/> | ||
<p className="font- text-[20px]">잠시만 기다려 주세요.</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use client' | ||
|
||
import Lottie from 'react-lottie-player' | ||
import lottieJson from '/public/loading.json' | ||
|
||
const Loading = () => { | ||
return ( | ||
<div className="z-50 flex-1 w-full h-full text-center"> | ||
<div className="flex flex-col items-center w-[320px] h-[360px] absolute top-0 left-1/2 translate-y-[50%] translate-x-[-50%] "> | ||
<Lottie | ||
loop | ||
animationData={lottieJson} | ||
play | ||
style={{ | ||
width: '100%', | ||
height: '100%', | ||
}} | ||
/> | ||
<p className="font- text-[20px]">잠시만 기다려 주세요.</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { MetadataRoute } from 'next' | ||
import { Environment } from '@/config/environment' | ||
|
||
export default function robots(): MetadataRoute.Robots { | ||
return { | ||
rules: { | ||
userAgent: '*', | ||
allow: '/', | ||
}, | ||
sitemap: `${Environment.currentAddress()}/sitemap.xml`, | ||
host: Environment.currentAddress(), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { MetadataRoute } from 'next' | ||
import AppPath from '@/config/appPath' | ||
import { Environment } from '@/config/environment' | ||
|
||
export default function sitemap(): MetadataRoute.Sitemap { | ||
const routes = Object.values(AppPath).map((route) => ({ | ||
url: `${Environment.currentAddress()}${route('' as never)}`, | ||
lastModified: new Date().toISOString().split('T')[0], | ||
})) | ||
|
||
return [...routes] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/components/domain/infinite-scroll-loading/InfiniteScrollLoading.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Lottie from 'react-lottie-player' | ||
import lottieJson from '/public/loading.json' | ||
|
||
const InfiniteScrollLoading = () => ( | ||
<Lottie | ||
loop | ||
animationData={lottieJson} | ||
play | ||
style={{ | ||
width: '100%', | ||
height: '150px', | ||
}} | ||
/> | ||
) | ||
|
||
export default InfiniteScrollLoading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import InfiniteScrollLoading from './InfiniteScrollLoading' | ||
|
||
export default InfiniteScrollLoading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module '*.json' { | ||
const value: any | ||
export default value | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
type Robots = { | ||
rules: | ||
| { | ||
userAgent?: string | string[] | ||
allow?: string | string[] | ||
disallow?: string | string[] | ||
crawlDelay?: number | ||
} | ||
| Array<{ | ||
userAgent: string | string[] | ||
allow?: string | string[] | ||
disallow?: string | string[] | ||
crawlDelay?: number | ||
}> | ||
sitemap?: string | string[] | ||
host?: string | ||
} | ||
|
||
type Sitemap = Array<{ | ||
url: string | ||
lastModified?: string | Date | ||
changeFrequency?: | ||
| 'always' | ||
| 'hourly' | ||
| 'daily' | ||
| 'weekly' | ||
| 'monthly' | ||
| 'yearly' | ||
| 'never' | ||
priority?: number | ||
}> |