updating navbar buttons

This commit is contained in:
akdeb 2025-04-28 12:24:07 +01:00
parent 5c3d744427
commit c434a9cd91
6 changed files with 27 additions and 19 deletions

BIN
.DS_Store vendored

Binary file not shown.

View file

@ -1,5 +1,5 @@
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Hospital, Sparkle, ChevronDown, Dog, Bird, Hop, Wand, Plus, Blocks, Gamepad2 } from "lucide-react"; import { Home, Sparkle, ChevronDown, Dog, Bird, Hop, Plus, Blocks, Gamepad2 } from "lucide-react";
import { import {
DropdownMenuSeparator, DropdownMenuSeparator,
DropdownMenu, DropdownMenu,
@ -34,21 +34,21 @@ export default function LeftNavbarButtons({ user }: LeftNavbarButtonsProps) {
return ( return (
<div className="flex flex-row gap-4 sm:gap-10 items-center"> <div className="flex flex-row gap-4 sm:gap-10 items-center">
<a className="flex flex-row gap-3 items-center" href="/"> <Button
<Wand size={ICON_SIZE} /> variant="outline"
<p className="flex flex-row gap-2 items-center px-4 py-2 rounded-lg"
className={`flex items-center font-silkscreen text-xl text-stone-800 dark:text-stone-100 relative`} asChild
aria-label="Go to Home page"
title="Click to go to Home page"
> >
{shouldShowHospital ? ( <a href="https://www.elatoai.com">
<> <Home size={18} className="mr-1" />
<span>Elato | <span className="text-cyan-700">{firstWordOfHospital}</span></span> <p className="flex items-center font-silkscreen text-xl">
<span className="absolute -top-3 -right-3 text-cyan-700"><Plus size={12} strokeWidth={3} /></span>
</>
) : (
<span>Elato</span> <span>Elato</span>
)}
</p> </p>
<span className="text-xl">👾</span>
</a> </a>
</Button>
</div> </div>
); );
} }

View file

@ -47,11 +47,18 @@ const NavbarButtons: React.FC<NavbarButtonsProps> = ({
> >
<Button <Button
size="sm" size="sm"
variant={"ghost"} variant={isMobile ? "ghost" : "outline"}
className="flex bg-nav-bar border-0 sm:mr-2 flex-row gap-2 items-center rounded-full" className="flex bg-nav-bar border-0 sm:mr-2 sm:border flex-row gap-2 items-center rounded-full"
> >
<FaGithub className="text-xl" /> <FaGithub className="text-xl" />
<p className="hidden sm:flex font-normal">GitHub</p> <p className="hidden sm:flex font-normal">GitHub</p>
<Separator
orientation="vertical"
className="hidden sm:flex"
/>
<p className="hidden sm:flex text-xs font-normal">
{stars?.toLocaleString() ?? 347}
</p>
</Button> </Button>
</Link> </Link>
)} )}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 272 B

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -9,6 +9,7 @@ import { CreateCharacterShowcase } from "./components/LandingPage/CreateCharacte
import ProductsSection from "./components/LandingPage/ProductsSection"; import ProductsSection from "./components/LandingPage/ProductsSection";
import Image from "next/image"; import Image from "next/image";
import { fetchGithubStars } from "./actions"; import { fetchGithubStars } from "./actions";
import YoutubeDemo from "./components/LandingPage/YoutubeDemo";
export default async function LandingPage() { export default async function LandingPage() {
const supabase = createClient(); const supabase = createClient();
@ -114,7 +115,7 @@ export default async function LandingPage() {
</div> </div>
</div> </div>
</section> </section>
<YoutubeDemo caption="Elato AI ESP32-S3 Demo" />
{/* Products Section */} {/* Products Section */}
<ProductsSection /> <ProductsSection />

Binary file not shown.