-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
131 lines (122 loc) · 4.55 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;400&family=Roboto:wght@100;400&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
<title>Responsive Web CSS Grid</title>
</head>
<body id="home">
<div class="container" id="header">
<nav class="menu" id="nav-bar">
<div class="menu-toggle">
<input type="checkbox" />
<span></span>
<span></span>
<span></span>
</div>
<div class="brand">
<h1>WPU Merch Shop</h1>
</div>
<ul class="menu-list">
<li><a href="#home" class="nav-link">Home</a></li>
<li><a href="#services" class="nav-link">Services</a></li>
<li><a href="#gallery" class="nav-link">Gallery</a></li>
</ul>
</nav>
<div class="header">
<div class="hero">
<img src="img/logo-wpu.png" alt="Company Logo" id="header-img">
<h2 class="heading">WPU Merch Shop</h2>
<p class="sub-heading">Hoodie & T-Shirt</p>
</div>
<div class="features feature-1">
<h4 class="price">IDR 250K</h4>
<p class="item">Hoodie</p>
</div>
<div class="features feature-2">
<h4 class="price">IDR 150K</h4>
<p class="item">T-Shirt</p>
</div>
</div>
<section class="services" id="services">
<div class="service">
<div class="icon">💻</div>
<h3>Tutorials</h3>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ab
laudantium voluptatem labore distinctio dolores aperiam!
</p>
</div>
<div class="service">
<div class="icon">🎓</div>
<h3>Online Course</h3>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ab
laudantium voluptatem labore distinctio dolores aperiam!
</p>
</div>
<div class="service">
<div class="icon">🎙</div>
<h3>Podcast</h3>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ab
laudantium voluptatem labore distinctio dolores aperiam!
</p>
</div>
<div class="service">
<div class="icon">👕</div>
<h3>Merch</h3>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ab
laudantium voluptatem labore distinctio dolores aperiam!
</p>
</div>
</section>
<section class="gallery" id="gallery">
<h2>Gallery</h2>
<!-- <div class="gallery-container"> -->
<img src="https://source.unsplash.com/random/201x201" alt="" />
<img src="https://source.unsplash.com/random/202x202" alt="" />
<img src="https://source.unsplash.com/random/203x203" alt="" />
<img src="https://source.unsplash.com/random/204x204" alt="" />
<img src="https://source.unsplash.com/random/205x205" alt="" />
<img src="https://source.unsplash.com/random/206x206" alt="" />
<img src="https://source.unsplash.com/random/207x207" alt="" />
<img src="https://source.unsplash.com/random/207x208" alt="" />
<img src="https://source.unsplash.com/random/207x209" alt="" />
<img src="https://source.unsplash.com/random/207x210" alt="" />
<!-- </div> -->
</section>
<section class="video-container">
<div class="video" style="--aspect-ratio: 16/9;">
<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/IvmbowDpKpw"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
</section>
<section class="contact">
<h2>Subscribe using email for updates.</h2>
<form action="https://www.freecodecamp.org/email-submit" id="form">
<input type="email" name="email" id="email" placeholder="Enter your email address.." required>
<input type="submit" id="submit"></input>
</form>
</section>
</div>
<script>
const menuToggle = document.querySelector('.menu-toggle');
const nav = document.querySelector('nav ul');
const span = document.querySelectorAll('.menu-toggle span');
menuToggle.addEventListener('click', function () {
nav.classList.toggle('slide');
span.forEach((s) => {
s.classList.toggle('slide');
});
});
</script>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
</html>