Skip to content

Commit

Permalink
Merge pull request #234 from NoshonNetworks/solomon
Browse files Browse the repository at this point in the history
fix: updated modal design
  • Loading branch information
Solomonsolomonsolomon authored Dec 13, 2024
2 parents d16b0f8 + 6d7246d commit 650842b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion app/client/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const Home = () => {

{isModalOpen && (
<Modal onClose={toggleModal} isOpen={isModalOpen}>
<div className="text-center p-6">
<div className="text-center">
<h2 className="text-2xl font-bold mb-4">
Connect Your Wallet
</h2>
Expand Down
63 changes: 32 additions & 31 deletions app/client/src/components/Connector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,38 @@ export default function WalletConnector({
<div>
{status === "disconnected" && (
<div className=" bg-gray-100" >
<div className="bg-white rounded-lg shadow-lg p-8 max-w-lg text-center ">
<h2 className="text-xl font-semibold text-gray-900 mb-6">
A Secure Platform for Land Registration, Inspection, and Validation on Starknet
</h2>
<ul className="text-left space-y-4 mb-6">
<li className="flex items-start">
<Check className="text-purple-600 mt-1 mr-2" />
<span className="text-gray-700">
Effortless land registration with unique property IDs.
</span>
</li>
<li className="flex items-start">
<Check className="text-purple-600 mt-1 mr-2" />
<span className="text-gray-700">
Streamlined land inspection and verification for trusted records.
</span>
</li>
<li className="flex items-start">
<Check className="text-purple-600 mt-1 mr-2" />
<span className="text-gray-700">
Immutable, blockchain security for ownership and transactions.
</span>
</li>
</ul>
<Button
onClick={() => setShowModal(true)}
classname="bg-purple-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-purple-700"
>
Connect Wallet Securely
</Button>
</div>
<div className="bg-white rounded-lg max-w-lg text-center">
<h3 className="text-lg font-semibold text-gray-900 mb-4 text-left">
A Secure Platform for Land Registration, Inspection, and Validation on Starknet
</h3>
<ul className="text-left space-y-3 mb-4">
<li className="flex items-start">
<Check className="text-purple-600 mt-1 mr-2 rounded-full bg-purple-100 p-1" />
<span className="text-gray-700 text-sm">
Effortless land registration with unique property IDs.
</span>
</li>
<li className="flex items-start">
<Check className="text-purple-600 mt-1 mr-2 rounded-full bg-purple-100 p-1" />
<span className="text-gray-700 text-sm">
Streamlined land inspection and verification for trusted records.
</span>
</li>
<li className="flex items-start">
<Check className="text-purple-600 mt-1 mr-2 rounded-full bg-purple-100 p-1" />
<span className="text-gray-700 text-sm">
Immutable, blockchain security for ownership and transactions.
</span>
</li>
</ul>
<Button
onClick={() => setShowModal(true)}
classname="bg-purple-600 text-white px-5 py-2.5 rounded-lg font-medium hover:bg-purple-700"
>
Choose Wallet
</Button>
</div>

</div>

)}
Expand Down
4 changes: 2 additions & 2 deletions app/client/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const Modal: React.FC<ModalProps> = ({ isOpen, onClose, children }) => {

return (
<div
className="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50"
className="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50 border"
onClick={handleBackgroundClick}
>
<div className="relative bg-white rounded-lg shadow-lg w-full max-w-md p-6">
<div className="relative bg-white rounded-lg shadow-lg w-full max-w-md p-6 border">
{/* Close Button */}
<button
className="absolute top-4 right-4 text-gray-500 hover:text-gray-800"
Expand Down

0 comments on commit 650842b

Please sign in to comment.