Skip to content

Commit d3a24da

Browse files
authored
SEO (#10)
1 parent 714e9d5 commit d3a24da

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

pages/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import Companies from "src/sections/Companies";
33
import About from "src/sections/About";
44
import FAQ from "src/sections/FAQ";
55
import Hero from "src/sections/Hero";
6+
import SEO from "src/components/SEO";
67
import StarCanvas from "src/components/StarCanvas";
78

89
import "src/styles/Home.module.scss";
910

1011
const Home: NextPage = () => {
1112
return (
1213
<main>
14+
<SEO />
1315
<StarCanvas />
1416
<Hero />
1517
<About />

public/favicon.ico

-22.3 KB
Binary file not shown.

src/components/SEO/index.tsx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import Head from "next/head";
2+
3+
const SEO: React.FC = () => {
4+
return (
5+
<Head>
6+
{/* google indexing data */}
7+
8+
<title>Space 2022</title>
9+
<meta name="description" content="ACM at UCSD's Annual Career Fair" />
10+
<link rel="shortcut icon" href="/favicon.ico" />
11+
12+
{/* link sharing data */}
13+
14+
{/* page url to be used as permanent id */}
15+
<meta property="og:url" content="https://space.acmucsd.com/" />
16+
{/* type of content */}
17+
<meta property="og:type" content="website" />
18+
{/* actual website title */}
19+
<meta property="og:site_name" content="Space 2022" />
20+
{/* title to display for the specific link being shared */}
21+
<meta property="og:title" content="SPACE 2022" />
22+
{/* preview description text */}
23+
<meta
24+
property="og:description"
25+
content="ACM at UCSD's Annual Career Fair"
26+
/>
27+
28+
{/* <meta property="twitter:card" content="summary" />
29+
<meta property="twitter:creator" content={config.social.twitter} />
30+
<meta property="twitter:title" content={title} />
31+
<meta property="twitter:description" content={description} /> */}
32+
</Head>
33+
);
34+
};
35+
36+
export default SEO;

0 commit comments

Comments
 (0)