Skip to content

Commit 7dea2b2

Browse files
author
YugBhanushali
committed
updated json, navbar
1 parent 7157e66 commit 7dea2b2

File tree

3 files changed

+54
-8
lines changed

3 files changed

+54
-8
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
1111
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
1212
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
13+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;800&display=swap" rel="stylesheet">
1314
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@500&display=swap" rel="stylesheet">
1415
<link href="https://fonts.googleapis.com/css2?family=Sono:wght@500&display=swap" rel="stylesheet">
1516
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
{
22
"name": "codetoimg",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "1.0.0",
55
"type": "module",
6+
"license": "MIT",
7+
"author": {
8+
"name": "Yug Bhanushali",
9+
"email": "yug.h.bhanushali1@gmail.com",
10+
"url": "https://github.com/YugBhanushali"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/YugBhanushali/code-to-img"
15+
},
16+
"homepage": "https://codetoimg.vercel.app/",
617
"scripts": {
718
"dev": "vite",
819
"build": "vite build",

src/components/Navbar.jsx

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import React, { useEffect, useState } from 'react'
2-
import logo1 from '../assets/logo/A4 - 1.png';
3-
import logo2 from '../assets/logo/A4 - 2.png';
42
import bmac from '../assets/bmac.png';
3+
import MainLogo from '../assets/Frame 1.png';
54
import { AiFillGithub } from 'react-icons/ai';
65
import { useSelector } from 'react-redux';
76
import {TbSourceCode} from 'react-icons/tb'
87
import { Link, NavLink, useNavigate } from 'react-router-dom';
98
import { Helmet } from 'react-helmet';
109

10+
const TITLE = 'Code to Image';
11+
const DESCRIPTION = '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. Convert your code into beautiful images with few clicks. Share this beautiful snippet with your friends and colleagues and make your code look more beautiful and attractive.';
12+
const URL = 'https://codetoimg.vercel.app/';
1113

1214
const Navbar = () => {
1315
const [gitLogo, setgitLogo] = React.useState(false);
@@ -22,18 +24,50 @@ const Navbar = () => {
2224
<div className='flex justify-center items-center'>
2325
<Helmet>
2426
<title>Code to Image</title>
25-
<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>
27+
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
28+
<meta name='description' content={DESCRIPTION} ></meta>
2629
<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>
30+
<link
31+
rel='shortcut icon'
32+
href={MainLogo}
33+
type='image/x-icon'
34+
/>
35+
{/* meta tag for adding creator details */}
36+
37+
38+
39+
<meta property='og:title' content={TITLE} />
40+
<meta property='og:description' content={DESCRIPTION} />
41+
<meta property='og:url' content={URL} />
42+
<meta property='og:type' content='website' />
43+
<meta property='og:image' content={MainLogo} />
44+
<meta property='og:site_name' content={TITLE} />
45+
46+
47+
<meta name='twitter:card' content='summary_large_image' />
48+
<meta name='twitter:title' content={TITLE} />
49+
<meta name='twitter:description' content={DESCRIPTION} />
50+
<meta name='twitter:url' content={URL} />
51+
<meta name='twitter:image' content={MainLogo} />
52+
<meta name='twitter:site' content='@TheYug03' />
53+
<meta name='twitter:creator' content='@TheYug03' />
54+
<meta name='author' content='Yug Bhanushali' />
55+
2756
</Helmet>
28-
<div className='fixed top-4 left-5 mb-5'>
29-
{/* <img onMouseOver={()=>setLogo(false)} onMouseOut={()=>setLogo(true)} className='h-[90px] w-[60px] cursor-pointer' src={logo===true ? logo1 : logo2} alt="logo" /> */}
57+
<div className='fixed top-4 left-5 mb-5 flex justify-center items-end '>
3058
<TbSourceCode className='cursor-pointer' onMouseOver={()=>setmainLogo(true)} onMouseOut={()=>setmainLogo(false)}
3159
style={{
3260
height:'44px',
3361
width:'44px',
3462
color:`${mainLogo===true ? `${canvasBackGround}` : `#6B5ED9`}`
3563
}}
36-
/>
64+
/>
65+
<p
66+
className={`sm:text-[21px] text-[19px] ml-2 sm:mb-[3px] mb-[6px] flex items-end text-[#6B5ED9] font-extrabold`}
67+
style={{fontFamily:'Jetbrains mono'}}
68+
>
69+
Code to Image
70+
</p>
3771
</div>
3872
<div className='fixed flex flex-row justify-center items-center top-4 right-[1px] mr-3 lg:mr-0 cursor-pointer'>
3973
<NavLink to='https://github.com/YugBhanushali/code-to-image'>
@@ -68,7 +102,7 @@ const Navbar = () => {
68102
</div>
69103

70104
</div>
71-
105+
72106
</div>
73107
</div>
74108
)

0 commit comments

Comments
 (0)