Skip to content

Commit 8e94905

Browse files
author
YugBhanushali
committed
added meta tags
1 parent d0ab68d commit 8e94905

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

package-lock.json

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"prismjs": "^1.29.0",
2525
"react": "^18.2.0",
2626
"react-dom": "^18.2.0",
27+
"react-helmet": "^6.1.0",
2728
"react-icons": "^4.8.0",
2829
"react-redux": "^8.0.5",
2930
"react-router-dom": "^6.9.0",

src/components/Navbar.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { AiFillGithub } from 'react-icons/ai';
55
import { useSelector } from 'react-redux';
66
import {TbSourceCode} from 'react-icons/tb'
77
import { Link, NavLink, useNavigate } from 'react-router-dom';
8+
import { Helmet } from 'react-helmet';
89

910
const Navbar = () => {
1011
const [gitLogo, setgitLogo] = React.useState(false);
@@ -17,6 +18,11 @@ const Navbar = () => {
1718

1819
return (
1920
<div className='flex justify-center items-center'>
21+
<Helmet>
22+
<title>Code to Image</title>
23+
<meta name='description' content='Create beautiful snippet of your code using Code to Image, with customizable theme UI, fonts, background, Dark mode and much more and downlaod the snippet in different formats' ></meta>
24+
<meta name='keywords' content='codetoimg, codeimg, image, code, developer, developer tool, image generator, code snippets, snippets, code to image, converter, image converter, convert code to images, code to img, code image, snapshot, code snapshot, codeblock'></meta>
25+
</Helmet>
2026
<div className='fixed top-4 left-5 mb-5'>
2127
{/* <img onMouseOver={()=>setLogo(false)} onMouseOut={()=>setLogo(true)} className='h-[90px] w-[60px] cursor-pointer' src={logo===true ? logo1 : logo2} alt="logo" /> */}
2228
<TbSourceCode className='cursor-pointer' onMouseOver={()=>setmainLogo(true)} onMouseOut={()=>setmainLogo(false)}

0 commit comments

Comments
 (0)