Skip to content

Commit

Permalink
Merge pull request #199 from FalkorDB/logo
Browse files Browse the repository at this point in the history
Fix #198 use darker blue for light mode
  • Loading branch information
Anchel123 authored May 5, 2024
2 parents 4e8bace + 11396c0 commit 53479cb
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 7 deletions.
14 changes: 11 additions & 3 deletions components/custom/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ import { useEffect, useState } from "react";
import { useTheme } from "next-themes";
import { usePathname } from "next/navigation";
import { cn } from "@/lib/utils"
import Image from "next/image";
import { Label } from "../ui/label";
import GithubMark from "./GithubMark";


const TEXT_COLOR = "text-blue-600 dark:text-blue-300"
export interface LinkDefinition {
name: string,
href: string,
Expand Down Expand Up @@ -63,13 +66,18 @@ export default function Navbar({ collapsed }: { collapsed: boolean }) {
return (
<nav className='w-full h-full bg-gray-100 dark:bg-gray-800 py-5 flex flex-col justify-between'>
<ul className={`flex flex-col gap-5 ${collapsed ? "items-center" : "justify-start pl-2"}`}>
<li>
<Link href="https://www.falkordb.com" target="_blank">
<Image src="/falkordb.svg" alt="FalkorDB Logo" width={100} height={100} />
</Link>
</li>
{status === "authenticated" &&
linksUp.map((link, index) => (
// eslint-disable-next-line react/no-array-index-key
<li key={index}>
<Link
title={link.name}
className={cn("underline underline-offset-2 flex gap-2", pathName === link.href ? '' : 'text-blue-300')}
className={cn("underline underline-offset-2 flex gap-2", pathName === link.href ? '' : TEXT_COLOR)}
href={link.href} onClick={link.onClick}
>
{link.icon}
Expand All @@ -88,7 +96,7 @@ export default function Navbar({ collapsed }: { collapsed: boolean }) {
<li key={0}>
{
mounted &&
<button title="Theme" type="button" className="flex flex-row items-center gap-2 underline underline-offset-2 text-blue-300" onClick={() => setTheme(darkmode ? "light" : "dark")}>
<button title="Theme" type="button" className={cn("flex flex-row items-center gap-2 underline underline-offset-2", TEXT_COLOR)} onClick={() => setTheme(darkmode ? "light" : "dark")}>
{
darkmode ? <Sun /> : <Moon />
}
Expand All @@ -105,7 +113,7 @@ export default function Navbar({ collapsed }: { collapsed: boolean }) {
<li key={index + 1}>
<Link
title={link.name}
className={cn("underline underline-offset-2 flex gap-2", pathName === link.href ? '' : 'text-blue-300')}
className={cn("underline underline-offset-2 flex gap-2", pathName === link.href ? '' : TEXT_COLOR)}
href={link.href} onClick={link.onClick}
>
{link.icon}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@playwright/test": "^1.42.1",
"@playwright/test": "^1.43.1",
"@svgr/webpack": "^8.1.0",
"@types/cytoscape-fcose": "^2.2.4",
"@types/lodash": "^4.14.202",
Expand Down
54 changes: 54 additions & 0 deletions public/falkordb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

0 comments on commit 53479cb

Please sign in to comment.