From 39eabdcfac2cac0555adf74025e83996475b3c7a Mon Sep 17 00:00:00 2001 From: Kulasha3 Date: Wed, 9 Apr 2025 12:01:37 +0200 Subject: [PATCH 01/16] Add token verification page --- src/app/token-verify/page.tsx | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src/app/token-verify/page.tsx diff --git a/src/app/token-verify/page.tsx b/src/app/token-verify/page.tsx new file mode 100644 index 0000000..dc0414e --- /dev/null +++ b/src/app/token-verify/page.tsx @@ -0,0 +1,63 @@ +import { Hero } from "@/app/_components/hero"; +import { Summary } from "@/app/_components/summary"; +import React from "react"; + +// icons +import icon_info from "@/app/(homepage)/_icons/16px/info.svg"; + +export default function TokenVerify() { + return ( + <> + +
+
+
Token Verification
+
+
+ +
+ +
+
+

Enter Token ID

+
+ + +
+

+ Enter token ID to verify its status and authenticity. +

+
+
+
+
+
+
+

Verification Information

+

+ This page allows you to verify the authenticity and status of a token on the Mintlayer network. + After entering the token ID, you will receive complete information about it, including: +

+
    +
  • Verification status
  • +
  • Creation date
  • +
  • Token issuer information
  • +
  • Transaction history
  • +
+
+
+ + ); +} \ No newline at end of file From 8fd01ae65f95dd8b03dca6677bb4d06958281a31 Mon Sep 17 00:00:00 2001 From: Kulasha3 Date: Wed, 9 Apr 2025 13:52:09 +0200 Subject: [PATCH 02/16] Add token verification form component and update token-verify page --- .../token-verification-form/index.tsx | 194 ++++++++++++++++++ src/app/token-verify/page.tsx | 37 +--- 2 files changed, 202 insertions(+), 29 deletions(-) create mode 100644 src/app/_components/token-verification-form/index.tsx diff --git a/src/app/_components/token-verification-form/index.tsx b/src/app/_components/token-verification-form/index.tsx new file mode 100644 index 0000000..42e35cf --- /dev/null +++ b/src/app/_components/token-verification-form/index.tsx @@ -0,0 +1,194 @@ +'use client' + +import { useState } from 'react' + +export default function TokenVerificationForm() { + const [formData, setFormData] = useState({ + tokenId: '', + ticker: '', + projectName: '', + description: '', + website: '', + logoUrl: '', + contactInfo: '', + email: '', + links: '', + submitterName: '', + agreed: false, + }) + + const handleChange = ( + e: React.ChangeEvent + ) => { + const { name, value, type, checked } = e.target as any + setFormData((prev) => ({ + ...prev, + [name]: type === 'checkbox' ? checked : value, + })) + } + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault() + const { tokenId, ticker, projectName, description, email, agreed } = formData + + if (!tokenId || !ticker || !projectName || !description || !email || !agreed) { + alert('Please fill in all required fields and agree to the terms.') + return + } + + console.log('Token verification request:', formData) + alert('Request submitted!') + } + + return ( +
+

+ Token Verification Request +

+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +