Skip to content

Commit

Permalink
Website for Digital Business Class
Browse files Browse the repository at this point in the history
  • Loading branch information
MafuSaku authored Nov 20, 2024
1 parent 2c0154a commit ce4bd56
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 0 deletions.
61 changes: 61 additions & 0 deletions 2024/20-11-2024/index.html
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>
61 changes: 61 additions & 0 deletions 2024/20-11-2024/style.css
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;
}
44 changes: 44 additions & 0 deletions 2024/20-11-2024/work-index.html
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>
&copy; Wah Meow 2024
</footer>

</body>
</html>

0 comments on commit ce4bd56

Please sign in to comment.