Skip to content

Instantly share code, notes, and snippets.

@TRahulSam1997
Created April 4, 2021 03:30
Show Gist options
  • Save TRahulSam1997/b439712eabade255d2a44b111c0e96a9 to your computer and use it in GitHub Desktop.
Save TRahulSam1997/b439712eabade255d2a44b111c0e96a9 to your computer and use it in GitHub Desktop.
import React from 'react'
export default function Navbar() {
return (
<header className="bg-white shadow border-t-4 border-indigo-600">
<div className="container mx-auto px-6 py-4">
<div className="flex items-center justify-between">
<div>
<a className="flex items-center text-gray-800 hover:text-indigo-600" href="#">
<svg className="h-6 w-6 sm:h-6 sm:w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
</svg>
<span className="mx-3 font-medium text-sm md:text-base">{process.env.NEXT_PUBLIC_FIRST_NAME} {process.env.NEXT_PUBLIC_SECOND_NAME}</span>
</a>
</div>
<div className="flex items-center -mx-2">
<a className="flex items-center mx-2 text-gray-800 hover:text-indigo-600" href={process.env.NEXT_PUBLIC_TWITTER}>
<svg className="h-5 w-5 sm:h-6 sm:w-6 fill-current" xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>
<path d='M496,109.5a201.8,201.8,0,0,1-56.55,15.3,97.51,97.51,0,0,0,43.33-53.6,197.74,197.74,0,0,1-62.56,23.5A99.14,99.14,0,0,0,348.31,64c-54.42,0-98.46,43.4-98.46,96.9a93.21,93.21,0,0,0,2.54,22.1,280.7,280.7,0,0,1-203-101.3A95.69,95.69,0,0,0,36,130.4C36,164,53.53,193.7,80,211.1A97.5,97.5,0,0,1,35.22,199v1.2c0,47,34,86.1,79,95a100.76,100.76,0,0,1-25.94,3.4,94.38,94.38,0,0,1-18.51-1.8c12.51,38.5,48.92,66.5,92.05,67.3A199.59,199.59,0,0,1,39.5,405.6,203,203,0,0,1,16,404.2,278.68,278.68,0,0,0,166.74,448c181.36,0,280.44-147.7,280.44-275.8,0-4.2-.11-8.4-.31-12.5A198.48,198.48,0,0,0,496,109.5Z'/>
</svg>
</a>
</div>
</div>
</div>
</header>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment