Skip to content

Commit

Permalink
feat: add settings page (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
chowjustin authored Nov 6, 2024
2 parents 41aa924 + 4a6d41e commit ad5285e
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
Binary file added public/images/settings/pen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions src/app/dashboard/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
"use client";

import useAuthStore from "@/app/stores/useAuthStore";
import BreadCrumbs from "@/components/BreadCrumbs";
import NextImage from "@/components/NextImage";
import Typography from "@/components/Typography";
import withAuth from "@/components/hoc/withAuth";
import { user } from "@nextui-org/theme";
import { FaPenToSquare } from "react-icons/fa6";
import Button from "@/components/buttons/Button";

const breadCrumbs = [
{ href: "/dashboard", Title: "Dashboard" },
{ href: "/dashboard/settings", Title: "Settings" },
];

// export default withAuth(Settings, "user");
export default function Settings() {
return (
<section className="p-6">
<div className="relative w-full h-full rounded-[15px] min-h-[64px] overflow-hidden">
<NextImage
src="/bgbreadcrumb.png"
width={1920}
height={1080}
alt="Background"
className="w-full h-full -z-10 min-h-[64px]"
imgClassName="w-full h-[64px] md:h-[80px]"
/>
<div className="absolute z-10 top-4 left-6 max-md:top-2 max-md:left-3 max-md:mb-0">
<BreadCrumbs breadcrumbs={breadCrumbs} />
<span className="font-semibold text-white max-md:-pt-1">
Settings
</span>
</div>
</div>
<div className="w-[90%] rounded-lg z-10 mt-4 space-y-4 shadow-lg mx-auto p-12 max-sm:p-4">
<div className="space-y-4">
<Typography className="text-[#2D3748]" variant="h6" weight="bold">
Account Information
</Typography>
<div className="flex">
<Typography className="text-[#718096] font-bold">Nama :</Typography>
<Typography className="text-[#718096]">
&nbsp; ProfJustin
</Typography>
<div>
<FaPenToSquare className="ml-4 mt-1" color="#718096" />
</div>
</div>
<div className="flex">
<Typography className="text-[#718096] font-bold">
Email :
</Typography>
<Typography className="text-[#718096]">
&nbsp; [email protected]
</Typography>
<div>
<FaPenToSquare className="ml-4 mt-1" color="#718096" />
</div>
</div>
<div className="flex">
<Typography className="text-[#718096] font-bold">
Password :
</Typography>
<Typography className="text-[#718096]">&nbsp; ********</Typography>
<div>
<FaPenToSquare className="ml-4 mt-1" color="#718096" />
</div>
</div>
<div className="flex">
<Typography className="text-[#718096] font-bold">TTD :</Typography>
<NextImage
src="/Signify Logo.png"
width={500}
height={500}
alt="TTD Preview"
className="w-[100px] object-contain md:w-[160px] ml-4 rounded-lg overflow-hidden border-2 border-[#718096] p-2"
/>
<div>
<FaPenToSquare className="ml-4 mt-1" color="#718096" />
</div>
</div>
</div>
</div>
</section>
);
}

0 comments on commit ad5285e

Please sign in to comment.