activ (blau) für "Übersicht" in Link dashoard und dashboard.html

This commit is contained in:
ISA
2024-10-21 07:27:12 +02:00
parent b3f404cc27
commit 952e6aac81
2 changed files with 3 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ function Dashboard() {
<div className="flex justify-between gap-1">
<Icon
icon="ri:calendar-schedule-line"
className="text-blue-500 text-4xl"
className="text-littwin-blue text-4xl"
/>
<h1 className="text-xl font-bold text-gray-700">
Letzten 20 Meldungen

View File

@@ -29,7 +29,8 @@ function Navigation() {
<Link href={item.path} key={item.name}>
<div
className={`block px-4 py-2 mb-4 font-bold whitespace-nowrap transition duration-300 ${
activeLink === item.path
activeLink.startsWith(item.path) ||
activeLink.startsWith(item.path + ".html")
? "bg-sky-500 text-white rounded-r-full"
: "text-black hover:bg-gray-200 rounded-r-full"
}`}