Skip to content

Commit

Permalink
Merge pull request #311 from Gongjakso/Refactor/addRobotFileandSEOwor…
Browse files Browse the repository at this point in the history
…k#302

🔀Refactor/addRobotFileandSEOwork#302 [Google Ads 및 SEO 작업 완료]
  • Loading branch information
Herrypi authored Nov 11, 2024
2 parents c899288 + 4bd8acc commit 408c806
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 22 deletions.
19 changes: 19 additions & 0 deletions gongjakso/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gongjakso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"react-fullpage": "^0.1.19",
"react-ga": "^3.3.1",
"react-ga4": "^2.1.0",
"react-helmet-async": "^2.0.5",
"react-hook-form": "^7.49.3",
"react-intersection-observer": "^9.8.1",
"react-multilevel-dropdown": "^4.0.0",
Expand Down
38 changes: 19 additions & 19 deletions gongjakso/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@

gtag('config', 'G-757LG6FY1Q');
</script>
<!-- HTML Meta Tags -->
<title>공모전 팀빌딩 서비스 | 공작소 gongjakso</title>
<meta name="description" content="귀찮은 공모전 팀 구인 과정은 이제 그만! 내가 원하는 조건에 맞추어 공모전 팀원을 모집해보세요.">

<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://gongjakso.xyz">
<meta property="og:type" content="website">
<meta property="og:title" content="공모전 팀빌딩 서비스 | 공작소 gongjakso">
<meta property="og:description" content="귀찮은 공모전 팀 구인 과정은 이제 그만! 내가 원하는 조건에 맞추어 공모전 팀원을 모집해보세요.">
<meta property="og:image" content="https://opengraph.b-cdn.net/production/images/5585fb04-c501-4717-8122-8c9d3d05f246.png?token=hOfHzJ7eKbz1nuru47epxsiWBHDGHpfIodgv5PB7b0Y&height=557&width=1200&expires=33266696940">

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="gongjakso.xyz">
<meta property="twitter:url" content="https://gongjakso.xyz">
<meta name="twitter:title" content="공모전 팀빌딩 서비스 | 공작소 gongjakso">
<meta name="twitter:description" content="귀찮은 공모전 팀 구인 과정은 이제 그만! 내가 원하는 조건에 맞추어 공모전 팀원을 모집해보세요.">
<meta name="twitter:image" content="https://opengraph.b-cdn.net/production/images/5585fb04-c501-4717-8122-8c9d3d05f246.png?token=hOfHzJ7eKbz1nuru47epxsiWBHDGHpfIodgv5PB7b0Y&height=557&width=1200&expires=33266696940">

<!-- Meta Tags Generated via https://www.opengraph.xyz/ -->
</head>

<body>
<div id="root"></div>

<!-- Event snippet for 페이지 조회 conversion page -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'AW-16763777373/-HQ6CPeV4ecZEN3iy7k-',
'value': 1.0,
'currency': 'KRW',
'event_callback': callback
});
return false;
}
</script>

</body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KKNX2ZKD"
Expand Down
7 changes: 5 additions & 2 deletions gongjakso/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import theme from './styles/theme';
import { useEffect, useState } from 'react';
import { useMediaQuery } from 'react-responsive';
import NoMobilePage from './pages/NoMobilePage/NoMobilePage';
import { HelmetProvider } from 'react-helmet-async';

