-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from Cbiux/main
feat: Payment Links Screen Design
- Loading branch information
Showing
7 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.5 KB
paystell-frontend/src/app/PaymentLinkScreen/Images/Logo_PayStell_P.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
import * as Dialog from '@radix-ui/react-dialog'; | ||
import Image from 'next/image'; | ||
import Logo_PayStell from './Images/Logo_PayStell.png'; | ||
import Logo_Company from './Images/Logo_Company.png'; | ||
import Logo_PayStell_P from './Images/Logo_PayStell_P.png'; | ||
import Product from './Images/Product.png'; | ||
import { Button } from "@/components/ui/button"; | ||
|
||
export default function PaymentLinkScreen() { | ||
return ( | ||
<main className="flex min-h-screen flex-col items-center justify-start bg-white p-4 sm:p-0"> | ||
|
||
{/* Header */} | ||
<header className="sticky top-0 w-full bg-white px-6 py-4 flex flex-col items-center justify-center"> | ||
<div className="absolute left-0 flex items-center ml-5 mt-[-60px]"> | ||
<Image | ||
src={Logo_PayStell_P} // Relative path | ||
alt="Powered by Cbiux" | ||
width={40} | ||
height={40} | ||
/> | ||
</div> | ||
<div className="flex items-center mb-2"> | ||
<Image | ||
src={Logo_Company} // Relative path | ||
alt="Company" | ||
width={80} | ||
height={80} | ||
/> | ||
<h1 className="text-lg font-semibold">Online Store</h1> | ||
</div> | ||
<div className="text-center flex-grow"> | ||
<h2 className="text-sm font-semibold text-[#2C384F]">Make payments with PayStell</h2> | ||
<p className="text-xs text-[#2C384F]">Your fastest Decentralized payment gateway</p> | ||
</div> | ||
</header> | ||
|
||
{/* Main container */} | ||
<div className="w-full max-w-[750px] mx-auto bg-white rounded-lg shadow-lg p-6 sm:p-8 space-y-6"> | ||
|
||
{/* Product Information Container */} | ||
<div className="flex flex-col space-y-2 bg-white border-b border-gray-300 p-4"> | ||
<div className="flex justify-between text-sm items-center"> | ||
<div className="flex items-center space-x-2"> | ||
<Image | ||
src={Product} // Relative path | ||
alt="Product Image" | ||
width={80} | ||
height={80} | ||
/> | ||
<div className="flex flex-col"> | ||
<span className="text-[14px]">Product Name:</span> | ||
<span className="font-semibold text-[14px]">SKU/ID:</span> | ||
</div> | ||
</div> | ||
<div className="flex flex-col items-end"> | ||
<span className="text-[14px]">Trouser</span> | ||
<span className="font-semibold text-[16px]">17639041</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{/* Subtotal Container and Gas Fee */} | ||
<div className="flex flex-col space-y-2 bg-white border-b border-gray-300 p-4"> | ||
|
||
{/* Sub Total */} | ||
<div className="flex justify-between text-sm"> | ||
<span className="font-semibold text-[16px]">Sub Total:</span> | ||
<span className="font-semibold text-[16px]">0.8 XML</span> | ||
</div> | ||
|
||
{/* Gas Fee */} | ||
<div className="flex items-center justify-between text-xs"> | ||
<div className="flex items-center"> | ||
<span className="">Gas Fee</span> | ||
<button className="ml-1 w-4 h-4 flex items-center justify-center rounded-full text-black text-xs border-2 border-black"> | ||
! | ||
</button> | ||
</div> | ||
<span className="font-semibold text-[#FF3131] text-[12px]">0.2 XML</span> | ||
</div> | ||
</div> | ||
|
||
{/* Total Amount Container */} | ||
<div className="flex justify-between text-lg font-semibold bg-white border-b border-gray-300 p-4"> | ||
<span className="text-[16px]">Total Amount:</span> | ||
<span className="text-[36px]">1 XML</span> | ||
</div> | ||
|
||
{/* Container for the payment button and the instruction */} | ||
<div className="flex flex-col items-center w-full mt-10 space-y-2"> | ||
{/* Payment button */} | ||
<Dialog.Root> | ||
<Dialog.Trigger asChild> | ||
<Button size="xl" > | ||
Pay | ||
</Button> | ||
</Dialog.Trigger> | ||
</Dialog.Root> | ||
|
||
{/* Instruction */} | ||
<p className="text-center text-xs text-gray-500"> | ||
You have to connect your Stellar wallet to pay | ||
</p> | ||
</div> | ||
</div> | ||
|
||
{/* Footer */} | ||
<footer className="w-full bg-white text-white py-2 mt-auto"> | ||
<div className="max-w-[1000px] mx-auto"> | ||
<div className="flex justify-between items-center px-2 border-t border-gray-300 py-4"> | ||
<div className="flex items-center"> | ||
<p className="text-sm mr-2 text-black">Proudly Powered by</p> | ||
<Image | ||
src={Logo_PayStell} // Relative path | ||
alt="Powered by Cbiux" | ||
width={80} | ||
height={80} | ||
/> | ||
</div> | ||
|
||
{/* Terms and Privacy Links */} | ||
<nav className="flex space-x-4"> | ||
<a href="/terms" className="text-xs text-black hover:underline">Terms</a> | ||
<a href="/privacy" className="text-xs text-black hover:underline">Privacy</a> | ||
</nav> | ||
</div> | ||
</div> | ||
</footer> | ||
</main> | ||
); | ||
} |