-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (99 loc) · 3.36 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!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>Website using HTML CSS</title>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<header class="header">
<nav class="navigation">
<div class="logo">CodeWellTech</div>
<ul class="menu">
<li><a href="#home">Home</a></li>
<li><a href="#courses">Courses</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<div class="search">
<input type="text" placeholder="Search" />
<button class="btn btn-search">Search</button>
</div>
</nav>
</header>
<main>
<div class="container">
<div class="left">
<div class="box">
<div class="txt-medium">Learn</div>
<div class="txt-bigger" style="color: #24ed1e">Web & API</div>
<div class="txt-bigger">Development</div>
<hr />
<div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Velit
nihil recusandae odio libero ex optio. Impedit veniam mollitia
delectus ab amet. Vero accusantium debitis repudiandae rerum
praesentium excepturi animi nihil.
</div>
</div>
</div>
<div class="right">
<div class="box">
<form class="form-login">
<div>
<input
type="text"
placeholder="User Name"
required
minlength="4"
/>
</div>
<div>
<input type="password" placeholder="Password" required />
</div>
<div>
<button class="btn btn-login">Login</button>
</div>
</form>
<div>Don't have an account ?</div>
<div>
<a href="#signup">Sign up</a> now
<div class="mt-10">Login with</div>
</div>
<div class="social-media">
<img src="images/fb.png" alt="Facebook" />
<img src="images/insta.svg" alt="Instagram" />
<img src="images/twitter.svg" alt="Twitter" />
<img src="images/google.svg" alt="Google" />
</div>
</div>
</div>
</div>
<div class="bg-select">
<div onclick="changeBgImage('default')" class="bg-option bg-gray"></div>
<div
onclick="changeBgImage('green1')"
class="bg-option bg-green1"
></div>
<div
onclick="changeBgImage('green2')"
class="bg-option bg-green2"
></div>
</div>
</main>
<script>
const imageUlrs = {
default: "url(./images/coffee.jpg)",
green1: "url(./images/green1.jpg)",
green2: "url(./images/green2.jpg)",
};
function changeBgImage(selectedColor) {
document.body.style.background = imageUlrs[selectedColor];
document.body.style.backgroundSize = "cover";
}
</script>
</body>
</html>