Skip to content

Commit

Permalink
Merge pull request #7 from Blackraven93/develop
Browse files Browse the repository at this point in the history
v1에 대한 마지막 업데이트 입니다. 메타테그 및 구조 부분에 대해 리팩터링을 진행했습니다.
  • Loading branch information
Blackraven93 authored Oct 16, 2022
2 parents a348f0a + 07638fd commit 539fc9e
Show file tree
Hide file tree
Showing 34 changed files with 8,170 additions and 5,827 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ package.tgz

.idea

coverage
coverage

.env

*.env
13,442 changes: 7,840 additions & 5,602 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
13 changes: 13 additions & 0 deletions lib/gtag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export const pageview = (url) => {
window.gtag("config", process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS, {
page_path: url,
});
};

export const event = ({ action, category, label, value }) => {
window.gtag("event", action, {
event_category: category,
event_label: label,
value,
});
};
18 changes: 18 additions & 0 deletions pages/404.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import HeadMeta from "./components/HeadMeta";
import styles from "../styles/modules/error.module.css";

const Custom404 = () => {
return (
<div className={styles.error}>
<HeadMeta />
<h1>404 | 페이지가 없습니다 😂</h1>
</div>
);
};

Error.getInitialProps = ({ res, err }) => {
const statusCode = res ? res.statusCode : err ? err.statusCode : 404;
return { statusCode };
};

export default Custom404;
38 changes: 38 additions & 0 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,46 @@
import reset from "../styles/global.css";

import Script from "next/script";
import { useRouter } from "next/router";
import { useEffect } from "react";

import * as gtag from "../lib/gtag";

