diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 0484bb4..73a383b 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -3,12 +3,7 @@ import { Disclosure } from '@headlessui/react'; import { MenuIcon, XIcon } from '@heroicons/react/outline'; import clsx from 'clsx'; import { Link, useLocation } from 'react-router-dom'; - -const navigation = [ - { name: 'Dashboard', to: '/dashboard', requiresAdmin: false }, - { name: 'Dateiablage', to: '/files', requiresAdmin: false }, - { name: 'Projekte', to: '/projects', requiresAdmin: false }, -]; +import { DASHBOARD_APPS } from 'src/modules/dashboard/consts'; // eslint-disable-next-line @typescript-eslint/no-empty-interface interface HeaderProps {} @@ -18,14 +13,14 @@ const Header: React.FC = () => { return ( <> - + {({ open }) => (
{/* Mobile menu button */} - + Open main menu {open ? (
- Stackspin - Stackspin + Local-IT + Local-IT
{/* Current: "border-primary-500 text-gray-900", Default: "border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700" */} - {navigation.map((item) => ( + {DASHBOARD_APPS('').map((app) => ( - {item.name} + {app.name} ))}
@@ -63,20 +58,18 @@ const Header: React.FC = () => {
- {navigation.map((item) => ( + {DASHBOARD_APPS('').map((app) => ( - {item.name} + {app.name} ))}
diff --git a/src/modules/dashboard/components/DashboardCard/DashboardCard.tsx b/src/modules/dashboard/components/DashboardCard/DashboardCard.tsx index 215be36..6c70f61 100644 --- a/src/modules/dashboard/components/DashboardCard/DashboardCard.tsx +++ b/src/modules/dashboard/components/DashboardCard/DashboardCard.tsx @@ -39,7 +39,7 @@ export const DashboardCard: React.FC = ({ app }: { app: any }) => { />
-

{app.name}

+

{app.name}

diff --git a/src/modules/dashboard/consts.ts b/src/modules/dashboard/consts.ts index 73da2eb..8eb6830 100644 --- a/src/modules/dashboard/consts.ts +++ b/src/modules/dashboard/consts.ts @@ -17,6 +17,14 @@ export const DASHBOARD_APPS = (rootDomain: string) => [ internalUrl: `projects`, externalUrl: `https://board.${rootDomain}`, }, + { + id: 3, + name: 'Secrets', + assetSrc: '/assets/nextcloud.svg', + markdownSrc: '/markdown/nextcloud.md', + internalUrl: `vikunja`, + externalUrl: `https://cloud.${rootDomain}`, + }, ]; export const DASHBOARD_QUICK_ACCESS = () => [ diff --git a/tailwind.config.js b/tailwind.config.js index 2b8dfae..6794106 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -19,6 +19,14 @@ module.exports = { DEFAULT: '#54C6CC', dark: '#1E8290', }, + logo: { + bluegray: '#3f607d', + yellow: '#f5bd1c', + lightviolet: '#a587bf', + darkviolet: '#755d86', + azure: '#3a97a3', + lightazure: ' #b4e0e4', + }, }, }, },