Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix open graph #738

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frontend/src/app/(with-header)/(home)/nearby/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ export const metadata: Metadata = {
openGraph: {
title: '์žฅ์†Œ/์ฝ”์Šค ๊ฒ€์ƒ‰',
description: `์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๊ฒ€์ƒ‰ํ•ด๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
type: 'website',
siteName: '์ด๊ธธ๋กœ๊ทธ',
locale: 'ko-KR',
},
twitter: {
title: '์žฅ์†Œ/์ฝ”์Šค ๊ฒ€์ƒ‰',
description: `์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๊ฒ€์ƒ‰ํ•ด๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
},
};

Expand Down
5 changes: 5 additions & 0 deletions frontend/src/app/(with-header)/(home)/places/popular/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ export const metadata: Metadata = {
openGraph: {
title: '์ธ๊ธฐ ์žฅ์†Œ/์ฝ”์Šค',
description: `ํ˜„์žฌ ์ธ๊ธฐ์žˆ๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
type: 'website',
siteName: '์ด๊ธธ๋กœ๊ทธ',
locale: 'ko-KR',
},
twitter: {
title: '์ธ๊ธฐ ์žฅ์†Œ/์ฝ”์Šค',
description: `ํ˜„์žฌ ์ธ๊ธฐ์žˆ๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
},
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@ export const metadata: Metadata = {
openGraph: {
title: '๋งž์ถค ์ถ”์ฒœ',
description: `๊ฐœ์ธ๋ณ„ ๋งž์ถค ์ถ”์ฒœ ์ง€์—ญ์˜ ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”.`,

images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
type: 'website',
siteName: '์ด๊ธธ๋กœ๊ทธ',
locale: 'ko-KR',
},
twitter: {
title: '๋งž์ถค ์ถ”์ฒœ',
description: `๊ฐœ์ธ๋ณ„ ๋งž์ถค ์ถ”์ฒœ ์ง€์—ญ์˜ ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
},
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import Link from 'next/link';

import { authenticateUser } from '@/app/_components/mypage/hooks/authenticateUser';
import { myInfoSchema } from '@/types/response';
import { getInterestedRegions, getRegionPlaces } from '../../../action';

import DummyPlace from '@/app/_components/place/dummy/DummyPlace';

import { RegionPlaces } from '@/app/_components/place/places';
import { Metadata } from 'next';

Expand All @@ -15,10 +12,15 @@ export const metadata: Metadata = {
openGraph: {
title: '๊ด€์‹ฌ ์ง€์—ญ',
description: `๊ด€์‹ฌ ์ง€์—ญ์„ ์„ค์ •ํ•˜๊ณ  ๊ด€์‹ฌ ์ง€์—ญ์˜ ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
type: 'website',
siteName: '์ด๊ธธ๋กœ๊ทธ',
locale: 'ko-KR',
},
twitter: {
title: '๊ด€์‹ฌ ์ง€์—ญ',
description: `๊ด€์‹ฌ ์ง€์—ญ์„ ์„ค์ •ํ•˜๊ณ  ๊ด€์‹ฌ ์ง€์—ญ์˜ ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๋งŒ๋‚˜๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
},
};

Expand Down
13 changes: 13 additions & 0 deletions frontend/src/app/(with-header)/(home)/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ import { Metadata } from 'next';
export const metadata: Metadata = {
title: '์ด๊ธธ๋กœ๊ทธ ๊ฒ€์ƒ‰ ํŽ˜์ด์ง€',
description: '์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๊ฒ€์ƒ‰ํ•ด๋ณด์„ธ์š”.',
openGraph: {
title: '์ด๊ธธ๋กœ๊ทธ ๊ฒ€์ƒ‰ ํŽ˜์ด์ง€',
description: '์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๊ฒ€์ƒ‰ํ•ด๋ณด์„ธ์š”.',
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
type: 'website',
siteName: '์ด๊ธธ๋กœ๊ทธ',
locale: 'ko-KR',
},
twitter: {
title: '์ด๊ธธ๋กœ๊ทธ ๊ฒ€์ƒ‰ ํŽ˜์ด์ง€',
description: '์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ๊ฒ€์ƒ‰ํ•ด๋ณด์„ธ์š”.',
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
},
};

export default async function SearchPage({
Expand Down
20 changes: 19 additions & 1 deletion frontend/src/app/(with-header)/add/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
import AddCourse from '@/app/_components/add/course/AddCourse';
import AddSpot from '@/app/_components/add/spot/AddSpot';

import type { TChoosePlace } from '@/context/travel/schema';
import { Metadata } from 'next';

export const metadata: Metadata = {
title: '์žฅ์†Œ/์ฝ”์Šค ์ถ”๊ฐ€',
description: `์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ๊ณต์œ ํ•ด๋ณด์„ธ์š”.`,
openGraph: {
title: '์žฅ์†Œ/์ฝ”์Šค ์ถ”๊ฐ€',
description: `์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ๊ณต์œ ํ•ด๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
type: 'website',
siteName: '์ด๊ธธ๋กœ๊ทธ',
locale: 'ko-KR',
},
twitter: {
title: '์žฅ์†Œ / ์ฝ”์Šค ์ถ”๊ฐ€',
description: `์›ํ•˜๋Š” ์žฅ์†Œ/์ฝ”์Šค๋ฅผ ์ถ”๊ฐ€ํ•˜๊ณ  ๊ณต์œ ํ•ด๋ณด์„ธ์š”.`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
},
};

export default function AddPage({
params,
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/app/(without-header)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ export const metadata: Metadata = {
openGraph: {
title: '๋กœ๊ทธ์ธ',
description: `๋กœ๊ทธ์ธ ํ›„ ์ด๊ธธ๋กœ๊ทธ์˜ ์—ฌ๋Ÿฌ ๊ธฐ๋Šฅ์„ ๋งŒ๋‚˜๋ณด์„ธ์š”`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
type: 'website',
siteName: '์ด๊ธธ๋กœ๊ทธ',
locale: 'ko-KR',
},
twitter: {
title: '๋กœ๊ทธ์ธ',
description: `๋กœ๊ทธ์ธ ํ›„ ์ด๊ธธ๋กœ๊ทธ์˜ ์—ฌ๋Ÿฌ ๊ธฐ๋Šฅ์„ ๋งŒ๋‚˜๋ณด์„ธ์š”`,
images: { url: '/logo/og-logo.png', alt: '์ด๊ธธ๋กœ๊ทธ ๋กœ๊ณ  ์ด๋ฏธ์ง€' },
},
};

Expand Down
Loading