-
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.
* install: react-helmet-async 설치 * feat: provider 추가 * feat: index.html에서 helmet으로 이동 * feat: URL 추가 * fix: isMakers context->env로 가져오기 * chore: 테스트용 연산자 제거 * fix: 환경변수 말고 MODE 활용 * fix: useDate 내부 isMakers도 수정
- Loading branch information
Showing
8 changed files
with
95 additions
and
45 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
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,45 @@ | ||
import { Helmet } from 'react-helmet-async'; | ||
|
||
const Head = () => { | ||
const isMakers = import.meta.env.MODE.includes('makers'); | ||
|
||
const TOUCH_ICON = isMakers ? '/makers-touch-icon.png' : '/apple-touch-icon.png'; | ||
const ICON = isMakers ? '/makersIcon.svg' : '/icon.svg'; | ||
const FAVICON = isMakers ? '/makersFavicon.ico' : '/favicon.ico'; | ||
const SITE_NAME = `SOPT ${isMakers ? 'makers ' : ''}리크루팅`; | ||
const TITLE = `SOPT ${isMakers ? 'makers ' : ''}모집 지원하기`; | ||
const IMAGE = isMakers ? '/makersOg.png' : '/imgOg.png'; | ||
const DESCRIPTION = `SOPT${isMakers ? ' makers' : ''}의 신입 기수 모집페이지입니다.`; | ||
const URL = isMakers ? 'https://recruiting.sopt.org' : 'https://recruit.sopt.org'; | ||
|
||
return ( | ||
<Helmet> | ||
<link rel="icon" href={FAVICON} sizes="32x32" /> | ||
<link rel="icon" href={ICON} type="image/svg+xml" /> | ||
<link rel="apple-touch-icon" href={TOUCH_ICON} /> | ||
|
||
<meta property="og:title" content={TITLE} /> | ||
<meta property="og:description" content={DESCRIPTION} /> | ||
<meta property="og:site_name" content={SITE_NAME} /> | ||
<meta property="og:url" content={URL} /> | ||
|
||
<meta property="og:image" content={IMAGE} /> | ||
<meta property="og:image:alt" content={SITE_NAME} /> | ||
<meta property="og:image:width" content="800" /> | ||
<meta property="og:image:height" content="400" /> | ||
|
||
<meta property="twitter:card" content="website" /> | ||
<meta name="twitter:title" content={TITLE} /> | ||
<meta name="twitter:description" content={DESCRIPTION} /> | ||
<meta name="twitter:image" content={IMAGE} /> | ||
<meta property="twitter:image:alt" content={SITE_NAME} /> | ||
|
||
<title>{TITLE}</title> | ||
<meta name="author" content="sopt makers team official 4th" /> | ||
<meta name="description" content={DESCRIPTION} /> | ||
<meta property="twitter:site" content={URL} /> | ||
</Helmet> | ||
); | ||
}; | ||
|
||
export default Head; |
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