-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from HackMelbourne/navbar-update
Navbar update
- Loading branch information
Showing
7 changed files
with
266 additions
and
41 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Link } from "react-router-dom"; | ||
import { NavbarPillProps } from "./NavbarPillProps"; | ||
|
||
const NavbarPill = ({ title, desc, Icon, image, link } : NavbarPillProps) => { | ||
return ( | ||
<Link to={link}> | ||
<div className="relative w-full flex gap-4 items-center justify-center px-3 py-4 mt-2 rounded-md border border-white bg-center bg-cover" | ||
style={{ backgroundImage: `url(${image})` }}> | ||
<div className="absolute inset-0 bg-black opacity-50 z-0"></div> | ||
<Icon className="relative w-8 h-8 z-10" /> | ||
<div className="relative flex flex-col gap-1 z-10"> | ||
<h3 className="font-semibold text-md">{title}</h3> | ||
<p className="text-sm">{desc}</p> | ||
</div> | ||
</div> | ||
</Link> | ||
) | ||
} | ||
|
||
export default NavbarPill; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { IconType } from "react-icons"; | ||
|
||
export interface NavbarPillProps { | ||
title: string; | ||
desc: string; | ||
Icon: IconType; | ||
image: string; | ||
link: string; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.