@@ -316,6 +329,7 @@ export default function TambahAjuan() {
workerUrl={`https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js`}
>
{
+ const createdAt = new Date(createdDate);
+ const now = new Date();
+
+ let years = now.getFullYear() - createdAt.getFullYear();
+ let months = now.getMonth() - createdAt.getMonth();
+ let days = now.getDate() - createdAt.getDate();
+
+ if (days < 0) {
+ months -= 1;
+ days += new Date(now.getFullYear(), now.getMonth(), 0).getDate();
+ }
+
+ if (months < 0) {
+ years -= 1;
+ months += 12;
+ }
+
+ return `${years} years ${months} months ${days} days`;
+ };
+
+ const accountAge = user?.createdAt ? getAccountAge(user.createdAt) : "N/A";
+
+ return (
+
+
+
+
+
+ Profil Anda
+
+
+
+
+
+
+
+ {user?.name}
+
+
+ {user?.username}
+
+
+
+
+
+
+ Email :
+
+
+ {user?.email}
+
+
+
+
+ Account Age :
+
+
+ {accountAge}
+
+
+
+
+ Preview TTD
+
+
+
+
+
+
+ );
+}
diff --git a/src/app/landing-page/page.tsx b/src/app/landing-page/page.tsx
deleted file mode 100644
index 6e93c55..0000000
--- a/src/app/landing-page/page.tsx
+++ /dev/null
@@ -1,125 +0,0 @@
-import ButtonLink from "@/components/links/ButtonLink";
-import NextImage from "@/components/NextImage";
-import Typography from "@/components/Typography";
-import Layout from "@/layouts/Layout";
-
-import { cn } from "@nextui-org/theme";
-
-export default function LandingPage() {
- return (
-
-
-
-
-
-
- Discover the power of our products!
-
-
- Signify is a streamlined document-signing web application designed
- to simplify and accelerate the signing process. With Signify,
- users can complete document signing with a single click. Users
- upload their documents and send a request to a specified username
- for signature approval. The recipient can then easily approve or
- reject the request. Upon approval, the document is automatically
- signed and promptly returned to the requester, fully signed and
- ready for use. Signify’s efficient workflow eliminates the hassle
- of manual signatures, providing a secure, fast, and user-friendly
- solution for managing document approvals digitally.
-
-
-