|
1 | 1 | import React, { useEffect, useState } from 'react' |
2 | 2 | import logo1 from '../assets/logo/A4 - 1.png'; |
3 | 3 | import logo2 from '../assets/logo/A4 - 2.png'; |
| 4 | +import bmac from '../assets/bmac.png'; |
4 | 5 | import { AiFillGithub } from 'react-icons/ai'; |
5 | 6 | import { useSelector } from 'react-redux'; |
6 | 7 | import {TbSourceCode} from 'react-icons/tb' |
7 | 8 | import { Link, NavLink, useNavigate } from 'react-router-dom'; |
8 | 9 | import { Helmet } from 'react-helmet'; |
9 | 10 |
|
| 11 | + |
10 | 12 | const Navbar = () => { |
11 | 13 | const [gitLogo, setgitLogo] = React.useState(false); |
12 | 14 | const canvasBackGround=useSelector((state)=>state.canvasStyle.canvasBackGround); |
@@ -49,7 +51,24 @@ const Navbar = () => { |
49 | 51 | <img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=386643&theme=light&peroiod=daily" alt="Code to Image - Beautify your code, as only code seems to be boring | Product Hunt" className='w-[250px] h-[45px]' width="250" height="54" /> |
50 | 52 | </a> |
51 | 53 | </div> |
52 | | - {/* <a href="https://www.producthunt.com/posts/code-to-image?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-code-to-image" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=386643&theme=dark" alt="Code to Image - Beautify your code, as only code seems to be 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 | + |
53 | 72 | </div> |
54 | 73 | </div> |
55 | 74 | ) |
|
0 commit comments