update star us button
This commit is contained in:
@ -6,6 +6,7 @@ import { ReactElement } from "react";
|
||||
import { HrefButton } from "./href-button";
|
||||
import Logo from "./logo";
|
||||
import { ToggleThemeButton } from "./theme-toggle-button";
|
||||
import { GithubStar } from "@/app/components/github-star";
|
||||
|
||||
type Page = {
|
||||
/**
|
||||
@ -36,14 +37,12 @@ export default function NavBar(): ReactElement {
|
||||
const path = usePathname();
|
||||
|
||||
return (
|
||||
<div className="bg-secondary w-full rounded-lg flex items-center gap-3 mt-2 bg-opacity-85 h-12">
|
||||
<Link href="/" className="flex items-center gap-2 pl-3 pr-1">
|
||||
<div className="bg-secondary w-full rounded-lg flex justify-between items-center gap-3 mt-2 px-3 bg-opacity-85 h-12">
|
||||
<Link href="/" className="flex items-center gap-2">
|
||||
<Logo />
|
||||
<p className="hidden md:block">Minecraft Utilities</p>
|
||||
</Link>
|
||||
|
||||
<div className="flex-grow" />
|
||||
|
||||
<div className="flex gap-4">
|
||||
{pages.map((page, index) => {
|
||||
const isActive = path.includes(page.url);
|
||||
@ -60,17 +59,9 @@ export default function NavBar(): ReactElement {
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="flex-grow" />
|
||||
|
||||
<div className="mr-4 flex items-center gap-2">
|
||||
<div className="hidden md:block">
|
||||
<HrefButton
|
||||
title="Star us on Github!"
|
||||
url="https://github.com/RealFascinated/minecraft-helper"
|
||||
openInNewTab
|
||||
/>
|
||||
</div>
|
||||
<div className="flex gap-4 items-center">
|
||||
<ToggleThemeButton />
|
||||
<GithubStar />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user