Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a more warm and cool background for a more comfortable sight an… #270

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 17 additions & 48 deletions app/client/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,21 @@ const Home = () => {
);

return (
<div className="min-h-screen bg-gray-50 py-8 px-4 overflow-y-auto flex justify-center items-center">
<div className="min-h-screen bg-[#E9F3F1] py-8 px-4 overflow-y-auto flex flex-col justify-center items-center">
<div className="max-w-4xl w-full mx-auto grid md:grid-cols-2 gap-8 bg-white rounded-2xl shadow-2xl">
{/* Left Side - Descriptive Section */}
<div className="bg-gradient-to-br from-purple-600 to-indigo-700 p-8 md:flex flex-col justify-center text-white hidden ">
<div className="bg-gradient-to-br from-purple-400 to-indigo-700 p-8 md:flex flex-col justify-center text-white hidden">
<Image
src="/images/logo.svg"
alt="landver logo"
height={100}
width={100}
className="mb-6"
/>
<h1 className="text-3xl font-bold mb-4">
Land Registry Protocol
</h1>
<h1 className="text-3xl font-bold mb-4">Land Registry Protocol</h1>
<p className="text-lg mb-6 opacity-80">
Secure, transparent, and efficient land registration
powered by blockchain technology.
Secure, transparent, and efficient land registration powered by blockchain technology.
</p>

<div className="space-y-4">
<div className="flex items-center">
<LandPlot className="mr-3 text-yellow-300" />
Expand All @@ -111,41 +107,27 @@ const Home = () => {
<div className="p-8 flex flex-col justify-center">
{status !== "connected" ? (
<div className="text-center">
<Wallet
className="mx-auto text-purple-600 mb-4"
size={64}
/>
<h2 className="text-2xl font-bold mb-4">
Connect Your Wallet
</h2>
<p className="text-gray-600 mb-6">
Connect a supported wallet to access Land
Registry
</p>
<Wallet className="mx-auto text-purple-600 mb-4" size={64} />
<h2 className="text-2xl font-bold mb-4">Connect Your Wallet</h2>
<p className="text-gray-600 mb-6">Connect a supported wallet to access Land Registry</p>
<Button
onClick={toggleModal}
classname="mx-auto flex items-center gap-2 bg-purple-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-purple-700"
>
{!isModalOpen && (
{!isModalOpen ? (
<>
Connect Wallet
<ArrowRight size={20} />
</>
)}
{isModalOpen && (
) : (
<MoonLoader color="#fff" size={20} />
)}
</Button>

{isModalOpen && (
<Modal
onClose={toggleModal}
isOpen={isModalOpen}
>
<Modal onClose={toggleModal} isOpen={isModalOpen}>
<div className="text-center">
<h2 className="text-2xl font-bold mb-4">
Connect Your Wallet
</h2>
<h2 className="text-2xl font-bold mb-4">Connect Your Wallet</h2>
<WalletConnector />
</div>
</Modal>
Expand All @@ -154,18 +136,11 @@ const Home = () => {
) : (
<form onSubmit={handleFormSubmit}>
<div className="text-center mb-6">
<p className="text-gray-600">
Connected Wallet:
</p>
<p className="font-bold text-purple-600">
{address?.slice(0, 6)}...
{address?.slice(-4)}
</p>
<p className="text-gray-600">Connected Wallet:</p>
<p className="font-bold text-purple-600">{address?.slice(0, 6)}...{address?.slice(-4)}</p>
</div>

<h2 className="text-2xl font-bold mb-4 text-center">
Select Your Role
</h2>
<h2 className="text-2xl font-bold mb-4 text-center">Select Your Role</h2>

<div className="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
<UserTypeCard
Expand All @@ -182,24 +157,18 @@ const Home = () => {
/>
</div>

{error && (
<p className="text-red-500 text-sm mb-4 text-center">
{error}
</p>
)}
{error && <p className="text-red-500 text-sm mb-4 text-center">{error}</p>}

<Button
type="submit"
classname="w-full bg-purple-600 text-white py-3 rounded-lg hover:bg-purple-700 flex items-center justify-center gap-2"
>
{!isLoading && (
{!isLoading ? (
<>
Proceed to Dashboard
<ArrowRight size={20} />
</>
)}

{isLoading && (
) : (
<MoonLoader color="#fff" size={20} />
)}
</Button>
Expand Down
Loading