Skip to content

Commit

Permalink
updated json, navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
YugBhanushali committed Jun 6, 2023
1 parent 7157e66 commit 7dea2b2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 8 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;800&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Sono:wght@500&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
Expand Down
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"name": "codetoimg",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"license": "MIT",
"author": {
"name": "Yug Bhanushali",
"email": "[email protected]",
"url": "https://github.com/YugBhanushali"
},
"repository": {
"type": "git",
"url": "https://github.com/YugBhanushali/code-to-img"
},
"homepage": "https://codetoimg.vercel.app/",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand Down
48 changes: 41 additions & 7 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import React, { useEffect, useState } from 'react'
import logo1 from '../assets/logo/A4 - 1.png';
import logo2 from '../assets/logo/A4 - 2.png';
import bmac from '../assets/bmac.png';
import MainLogo from '../assets/Frame 1.png';
import { AiFillGithub } from 'react-icons/ai';
import { useSelector } from 'react-redux';
import {TbSourceCode} from 'react-icons/tb'
import { Link, NavLink, useNavigate } from 'react-router-dom';
import { Helmet } from 'react-helmet';

const TITLE = 'Code to Image';
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.';
const URL = 'https://codetoimg.vercel.app/';

const Navbar = () => {
const [gitLogo, setgitLogo] = React.useState(false);
Expand All @@ -22,18 +24,50 @@ const Navbar = () => {
<div className='flex justify-center items-center'>
<Helmet>
<title>Code to Image</title>
<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>
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<meta name='description' content={DESCRIPTION} ></meta>
<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>
<link
rel='shortcut icon'
href={MainLogo}
type='image/x-icon'
/>
{/* meta tag for adding creator details */}



<meta property='og:title' content={TITLE} />
<meta property='og:description' content={DESCRIPTION} />
<meta property='og:url' content={URL} />
<meta property='og:type' content='website' />
<meta property='og:image' content={MainLogo} />
<meta property='og:site_name' content={TITLE} />


<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:title' content={TITLE} />
<meta name='twitter:description' content={DESCRIPTION} />
<meta name='twitter:url' content={URL} />
<meta name='twitter:image' content={MainLogo} />
<meta name='twitter:site' content='@TheYug03' />
<meta name='twitter:creator' content='@TheYug03' />
<meta name='author' content='Yug Bhanushali' />

</Helmet>
<div className='fixed top-4 left-5 mb-5'>
{/* <img onMouseOver={()=>setLogo(false)} onMouseOut={()=>setLogo(true)} className='h-[90px] w-[60px] cursor-pointer' src={logo===true ? logo1 : logo2} alt="logo" /> */}
<div className='fixed top-4 left-5 mb-5 flex justify-center items-end '>
<TbSourceCode className='cursor-pointer' onMouseOver={()=>setmainLogo(true)} onMouseOut={()=>setmainLogo(false)}
style={{
height:'44px',
width:'44px',
color:`${mainLogo===true ? `${canvasBackGround}` : `#6B5ED9`}`
}}
/>
/>
<p
className={`sm:text-[21px] text-[19px] ml-2 sm:mb-[3px] mb-[6px] flex items-end text-[#6B5ED9] font-extrabold`}
style={{fontFamily:'Jetbrains mono'}}
>
Code to Image
</p>
</div>
<div className='fixed flex flex-row justify-center items-center top-4 right-[1px] mr-3 lg:mr-0 cursor-pointer'>
<NavLink to='https://github.com/YugBhanushali/code-to-image'>
Expand Down Expand Up @@ -68,7 +102,7 @@ const Navbar = () => {
</div>

</div>

</div>
</div>
)
Expand Down

1 comment on commit 7dea2b2

@vercel
Copy link

@vercel vercel bot commented on 7dea2b2 Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

code-to-image – ./

codetoimg.vercel.app
code-to-image-yugbhanushali.vercel.app
code-to-image-git-main-yugbhanushali.vercel.app

Please sign in to comment.