Skip to content

Commit

Permalink
Merge pull request #35 from Cbiux/main
Browse files Browse the repository at this point in the history
feat: Payment Links Screen Design
  • Loading branch information
MPSxDev authored Dec 1, 2024
2 parents e8a4611 + d1c0e42 commit f1d429f
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions paystell-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/themes": "^3.1.5",
"@react-icons/all-files": "^4.1.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
Expand Down
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.
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.
132 changes: 132 additions & 0 deletions paystell-frontend/src/app/PaymentLinkScreen/page.tsx
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>
);
}

0 comments on commit f1d429f

Please sign in to comment.