Skip to content

Commit 7157e66

Browse files
author
YugBhanushali
committed
added bmac button
1 parent 8e94905 commit 7157e66

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/assets/bmac.png

32.4 KB
Loading

src/components/Navbar.jsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import React, { useEffect, useState } from 'react'
22
import logo1 from '../assets/logo/A4 - 1.png';
33
import logo2 from '../assets/logo/A4 - 2.png';
4+
import bmac from '../assets/bmac.png';
45
import { AiFillGithub } from 'react-icons/ai';
56
import { useSelector } from 'react-redux';
67
import {TbSourceCode} from 'react-icons/tb'
78
import { Link, NavLink, useNavigate } from 'react-router-dom';
89
import { Helmet } from 'react-helmet';
910

11+
1012
const Navbar = () => {
1113
const [gitLogo, setgitLogo] = React.useState(false);
1214
const canvasBackGround=useSelector((state)=>state.canvasStyle.canvasBackGround);
@@ -49,7 +51,24 @@ const Navbar = () => {
4951
<img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=386643&theme=light&peroiod=daily" alt="Code&#0032;to&#0032;Image - Beautify&#0032;your&#0032;code&#0044;&#0032;as&#0032;only&#0032;code&#0032;seems&#0032;to&#0032;be&#0032;boring | Product Hunt" className='w-[250px] h-[45px]' width="250" height="54" />
5052
</a>
5153
</div>
52-
{/* <a href="https://www.producthunt.com/posts/code-to-image?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-code&#0045;to&#0045;image" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=386643&theme=dark" alt="Code&#0032;to&#0032;Image - Beautify&#0032;your&#0032;code&#0044;&#0032;as&#0032;only&#0032;code&#0032;seems&#0032;to&#0032;be&#0032;boring | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a> */}
54+
55+
<div className=' flex justify-center items-center mr-3'>
56+
{/* for desktop view */}
57+
<div className='hidden sm:block'>
58+
<a href="https://www.buymeacoffee.com/yugbhanushali" target="_blank">
59+
<img className='' src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style={{height:'44px', width:'170px'}} />
60+
</a>
61+
</div>
62+
63+
{/* for mobile view */}
64+
<div className='flex sm:hidden ml-[10px]'>
65+
<a href="https://www.buymeacoffee.com/yugbhanushali" className='' target="_blank">
66+
<img src={bmac} alt="Buy Me A Coffee" className='rounded-md' style={{height:'35px', width:'35px'}} />
67+
</a>
68+
</div>
69+
70+
</div>
71+
5372
</div>
5473
</div>
5574
)

0 commit comments

Comments
 (0)