Skip to content

Commit

Permalink
password and username image added
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurhalder committed Nov 12, 2023
1 parent 0a2c2e1 commit 8845ff9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ 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";

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

return (
Expand All @@ -19,6 +24,7 @@ function Login() {
<h2>Login</h2>
<form className="login-form" onSubmit={handleSubmit}>
<label className="form-label">
<img src={usernameIcon} alt="Username" className="input-icon" />
Username:
<input
type="text"
Expand All @@ -30,6 +36,7 @@ function Login() {
</label>
<br />
<label className="form-label">
<img src={passwordIcon} alt="Password" className="input-icon" />
Password:
<input
type="password"
Expand Down
Binary file added public/login/password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/login/username.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8845ff9

Please sign in to comment.