-
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
Showing
3 changed files
with
166 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Wah Wah Wah</title> | ||
|
||
<link rel="preconnect" href="https://fonts.bunny.net"> | ||
<link href="https://fonts.bunny.net/css?family=almarai:300,700,800" rel="stylesheet" /> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<h1>Wah Wah Wah</h1> | ||
</header> | ||
|
||
<main> | ||
<section id="form"> | ||
|
||
<form method="get" oninput="x.value=parseInt(a.value) + parseInt(b.value)"> | ||
<label for "shop">Choose:</label> | ||
|
||
<select name="shop" id="shop" class="shop-select" required> | ||
<option value="banana">Banana</option> | ||
<option value="orange">Orange</option> | ||
<option value="apple">Apple</option> | ||
<option value="lemon">Lemon</option> | ||
</select> | ||
|
||
<br> | ||
|
||
<button type="submit" value="Submit" class="submit-button">Submit</button> | ||
|
||
<br> <hr> | ||
|
||
<h2>Button Alerts</h2> | ||
<button type="button" onclick="alert('ไอแมนเป็นเกย์')">Button!</button> | ||
|
||
<br> <hr> | ||
|
||
<h2>Output Element</h2> | ||
0 <input type="range" id="a" name="a" value="50"> | ||
100 + <input type="number" id="b" name="b" value="0"> | ||
= <output name="x" for="a b"></output> | ||
|
||
<br> | ||
|
||
<input type="submit" class="submit-button"> | ||
|
||
</form> | ||
|
||
</section> | ||
</main> | ||
|
||
<footer> | ||
|
||
</footer> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
body { | ||
font-family: "Almarai", sans-serif; | ||
font-weight: 300; | ||
font-size: 16px; | ||
background-color: #9cabfd; | ||
} | ||
|
||
h1 { | ||
font-family: "Almarai", sans-serif; | ||
font-weight: 800; | ||
font-size: 50px; | ||
} | ||
|
||
h2 { | ||
font-family: "Almarai", sans-serif; | ||
font-weight: 700; | ||
font-size: 25px; | ||
} | ||
|
||
form { | ||
font-family: "Almarai", sans-serif; | ||
font-weight: 300; | ||
font-size: 20px; | ||
|
||
.shop-select { | ||
font-family: "Almarai", sans-serif; | ||
font-weight: 300; | ||
font-size: 20px; | ||
} | ||
|
||
.shop-select:hover { | ||
font-family: "Almarai", sans-serif; | ||
font-weight: 300; | ||
font-size: 20px; | ||
border-color: #ac99cf; | ||
border-radius: 10px; | ||
background-color: #ac99cf; | ||
} | ||
} | ||
|
||
.submit-button { | ||
font-family: "Almarai", sans-serif; | ||
font-weight: 300; | ||
font-size: 18px; | ||
border-radius: 5px; | ||
border-color: #333333; | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.submit-button:hover { | ||
background-color: #ac99cf; | ||
} | ||
|
||
footer { | ||
background-color: #ac99cf; | ||
margin-top: auto; | ||
padding: 50px 20px; | ||
width: 100%; | ||
text-align: center; | ||
} |
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,44 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Wah Wah Wah</title> | ||
|
||
<link rel="preconnect" href="https://fonts.bunny.net"> | ||
<link href="https://fonts.bunny.net/css?family=almarai:300,700,800" rel="stylesheet" /> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
<body> | ||
|
||
<header> | ||
<h1>Wah Wah Wah</h1> | ||
</header> | ||
|
||
<main> | ||
<section id="form"> | ||
|
||
<form method="get"> | ||
<label for "shop">Choose:</label> | ||
|
||
<select name="shop" id="shop" class="shop-select" required> | ||
<option value="banana">Banana</option> | ||
<option value="orange">Orange</option> | ||
<option value="apple">Apple</option> | ||
<option value="lemon">Lemon</option> | ||
</select> | ||
|
||
<br> | ||
|
||
<button type="submit" value="Submit" class="submit-button" onclick="alert('ซื้อสินค้าสำเร็จ!')">Submit</button> | ||
</form> | ||
|
||
</section> | ||
</main> | ||
|
||
<footer> | ||
© Wah Meow 2024 | ||
</footer> | ||
|
||
</body> | ||
</html> |