Skip to content

Commit

Permalink
congrats page
Browse files Browse the repository at this point in the history
  • Loading branch information
devsisingh committed Jun 21, 2024
1 parent ece19a3 commit 31e2267
Show file tree
Hide file tree
Showing 2 changed files with 142 additions and 8 deletions.
134 changes: 134 additions & 0 deletions src/app/confirm/[id]/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
"use client"
import React, {useState} from "react";
import Link from "next/link";

const ConfirmAddr = ({ params }) => {
const id = params?.id;

const [isHovered, setIsHovered] = useState(false);

return (
<div>
<div className="px-10" style={{display:'flex', justifyContent: 'space-between', background: 'linear-gradient(90deg, #DF1FDD8A, #30D8FFAB, #5347E7AB)', paddingBottom: '10px'}}>
<div
className='mt-4'
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
style={{ position: 'relative' }}
>
<img src="../logo2.png" style={{ width: '200px' }} alt="Logo" />

{/* Pop-up Div */}
{isHovered && (
<div
style={{
position: 'absolute',
top: '110%', // Adjust position based on your design
left: '80%',
transform: 'translateX(-50%)',
backgroundColor: '#D9D8D8',
color: 'black',
padding: '20px',
border: '1px solid #ddd',
borderRadius: '15px',
boxShadow: '0px 4px 8px rgba(0, 0, 0, 0.1)',
zIndex: 20,
width: '300px',
// textAlign: 'center'
}}
>
<div style={{display: 'flex', gap:'20px'}}>
<img src="../slider3 metallic suit small 2.png" style={{width: '80px', borderRadius:'100px'}}/>
<div className="font-bold mt-6">Brand Name</div>
</div>
<div className="mt-4" style={{fontSize: '13px'}}>Brand Description here. Brand Description here. Brand Description here. Brand Description here. Brand Description here. Brand Description here.</div>
</div>
)}
</div>
<div style={{display:'flex', gap:'40px', fontSize:'20px', color:'white'}} className="font-bold mt-6">
<div>Explore</div>
<div>Collections</div>
<div>Brand</div>
<div>Dashboard</div>
</div>
<div>
<button className="px-10 mt-6" style={{color: "white", paddingTop:'5px', paddingBottom:'5px', borderRadius:'50px', backgroundImage: 'url("../Rectangle 12.png")'}}>Connect</button>
</div>
</div>
<div className="mt-10 px-10">

<div
style={{
paddingLeft: "50px",
paddingRight: "50px",
paddingTop: "20px",
}}
className=""
>
<div className="text-6xl font-bold"
style={{backgroundImage: "linear-gradient(90deg, #30D8FF, #5B0292, #5B0292, #5B0292)",
WebkitBackgroundClip: "text",
backgroundClip: "text",
color: "transparent",
paddingBottom: "10px"}}>Congratulations!</div>
<div className="text-2xl mt-10">You have successfully minted phygital name phygital NFT!</div>



{/* --------------------------------------- user perspective --------------------------------------------------------- */}

<div className="mt-10 text-2xl font-bold">IMPORTANT!</div>

<div className="mt-10" style={{fontSize:'20px'}}>Fill in your address, so brand name can ship your product.</div>
<div
className="mt-10"
style={{ justifyContent: "space-between", display: "flex" }}
>
<div style={{ fontSize:'22px', fontWeight:'bold' }}>Shipping address:</div>
</div>

<div
className="mt-4"
>
<input
type="text"
style={{
backgroundColor: '#0000001A',
padding: '10px',
border: '1px solid #ccc',
borderRadius: '8px',
width: '40%', // Adjust as needed
color: '#000', // Text color
fontSize: '16px'
}}
placeholder="Your address"
/>
</div>

<div className="mt-10" style={{ display: "flex", gap: "20px" }}>
<Link href={`/confirm/${id}`}
className="justify-center flex"
style={{
backgroundColor: "#30D8FF",
paddingTop: "10px",
paddingBottom: "10px",
paddingLeft: "30px",
paddingRight: "30px",
borderRadius:'15px',
fontSize: '20px'
}}
>
Confirm address
</Link>
</div>


</div>
</div>


</div>
);
};

export default ConfirmAddr;
16 changes: 8 additions & 8 deletions src/app/nfts/[id]/page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client"
import React, {useState} from "react";

import Link from "next/link";

const NFTPage = ({ params }) => {
const id = params?.id;
Expand Down Expand Up @@ -94,7 +94,7 @@ const NFTPage = ({ params }) => {

{/* --------------------------------------- user perspective --------------------------------------------------------- */}

{/* <div className="mt-10 text-2xl font-bold">Price Amount</div>
<div className="mt-10 text-2xl font-bold">Price Amount</div>
<div
className="mt-10"
style={{ justifyContent: "space-between", display: "flex" }}
Expand All @@ -105,8 +105,8 @@ const NFTPage = ({ params }) => {
</div>

<div className="mt-10" style={{ display: "flex", gap: "20px" }}>
<button
className="w-1/2"
<Link href={`/confirm/${id}`}
className="w-1/2 justify-center flex"
style={{
backgroundColor: "#30D8FF",
paddingTop: "10px",
Expand All @@ -116,7 +116,7 @@ const NFTPage = ({ params }) => {
}}
>
MINT NOW
</button>
</Link>
<button
className="w-1/2"
style={{
Expand All @@ -129,13 +129,13 @@ const NFTPage = ({ params }) => {
>
SHARE
</button>
</div> */}
</div>



{/* ------------------------------------------------- owner perspective------------------------------------- */}

<div style={{ display: "flex", justifyContent:'end' , marginTop:'100px', gap:'20px'}}>
{/* <div style={{ display: "flex", justifyContent:'end' , marginTop:'100px', gap:'20px'}}>
<div
className="w-1/2"
>
Expand Down Expand Up @@ -198,7 +198,7 @@ const NFTPage = ({ params }) => {
>
VIEW ON SHOPIFY
</button>
</div>
</div> */}


</div>
Expand Down

0 comments on commit 31e2267

Please sign in to comment.