Skip to content

Commit ee3cf16

Browse files
authored
Merge pull request #76 from saviomartin/dev
Feat: Add meta tags
2 parents c993b7d + 171429d commit ee3cf16

File tree

3 files changed

+74
-2
lines changed

3 files changed

+74
-2
lines changed

components/core/MetaTags.js

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
// head
2+
import Head from "next/head";
3+
4+
const MetaTags = () => {
5+
return (
6+
<Head>
7+
<meta
8+
name="apple-mobile-web-app-status-bar-style"
9+
content="black-translucent"
10+
/>
11+
<meta name="theme-color" content="#645AD3" />
12+
13+
<title>TryShape - Create, Export, Share, and Use any Shapes of your choice.</title>
14+
<meta
15+
name="description"
16+
content="TryShape is an opensource platform to create shapes of your choice using a simple, easy-to-use interface. You can create banners, circles, polygonal shapes, export them as SVG, PNG, and even as CSS."
17+
/>
18+
<meta
19+
name="keywords"
20+
content="tryshape, tryshape tapas, tyshape github, css, css clip path, shapes, css shapes, github shapes, clippy, clip path shapes, types of shapes, css clip path shape, shape tool, generate css shapes, tyshape easy"
21+
/>
22+
<link rel="canonical" href="https://tryshape.now.sh/" />
23+
<link rel="apple-touch-icon" href="/favicon.ico" />
24+
<link rel="icon" href="/favicon.ico" />
25+
26+
{/* Primary Meta Tags */}
27+
<meta
28+
name="title"
29+
content="TryShape - Create, Export, Share, and Use any Shapes of your choice."
30+
/>
31+
<meta
32+
name="description"
33+
content="TryShape is an opensource platform to create shapes of your choice using a simple, easy-to-use interface. You can create banners, circles, polygonal shapes, export them as SVG, PNG, and even as CSS."
34+
/>
35+
36+
{/* Open Graph / Facebook */}
37+
<meta property="og:type" content="website" />
38+
<meta property="og:url" content="https://tryshape.now.sh/" />
39+
<meta
40+
property="og:title"
41+
content="TryShape - Create, Export, Share, and Use any Shapes of your choice."
42+
/>
43+
<meta
44+
property="og:description"
45+
content="TryShape is an opensource platform to create shapes of your choice using a simple, easy-to-use interface. You can create banners, circles, polygonal shapes, export them as SVG, PNG, and even as CSS."
46+
/>
47+
<meta
48+
property="og:image"
49+
content="https://tryshape.vercel.app/readme/landing.png"
50+
/>
51+
52+
{/* Twitter */}
53+
<meta property="twitter:card" content="summary_large_image" />
54+
<meta property="twitter:url" content="https://tryshape.now.sh/" />
55+
<meta
56+
property="twitter:title"
57+
content="TryShape - Create, Export, Share, and Use any Shapes of your choice."
58+
/>
59+
<meta
60+
property="twitter:description"
61+
content="TryShape is an opensource platform to create shapes of your choice using a simple, easy-to-use interface. You can create banners, circles, polygonal shapes, export them as SVG, PNG, and even as CSS."
62+
/>
63+
<meta
64+
property="twitter:image"
65+
content="https://tryshape.vercel.app/readme/landing.png"
66+
/>
67+
</Head>
68+
);
69+
};
70+
71+
export default MetaTags;

components/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export { default as ExportShape } from "./core/ExportShape";
66
export { default as CreateShape } from "./core/CreateShape";
77
export { default as CopyShapeSource } from "./core/CopyShapeSource";
88
export { default as DeleteShape } from "./core/DeleteShape";
9+
export { default as MetaTags } from "./core/MetaTags";
910

1011
// utils
1112
export { default as Header } from "./utils/Header";

pages/_app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Toaster } from "react-hot-toast";
1111
import { auth } from "../utils/firebase";
1212

1313
// SignIn modal
14-
import { SignInModal } from '../components';
14+
import { SignInModal, MetaTags } from '../components';
1515

1616

1717
export default function App({ Component, pageProps }) {
@@ -34,8 +34,8 @@ export default function App({ Component, pageProps }) {
3434
});
3535

3636
return (
37-
3837
<>
38+
<MetaTags />
3939
<Toaster position="bottom-right" reverseOrder={false} />
4040
<Component {...pageProps} {...props} />
4141
<SignInModal open={open} setOpen={setOpen} />

0 commit comments

Comments
 (0)