Skip to content

Commit

Permalink
login container added
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurhalder committed Nov 12, 2023
1 parent 8845ff9 commit 41f04f1
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { Fragment, useState } from "react";
import { LandingLayout } from "@/layout";
import { LandingPage } from "@/containers";

// Import your images or replace with actual image URLs
import usernameIcon from "./path/to/username-icon.png";
import passwordIcon from "./path/to/password-icon.png";

import Image from "next/image";
function Login() {
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
Expand All @@ -14,7 +9,6 @@ function Login() {
e.preventDefault();
console.log("Username:", username);
console.log("Password:", password);
// Add your authentication logic here
};

return (
Expand All @@ -24,7 +18,12 @@ function Login() {
<h2>Login</h2>
<form className="login-form" onSubmit={handleSubmit}>
<label className="form-label">
<img src={usernameIcon} alt="Username" className="input-icon" />
<Image
src="/login/username.png"
alt="Username"
height={20}
width={20}
></Image>
Username:
<input
type="text"
Expand All @@ -36,7 +35,12 @@ function Login() {
</label>
<br />
<label className="form-label">
<img src={passwordIcon} alt="Password" className="input-icon" />
<Image
src="/login/password.png"
alt="Password"
height={20}
width={20}
></Image>
Password:
<input
type="password"
Expand Down

0 comments on commit 41f04f1

Please sign in to comment.