Skip to content

Commit

Permalink
Merge pull request #35 from DemocracyDevelopers/feature/link-frontend
Browse files Browse the repository at this point in the history
chore: modify the dashboard page and add the pnpm-lock ignore
  • Loading branch information
Linkgls authored Aug 29, 2024
2 parents b5b7060 + 827c250 commit c16f6d0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ yarn-error.log*
next-env.d.ts

# vscode
.vscode
.vscode

# pnpm-lock
pnpm-lock.yaml
26 changes: 22 additions & 4 deletions app/dashboard/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
// app/dashboard.tsx
"use client";

import React from "react";

const Dashboard: React.FC = () => {
return (
<div>
<h2>Dashboard</h2>
<p>The page after login</p>
<div className="flex h-screen">
{/* Left Tool Bar */}
<aside className="w-1/8 bg-gray-800 text-white p-6">
<h2 className="text-xl font-semibold mb-6">AuditVisualizer</h2>
<ul className="space-y-4">
<li className="hover:bg-gray-700 p-2 rounded">Main</li>
<li className="hover:bg-gray-700 p-2 rounded">Func_1</li>
<li className="hover:bg-gray-700 p-2 rounded">Func_2</li>
<li className="hover:bg-gray-700 p-2 rounded">Setting</li>
</ul>
</aside>

{/* Main Work Space */}
<main className="flex-1 bg-gray-100 p-8">
<h1 className="text-3xl font-bold mb-6">Dashboard</h1>
<div className="bg-white shadow-md rounded-lg p-6">
<p>TODO</p>
{/* Add more Stuff here*/}
</div>
</main>
</div>
);
};
Expand Down

0 comments on commit c16f6d0

Please sign in to comment.