Skip to content

Commit

Permalink
Adicionando logo acme
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMadson committed Feb 15, 2024
1 parent 32fce11 commit e96b27f
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions app/ui/dashboard/NewDashboards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { signOut } from "@/auth";
import { useState } from "react";
import { PowerIcon } from '@heroicons/react/24/outline';
import { logOut } from "@/app/lib/actions";
import AcmeLogo from "../acme-logo";
import Link from "next/link";


interface NewDashboardProps {
Expand All @@ -18,22 +20,30 @@ export default function NewDashboard({ dashboards }: NewDashboardProps) {

return <>
<div className="w-full flex-none md:w-64">
<Link
className="mb-2 flex h-20 items-end justify-start rounded-md bg-blue-600 p-4 md:h-40"
href="/"
>
<div className="w-32 text-white md:w-40">
<AcmeLogo />
</div>
</Link>
{dashboards?.map((d, index) => <button
className="flex h-[48px] grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3"
className="flex h-[48px] w-full grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3"
key={d.link} onClick={() => setActiveDash(index)}>
{d.name}
</button>)}
<div className="hidden h-auto w-full grow rounded-md bg-gray-50 md:block"></div>
<form
action={async ()=>{
await logOut();
}}
>
<button className="flex h-[48px] w-full grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3">
<PowerIcon className="w-6" />
<div className="hidden md:block">Sign Out</div>
</button>
</form>
<form
action={async () => {
await logOut();
}}
>
<button className="flex h-[48px] w-full grow items-center justify-center gap-2 rounded-md bg-gray-50 p-3 text-sm font-medium hover:bg-sky-100 hover:text-blue-600 md:flex-none md:justify-start md:p-2 md:px-3">
<PowerIcon className="w-6" />
<div className="hidden md:block">Sign Out</div>
</button>
</form>
</div>
<div className="flex-grow p-1 md:overflow-y-auto ">
<iframe className="w-full h-full" src={dashboards[activeDash].link || ""}></iframe>
Expand Down

0 comments on commit e96b27f

Please sign in to comment.