-
Notifications
You must be signed in to change notification settings - Fork 0
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 #21 from DylanDevelops/version-number
Version Number on Footer
- Loading branch information
Showing
4 changed files
with
6,998 additions
and
6,987 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import Link from "next/link"; | ||
import { Button } from "./ui/button"; | ||
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./ui/dropdown-menu"; | ||
import { Github, Mail } from "lucide-react"; | ||
import { GitBranch, Github, Mail } from "lucide-react"; | ||
import packageJson from '../package.json'; | ||
|
||
export const Footer = () => { | ||
const { version } = packageJson; | ||
|
||
return ( | ||
<div className="flex items-center justify-between w-full p-6 bg-transparent z-5"> | ||
<DropdownMenu> | ||
|
@@ -25,7 +28,7 @@ export const Footer = () => { | |
</Link> | ||
</DropdownMenuContent> | ||
</DropdownMenu> | ||
<div className="flex flex-row gap-x-1"> | ||
<div className="flex-row gap-x-1 hidden sm:block"> | ||
<Link href="mailto:[email protected]"> | ||
<Button variant="ghost" size="icon"> | ||
<Mail className="text-muted-foreground w-5 h-5" /> | ||
|
@@ -36,6 +39,11 @@ export const Footer = () => { | |
<Github className="text-muted-foreground w-5 h-5" /> | ||
</Button> | ||
</Link> | ||
<Link href="https://github.com/DylanDevelops/aidentify/releases" target="_blank"> | ||
<Button variant="ghost" className="text-muted-foreground"> | ||
<GitBranch className="w-5 h-5 mr-2" /> v{version} | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
|
Oops, something went wrong.