Skip to content

Commit

Permalink
frontend: added login page (vechain#2)
Browse files Browse the repository at this point in the history
* frontend: added routes

* frontend: added tailwind + package.json fix

* frontend: added login page
  • Loading branch information
WillowMT authored Sep 14, 2024
1 parent f85cf85 commit 2e96f4d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function App() {
nodeUrl="https://testnet.vechain.org/"
logLevel={"DEBUG"}
>
<div className="">
<div className="bg-emerald-700">
<Navbar />
<div className="min-h-[80vh] relative">
<Routes>
Expand Down
21 changes: 19 additions & 2 deletions apps/frontend/src/routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,25 @@ export default function Login() {
navigate('/')
}
return <div className="absolute inset-0 h-full grid place-items-center text-xl font-bold md:font-extrabold">
<div>
Login page.
<div className=" " data-x="bg-emerald-500 px-5 md:px-24 shadow-lg rounded-2xl">
<div className="max-w-xl bg-white p-8 rounded-2xl px-10">
<h2 className="text-3xl font-bold text-green-800 mb-2">SG Odyssey</h2>
<p className="text-green-700 mb-6 text-sm">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip.
</p>
<form className="space-y-4">
<input type="text" placeholder="Username" className="w-full px-4 py-3 rounded-full border-green-300 border" />
<input type="password" placeholder="Password" className="w-full px-4 py-3 rounded-full border-green-300 border" />
<button className="w-full bg-green-800 text-white rounded-full py-3 hover:bg-green-700 transition-colors">
Login
</button>
</form>
<div className="mt-6 text-right">
<span className="inline-block transform rotate-45 text-orange-400 text-2xl">👣</span>
</div>
</div>
</div>
</div>
}

0 comments on commit 2e96f4d

Please sign in to comment.