From dde2233d160a76f5b4b9af3bef97d9ebc2515a1e Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 15 Feb 2021 15:24:03 +0100 Subject: [PATCH] change css --- packages/dashboard/src/components/Layout.js | 77 +++++++++++++++------ 1 file changed, 56 insertions(+), 21 deletions(-) diff --git a/packages/dashboard/src/components/Layout.js b/packages/dashboard/src/components/Layout.js index dbb75c6d..31c1feae 100644 --- a/packages/dashboard/src/components/Layout.js +++ b/packages/dashboard/src/components/Layout.js @@ -1,4 +1,5 @@ import Link from "next/link"; +import { useRouter } from "next/router"; import Head from "next/head"; import { useState } from "react"; import config from "../../src/config"; @@ -8,6 +9,7 @@ const signOutUrl = `${config.kratos.browser}/self-service/browser/flows/logout`; export default function Layout({ title, children }) { const [menuOpen, openMenu] = useState(false); const [avatarDropdownOpen, openAvatarDropdown] = useState(false); + const router = useRouter(); return (
@@ -29,17 +31,14 @@ export default function Layout({ title, children }) { xmlns="http://www.w3.org/2000/svg" > @@ -49,17 +48,35 @@ export default function Layout({ title, children }) {
{/* Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" */} - + Dashboard - + Your uploads - + Your downloads @@ -161,21 +178,39 @@ export default function Layout({ title, children }) {
{/* Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" */} - - Dashboard - - - Your uploads (coming soon) - - - Your downloads (coming soon) - + + + Dashboard + + + + + Your uploads + + + + + Your downloads + +