-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b01cc31
commit 5280884
Showing
6 changed files
with
222 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* Bordered form */ | ||
body { | ||
background-color: #fefae0; | ||
} | ||
form { | ||
border: 3px solid #f1f1f1; | ||
width: 400px; | ||
margin-left: 550px; | ||
margin-top: 100px; | ||
background-color: white; | ||
} | ||
|
||
/* Full-width inputs */ | ||
input[type=text], input[type=password] { | ||
width: 100%; | ||
padding: 12px 20px; | ||
margin: 8px 0; | ||
display: inline-block; | ||
border: 1px solid #ccc; | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Set a style for all buttons */ | ||
button { | ||
background-color: #ccd5ae; | ||
color: white; | ||
padding: 14px 20px; | ||
margin: 8px 0; | ||
border: none; | ||
cursor: pointer; | ||
width: 100%; | ||
} | ||
|
||
/* Add a hover effect for buttons */ | ||
button:hover { | ||
opacity: 0.8; | ||
} | ||
|
||
/* Extra style for the cancel button (red) */ | ||
.cancelbtn { | ||
width: auto; | ||
padding: 10px 18px; | ||
background-color: #ccd5ae; | ||
} | ||
|
||
/* Add padding to containers */ | ||
.container { | ||
padding: 16px; | ||
} | ||
|
||
/* The "Forgot password" text */ | ||
span.psw { | ||
float: right; | ||
padding-top: 16px; | ||
} | ||
|
||
/* Change styles for span and cancel button on extra small screens */ | ||
@media screen and (max-width: 300px) { | ||
span.psw { | ||
display: block; | ||
float: none; | ||
} | ||
.cancelbtn { | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,102 @@ | ||
body { | ||
background-color: beige; | ||
background-color: #fefae0; | ||
} | ||
.header { | ||
text-align: center; | ||
margin: auto; | ||
width: 50%; | ||
padding: 10px; | ||
color: red; | ||
} | ||
#title { | ||
margin-top: 100px; | ||
font-family: Georgia, serif; | ||
font-size: 100px; | ||
color: #d4a373; | ||
} | ||
#question { | ||
margin-top: 150px; | ||
font-family: Georgia, serif; | ||
color: #814e18; | ||
font-size: 40px; | ||
|
||
} | ||
#about { | ||
font-family: Georgia, serif; | ||
color: #814e18; | ||
font-size: 55px; | ||
} | ||
#click1, #click2 { | ||
margin-bottom: 100px; | ||
margin-top: 40px; | ||
} | ||
#click1 { | ||
margin-left: 70px; | ||
} | ||
#click2 { | ||
margin-left: 150px; | ||
} | ||
.button-container { | ||
display: flex; | ||
justify-content: center; /* Center buttons horizontally */ | ||
gap: 20px; /* Adjust space between buttons */ | ||
margin-top: 50px; | ||
} | ||
|
||
.button-56 { | ||
align-items: center; | ||
background-color: #ccd5ae; | ||
border: 2px solid #111; | ||
border-radius: 8px; | ||
box-sizing: border-box; | ||
color: #111; | ||
cursor: pointer; | ||
display: flex; | ||
font-family: Inter,sans-serif; | ||
font-size: 16px; | ||
height: 48px; | ||
justify-content: center; | ||
line-height: 24px; | ||
max-width: 100%; | ||
padding: 0 25px; | ||
position: relative; | ||
text-align: center; | ||
text-decoration: none; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
touch-action: manipulation; | ||
} | ||
|
||
.button-56:after { | ||
background-color: #111; | ||
border-radius: 8px; | ||
content: ""; | ||
display: block; | ||
height: 48px; | ||
left: 0; | ||
width: 100%; | ||
position: absolute; | ||
top: -2px; | ||
transform: translate(8px, 8px); | ||
transition: transform .2s ease-out; | ||
z-index: -1; | ||
} | ||
|
||
.button-56:hover:after { | ||
transform: translate(0, 0); | ||
} | ||
|
||
.button-56:active { | ||
background-color: #e9edc9; | ||
outline: 0; | ||
} | ||
|
||
.button-56:hover { | ||
outline: 0; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
.button-56 { | ||
padding: 0 40px; | ||
} | ||
} | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<link rel="stylesheet" href="myrestaurant.css"> | ||
<title>Restaurant Page</title> | ||
</head> | ||
<body> | ||
<script> | ||
function redirectUser() { | ||
// You can add validation here if needed | ||
window.location.href = "restaurant.html"; // Redirect to user.html | ||
return false; // Prevent actual form submission | ||
} | ||
</script> | ||
<form action="action_page.php" method="post" onsubmit="return redirectUser()"> | ||
|
||
<div class="container"> | ||
<label for="uname"><b>Username</b></label> | ||
<input type="text" placeholder="Enter Username" name="uname" required> | ||
|
||
<label for="psw"><b>Password</b></label> | ||
<input type="password" placeholder="Enter Password" name="psw" required> | ||
|
||
<button type="submit">Login</button> | ||
<label> | ||
<input type="checkbox" checked="checked" name="remember"> Remember me | ||
</label> | ||
</div> | ||
|
||
<div class="container" style="background-color:#f1f1f1"> | ||
<button type="button" class="cancelbtn">Cancel</button> | ||
<span class="psw">Forgot <a href="#">password?</a></span> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters