-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from Nexters/develop
fix: HelmetProvider 위치 수정 및 컴포넌트 분리
- Loading branch information
Showing
4 changed files
with
45 additions
and
34 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
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,37 @@ | ||
import { Helmet } from 'react-helmet-async'; | ||
|
||
interface Props { | ||
title: string; | ||
showId: string; | ||
} | ||
|
||
export const Meta = ({ title, showId }: Props) => { | ||
return ( | ||
<Helmet> | ||
<link rel="shortcut icon" href="https://preview.boolti.in/favicon.png" /> | ||
|
||
<title>{title}</title> | ||
<link rel="canonical" href="https://preview.boolti.in" /> | ||
<meta name="description" content="지금 불티에서 핫한 공연 정보를 확인해 보세요." /> | ||
|
||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content={title} /> | ||
<meta property="og:site_name" content="손쉬운 예매 빠른 입장은 불티" /> | ||
<meta property="og:description" content="지금 불티에서 핫한 공연 정보를 확인해 보세요." /> | ||
<meta property="og:url" content={`https://preview.boolti.in/show/${showId}`} /> | ||
<meta property="og:image" content="https://preview.boolti.in/thumbnail.png" /> | ||
<meta property="og:image:width" content="1200" /> | ||
<meta property="og:image:height" content="600" /> | ||
|
||
<meta property="twitter:card" content="summary_large_image" /> | ||
<meta property="twitter:domain" content="preview.boolti.in" /> | ||
<meta property="twitter:url" content={`https://preview.boolti.in/show/${showId}`} /> | ||
<meta property="twitter:title" content={title} /> | ||
<meta | ||
property="twitter:description" | ||
content="지금 불티에서 핫한 공연 정보를 확인해 보세요." | ||
/> | ||
<meta property="twitter:image" content="/thumbnail.png" /> | ||
</Helmet> | ||
); | ||
}; |
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
import ReactDOM from 'react-dom/client'; | ||
|
||
import App from './App.tsx'; | ||
import { HelmetProvider } from 'react-helmet-async'; | ||
ReactDOM.createRoot(document.getElementById('root')!).render( | ||
<HelmetProvider> | ||
<App /> | ||
</HelmetProvider>, | ||
); | ||
|
||
ReactDOM.createRoot(document.getElementById('root')!).render(<App />); |
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