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

OG 관련 설정 #410

Merged
merged 1 commit into from
Sep 17, 2023
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
6 changes: 2 additions & 4 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { AppProps } from 'next/app';
import Head from 'next/head';
import Script from 'next/script';
import { useRouter } from 'next/router';
import React, { useEffect, useState } from 'react';
Expand All @@ -15,6 +14,7 @@ import ChannelService from '@utils/ChannelService';
import { api, playgroundApi } from '@api/index';
import { fetchMyProfile } from '@api/user';
import { OverlayProvider } from '@hooks/useOverlay/OverlayProvider';
import SEO from '@components/seo/SEO';

function MyApp({ Component, pageProps }: AppProps) {
const [queryClient] = React.useState(() => new QueryClient());
Expand Down Expand Up @@ -75,9 +75,7 @@ function MyApp({ Component, pageProps }: AppProps) {

return (
<QueryClientProvider client={queryClient}>
<Head>
<title>SOPT Playground</title>
</Head>
<SEO />
<Script
id="gtag-base"
strategy="afterInteractive"
Expand Down
Binary file added public/assets/images/thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions src/components/seo/SEO.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Head from 'next/head';

const SEO = () => {
return (
<Head>
<title>SOPT Playground</title>
<meta name="description" content="솝트와 더 친해지고 싶으신가요?" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="SOPT Playground" />
<meta property="og:title" content="SOPT ㅣ 모임 신청·개설하기" />
<meta property="og:description" content="솝트와 더 친해지고 싶으신가요?" />
<meta property="og:image" content="/assets/images/thumbnail.jpg" />
<meta property="og:url" content="https://playground.sopt.org/group" />
<meta property="og:locale" content="ko_KR" />
<meta property="twitter:card" content="summary" />
<meta property="twitter:site" content="SOPT Playground" />
<meta property="twitter:title" content="SOPT ㅣ 모임 신청·개설하기" />
<meta property="twitter:description" content="솝트와 더 친해지고 싶으신가요?" />
<meta property="twitter:image" content="/assets/images/thumbnail.jpg" />
<meta property="twitter:url" content="https://playground.sopt.org/group" />
</Head>
);
};

export default SEO;