Skip to content

Commit

Permalink
Merge pull request #5 from bhavanishanker-png/main
Browse files Browse the repository at this point in the history
Added signin and signup fucture
  • Loading branch information
Rajan-Barnwal authored May 9, 2024
2 parents c49f701 + 9798f1e commit 8bdab7a
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 1 deletion.
23 changes: 23 additions & 0 deletions signin.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign In</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="containers">
<h2>Sign In</h2>
<form id="signInForm">
<input type="text" id="signInUsername" placeholder="Username" required>
<input type="password" id="signInPassword" placeholder="Password" required>
<button type="submit">Sign In</button>
</form>
<p id="signInError" class="error-message"></p>
<p>Don't have an account? <a href="signup.html">Sign Up</a></p>
</div>
<script src="script.js"></script>
</body>
</html>
24 changes: 24 additions & 0 deletions signup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="containers">
<h2>Sign Up</h2>
<form id="signUpForm">
<input type="text" id="signUpUsername" placeholder="Username" required>
<input type="email" id="signUpEmail" placeholder="Email" required>
<input type="password" id="signUpPassword" placeholder="Password" required>
<button type="submit">Sign Up</button>
</form>
<p id="signUpError" class="error-message"></p>
<p>Already have an account? <a href="signin.html">Sign In</a></p>
</div>
<script src="script.js"></script>
</body>
</html>
36 changes: 35 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -346,4 +346,38 @@ footer {
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}
}
.containers {
max-width: 400px;
/* margin: 0; */
margin-top: 20%;
margin-left: 35%;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
text-align: center;
}

input[type="text"],
input[type="email"],
input[type="password"],
button {
display: block;
width: 100%;
margin-bottom: 10px;
padding: 8px;
font-size: 16px;
}

button {
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}

.error-message {
color: red;
margin-top: 10px;
}

3 comments on commit 8bdab7a

@Rajan-Barnwal
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not impressive

@bhavanishanker-png
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What changes are needed

@Rajan-Barnwal
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Work on sign in sign up backend

Please sign in to comment.