function App() {
const isMobile = useMediaQuery({ query: '(max-width: 1023px)' });
Expand All @@ -13,8 +14,10 @@ function App() {
<div className="container">
<ThemeProvider theme={theme}>
<GlobalStyle />
{/* <Router /> */}
{isMobile ? <NoMobilePage /> : <Router />}
<HelmetProvider>
{/* <Router /> */}
{isMobile ? <NoMobilePage /> : <Router />}
</HelmetProvider>
</ThemeProvider>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion gongjakso/src/components/common/CountGuest/CountGuest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const CountGuest = ({ isProject, maxGuests, onApply }) => {
const [roles, setRoles] = useState({
기획: 0,
디자인: 0,
개발자: 0,
개발: 0,
...(isProject && { FE: 0, BE: 0 }),
기타: 0,
});
Expand Down
22 changes: 22 additions & 0 deletions gongjakso/src/components/common/MetaTag/MetaTag.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';
import { Helmet } from 'react-helmet-async';

const MetaTag = props => {
return (
<Helmet>
<title>{props?.title}</title>
<meta name="description" content={props?.description} />
<meta name="keywords" content={props?.keywords} />
<meta property="og:type" content="website" />
<meta property="og:title" content={props?.title} />
<meta property="og:site_name" content={props?.title} />
<meta property="og:description" content={props?.description} />
<meta property="og:image" content={props?.imgsrc} />
<meta property="og:url" content={props?.url} />

<link rel="canonical" href={props?.url} />
</Helmet>
);
};

export default MetaTag;
8 changes: 8 additions & 0 deletions gongjakso/src/pages/ContestListPage/ContestListPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import ContestListBox from '../ContestListBox/ContestListBox';
import Pagination from '../../components/Pagination/Pagination';
import { getContestList } from '../../service/post_service';
import Modal1 from '../../features/modal/LoginModal1';
import MetaTag from '../../components/common/MetaTag/MetaTag';

const ContestListPage = () => {
const [banners, setBanners] = useState([]);
Expand Down Expand Up @@ -101,6 +102,13 @@ const ContestListPage = () => {

return (
<>
<MetaTag
title="공모전리스트"
description="다양한 공모전에 참여해보세요."
keywords="공모전, 참여, 팀빌딩, 기획, 디자인, 개발, IT"
imgsrc="https://opengraph.b-cdn.net/production/images/5585fb04-c501-4717-8122-8c9d3d05f246.png?token=hOfHzJ7eKbz1nuru47epxsiWBHDGHpfIodgv5PB7b0Y&height=557&width=1200&expires=33266696940"
url="https://gongjakso.xyz/contestList"
/>
<TopButton />
<S.MainContent>
<S.Div>
Expand Down
44 changes: 44 additions & 0 deletions gongjakso/src/pages/HomePage/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import TopButton from '../../pages/HomePage/TopButton';
import Banner from './Banner';
import { getMyInfo } from '../../service/auth_service';
import { useNavigate } from 'react-router-dom';
import { Helmet } from 'react-helmet-async';

const HomePage = () => {
const authenticated = localStorage.getItem('accessToken');
Expand Down Expand Up @@ -53,6 +54,49 @@ const HomePage = () => {

return (
<>
<Helmet>
{/* <!-- HTML Meta Tags --> */}
<title>공모전 팀빌딩 서비스 | 공작소 gongjakso</title>
<meta
name="description"
content="귀찮은 공모전 팀 구인 과정은 이제 그만! 내가 원하는 조건에 맞추어 공모전 팀원을 모집해보세요."
/>

{/* <!-- Facebook Meta Tags --> */}
<meta property="og:url" content="https://gongjakso.xyz" />
<meta property="og:type" content="website" />
<meta
property="og:title"
content="공모전 팀빌딩 서비스 | 공작소 gongjakso"
/>
<meta
property="og:description"
content="귀찮은 공모전 팀 구인 과정은 이제 그만! 내가 원하는 조건에 맞추어 공모전 팀원을 모집해보세요."
/>
<meta
property="og:image"
content="https://opengraph.b-cdn.net/production/images/5585fb04-c501-4717-8122-8c9d3d05f246.png?token=hOfHzJ7eKbz1nuru47epxsiWBHDGHpfIodgv5PB7b0Y&height=557&width=1200&expires=33266696940"
/>

{/* <!-- Twitter Meta Tags --> */}
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:domain" content="gongjakso.xyz" />
<meta property="twitter:url" content="https://gongjakso.xyz" />
<meta
name="twitter:title"
content="공모전 팀빌딩 서비스 | 공작소 gongjakso"
/>
<meta
name="twitter:description"
content="귀찮은 공모전 팀 구인 과정은 이제 그만! 내가 원하는 조건에 맞추어 공모전 팀원을 모집해보세요."
/>
<meta
name="twitter:image"
content="https://opengraph.b-cdn.net/production/images/5585fb04-c501-4717-8122-8c9d3d05f246.png?token=hOfHzJ7eKbz1nuru47epxsiWBHDGHpfIodgv5PB7b0Y&height=557&width=1200&expires=33266696940"
/>

{/* <!-- Meta Tags Generated via https://www.opengraph.xyz/ --> */}
</Helmet>
<TopButton />
<S.HomeContent className="home-section">
<S.TitleWrapper>
Expand Down
8 changes: 8 additions & 0 deletions gongjakso/src/pages/PostMainPage/PostMainPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import TeamBox from '../TeamBox/TeamBox';
import Modal2 from '../../features/modal/LoginModal2';
import Modal1 from '../../features/modal/LoginModal1';
import NoContents from '../../features/NoContents/NoContents';
import MetaTag from '../../components/common/MetaTag/MetaTag';

const PostMainPage = () => {
const authenticated = localStorage.getItem('accessToken');
Expand Down Expand Up @@ -184,6 +185,13 @@ const PostMainPage = () => {

return (
<>
<MetaTag
title="공모전공고"
description="공모전 공고들을 모아볼 수 있는 페이지"
keywords="공모전, 프로젝트, 팀빌딩, 개발, 기획, 디자인"
imgsrc="https://opengraph.b-cdn.net/production/images/5585fb04-c501-4717-8122-8c9d3d05f246.png?token=hOfHzJ7eKbz1nuru47epxsiWBHDGHpfIodgv5PB7b0Y&height=557&width=1200&expires=33266696940"
url="https://gongjakso.xyz/contest"
/>
<TopButton />
<S.MainContent>
<S.Div>
Expand Down
8 changes: 8 additions & 0 deletions gongjakso/src/pages/ProfilePage/ProfilePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
getExistPortfolio,
deleteExistPortfolio,
} from '../../service/portfolio_service';
import MetaTag from '../../components/common/MetaTag/MetaTag';

const MAX_PORTFOLIOS = 3;

Expand Down Expand Up @@ -297,6 +298,13 @@ const ProfilePage = () => {

return (
<div style={{ paddingBottom: '10rem' }}>
<MetaTag
title="프로필페이지"
description="내 정보를 확인해봐요."
keywords="포트폴리오, 스크랩, 팀빌딩, 모집, 참여, 공모전"
imgsrc="https://opengraph.b-cdn.net/production/images/5585fb04-c501-4717-8122-8c9d3d05f246.png?token=hOfHzJ7eKbz1nuru47epxsiWBHDGHpfIodgv5PB7b0Y&height=557&width=1200&expires=33266696940"
url="https://gongjakso.xyz/contestList"
/>
<S.TopBox>
<S.InfoBox>
<S.DetailBox>
Expand Down

0 comments on commit 408c806

Please sign in to comment.