Skip to content

Commit

Permalink
Merge pull request #348 from oduck-team/feat/279
Browse files Browse the repository at this point in the history
Head Title, 라우터별 title 개선
  • Loading branch information
chanwukim authored Dec 28, 2023
2 parents ae36183 + 84f52d2 commit fedade1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/components/Head/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ interface HeadProps {
}

export default function Head({
title = "오덕 | 애니 리뷰와 평가 서비스",
title = "오덕 | 애니 리뷰 · 애니 평가 서비스",
description = "애니 리뷰 커뮤니티 오덕입니다. 애니 리뷰를 중심으로 다양한 애니 커뮤니티를 만나보세요.",
image = "https://oduck.io/logo/logo-rect.png",
}: HeadProps) {
return (
<Helmet>
{/* HTML meta tag list */}
<title>{title}</title>
<meta name="title" content={title}></meta>
<meta name="description" content={description} />

{/* Facebook meta tag list */}
Expand Down
6 changes: 5 additions & 1 deletion src/features/animes/routes/Detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export default function AnimeDetail() {
if (anime)
return (
<>
<Head title={`${anime.title} | 오덕`} image={anime.thumbnail} />
<Head
title={`${anime.title} 리뷰 | 오덕`}
description={`${anime.title} 리뷰 - ${anime.summary}`}
image={anime.thumbnail}
/>
<AnimeDetailContainer>
{/* TODO: 평점 */}
<Hero {...anime} starScoreAvg={starRatingAvg} />
Expand Down
5 changes: 4 additions & 1 deletion src/features/animes/routes/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export default function AnimeList() {

return (
<>
<Head title="오덕 | 애니" description="다양한 애니메이션을 만나보세요!" />
<Head
title="리뷰를 남기고 싶은 애니 찾기 | 오덕"
description="다양한 애니메이션을 태그와 최신순, 이름순, 리뷰순으로 만나보세요!"
/>
<AnimeListContainer>
<Header>
<Header.Left />
Expand Down
2 changes: 1 addition & 1 deletion src/features/animes/routes/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function Search() {

return (
<>
<Head title="오덕 | 검색하기" />
<Head title="이름으로 애니를 검색하기 | 오덕" />

<SearchContainer>
<Header>
Expand Down
2 changes: 1 addition & 1 deletion src/features/common/routes/HelpDesk/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function HelpDesk() {

return (
<>
<Head title="오덕 | 고객센터" />
<Head title="고객센터 | 오덕" />
<HelpDeskContainer>
{success && <Success />}
<Header>
Expand Down
2 changes: 1 addition & 1 deletion src/features/notices/routes/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function NoticeList() {
return (
<>
<Head
title="오덕 | 공지사항"
title="공지사항 | 오덕"
description="오덕의 새로운 소식을 만나보세요"
/>
<Header>
Expand Down
4 changes: 2 additions & 2 deletions src/features/users/routes/Profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default function Profile() {
{userProfile && (
<>
<Head
title={`오덕 | ${
title={`${
userProfile.isMine ? "내 프로필" : userProfile.name
}`}
}님의 프로필 | 오덕 `}
/>
<ProfileContainer>
<AboutMe profile={userProfile} />
Expand Down

0 comments on commit fedade1

Please sign in to comment.