const App = ({ Component, pageProps }) => {
const router = useRouter();

useEffect(() => {
const handleRouteChange = (url) => {
gtag.pageview(url);
};

router.events.on("routeChangeComplete", handleRouteChange);

return () => {
router.events.off("routeChangeComplete", handleRouteChange);
};
}, [router.events]);

return (
<>
<Script
strategy="afterInteractive"
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`}
/>
<Script
id="google-analytics"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}', {
page_path: window.location.pathname,
});
`,
}}
/>
<Component {...pageProps} />
</>
);
Expand Down
5 changes: 0 additions & 5 deletions pages/components/Description.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ const Description = () => {
<h2>11월 12일 (토)</h2>
<h2 className={styles.location}>
<div>체인지업 그라운드 포항</div>
{/* <Link href="https://www.changeupground.com/">
<span style={{ cursor: "pointer" }}>
자세히 알아보기 &#10132;
</span>
</Link> */}
</h2>
</div>
</main>
Expand Down
122 changes: 122 additions & 0 deletions pages/components/HeadMeta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
import Head from "next/head";

const HeadMeta = () => {
return (
<Head>
<meta http-equiv="Title" content="SyncSwift 2022" />
<meta name="og:title" content="SyncSwift 2022" />
<meta property="twitter:title" content="SyncSwift 2022" />
<meta name="og:type" content="website" />
<meta name="og:url" content="https://www.asyncswift.com/" />
<meta name="og:image" content="/favicons/apple-icon.png" />
<meta property="twitter:image" content="/favicons/apple-icon.png" />
<meta property="twitter:card" content="/favicons/apple-icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF - 8" />
<meta http-equiv="Author" content="AsyncSwift Organizar" />
<meta http-equiv="publisher" content="AsyncSwift" />
<meta http-equiv="Reply-To" content="asyncswift@gmail.com" />
<meta http-equiv="Email" content="asyncswift@gmail.com" />
<meta http-equiv="Distribution" content="Raven" />
<meta http-equiv="Copyright" content="AsyncSwift" />
<meta http-equiv="Build" content="Wed, 05 Oct 2022 20:00:00" />
<meta name="og:site_name" content="SyncSwift 2022" />
<meta
name="description"
content="Apple 생태계 속에서 헤엄치는 사람들의 커뮤니티. AsyncSwift 입니다."
/>
<meta
name="og:description"
content="Apple 생태계 속에서 헤엄치는 사람들의 커뮤니티. AsyncSwift 입니다."
/>
<meta
property="twitter:description"
content="Apple 생태계 속에서 헤엄치는 사람들의 커뮤니티. AsyncSwift 입니다."
/>
<meta http-equiv="Subject" content="Swift Conference" />
<meta name="Keywords" content="AsyncSwift" />
<meta name="keywords" content="Swift Conference" />
<meta name="keywords" content="SyncSwift 2022" />
<link rel="icon" href="/favicons/favicon.ico" />
<link
rel="apple-touch-icon"
sizes="57x57"
href="/favicons/apple-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="/favicons/apple-icon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="/favicons/apple-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="/favicons/apple-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="/favicons/apple-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="/favicons/apple-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="/favicons/apple-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="/favicons/apple-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/favicons/apple-icon-180x180.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="/favicons/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicons/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="/favicons/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicons/favicon-16x16.png"
/>
<link rel="manifest" href="/favicons/manifest.json" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta
name="msapplication-TileImage"
content="/favicons/ms-icon-144x144.png"
/>
<meta name="theme-color" content="#ffffff" />
<title>SyncSwift 2022</title>
</Head>
);
};

export default HeadMeta;
20 changes: 13 additions & 7 deletions pages/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import Image from "next/image";
import logoFile from "../../public/AsyncLogo.svg";
import Link from "next/link";

import LogoFile from "../../public/AsyncLogo.svg";

import style from "../../styles/modules/Header.module.css";

const Header = () => {
return (
<header className={style.header}>
<Image
src={logoFile}
alt="AsyncSwift Community Logo"
width={62}
height={60}
/>
<Link href="/">
<a>
<Image
src={LogoFile}
alt="AsyncSwift Community Logo"
width={62}
height={60}
/>
</a>
</Link>
</header>
);
};
Expand Down
52 changes: 22 additions & 30 deletions pages/components/SNS.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,37 @@
import Image from "next/image";
import Link from "next/link";

import notion from "../../public/notion.svg";
import twitter from "../../public/twitter.svg";
import instagram from "../../public/instagram.svg";
import linkedIn from "../../public/linkedIn.svg";

import style from "../../styles/modules/Info.module.css";

const SNS = () => {
const conferenceInfoUrl = {
notion:
"https://unnnyong.notion.site/AsyncSwift-9baba57eb8f8416d877bd5d2aba4a62d",
instagram: "https://www.instagram.com/asyncswift/",
twitter: "https://twitter.com/AsyncSwift",
linkedIn: "https://www.linkedin.com/company/async-swift/",
};

return (
<div className={style.getInfo}>
<h4>To get latest information</h4>
<div className={style.SNSContainer}>
<Link href="https://unnnyong.notion.site/AsyncSwift-9baba57eb8f8416d877bd5d2aba4a62d">
<Image
style={{ cursor: "pointer" }}
alt="Notion logo"
src={notion}
width={32}
height={32}
/>
</Link>

<Link href="https://twitter.com/AsyncSwift">
<Image
style={{ cursor: "pointer" }}
alt="Twitter logo"
src={twitter}
width={32}
height={32}
/>
</Link>

<Link href="https://www.instagram.com/asyncswift/">
<Image
style={{ cursor: "pointer" }}
alt="Instagram logo"
src={instagram}
width={32}
height={32}
/>
</Link>
<a target="_blank" href={conferenceInfoUrl.notion} rel="noreferrer">
<Image alt="Notion logo" src={notion} width={32} height={32} />
</a>
<a target="_blank" href={conferenceInfoUrl.twitter} rel="noreferrer">
<Image alt="Twitter logo" src={twitter} width={32} height={32} />
</a>
<a target="_blank" href={conferenceInfoUrl.instagram} rel="noreferrer">
<Image alt="Instagram logo" src={instagram} width={32} height={32} />
</a>
<a target="_blank" href={conferenceInfoUrl.linkedIn} rel="noreferrer">
<Image alt="LinkedIn logo" src={linkedIn} width={32} height={32} />
</a>
</div>
</div>
);
Expand Down
12 changes: 9 additions & 3 deletions pages/components/Ticket.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ import style from "../../styles/modules/Info.module.css";
const Ticket = () => {
return (
<div className={style.ticketInfo}>
<h3>티켓 오픈</h3>
<div>10월 12일</div>
<div>이벤트브라이트</div>
<a
target="_blank"
href="https://festa.io/events/ndCognG2SC4ZEj44osqurB"
rel="noreferrer"
>
<h3>티켓 오픈 &#10132; </h3>
</a>
<div>10월 19일</div>
<div>페스타</div>
</div>
);
};
Expand Down
Loading

0 comments on commit 539fc9e

Please sign in to comment.