Skip to content

Commit

Permalink
fix(meta): seo-meta added
Browse files Browse the repository at this point in the history
yokesh-ks committed Oct 7, 2023
1 parent 2dd8dd1 commit 1785d2c
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -3,12 +3,14 @@ import { ThemeProvider } from "@/components/common/providers";
import { Inter } from "next/font/google";
import { Header } from "@/components/common/Header";
import { Toaster } from "@/components/ui/toaster";
import { Meta } from "@/components/meta";

const inter = Inter({ subsets: ["latin"] });

function MyApp({ Component, pageProps }) {
return (
<div className={inter.className}>
<Meta />
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<Header />
<Component {...pageProps} />
Binary file added public/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions src/components/meta.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from "react";
import Head from "next/head";

export const Meta = () => {
const image = "/preview.png";
const title = "ToolEmpire - Innovative tools for empire builders.";
const description =
"Discover a treasure trove of powerful tools designed to empower empire builders like you. Whether you're a designer, marketer, developer, or entrepreneur, our site offers an array of essential utilities at your fingertips.";
const url = "https://tool-empire.vercel.app";
return (
<Head>
<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={description} />
<meta
name="keywords"
content="Tool Empire, ColorMagic, FontWise, CodeGlow, Pdf"
></meta>

<meta property="og:type" content="website" />
<meta property="og:url" content={url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />

<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content={url} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={image} />
<link rel="icon" href="/favicon.png" type="image/png" />
</Head>
);
};

0 comments on commit 1785d2c

Please sign in to comment.