-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
214 lines (193 loc) · 7.59 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!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">
<meta name="description" content="Implemented web components using custom elements, templates and slots">
<meta name="keywords" content="web components, custom elements, slot, template, custom element v1, slot v1, module, modules, import, export">
<meta name="author" content="Azubuike Golden">
<title>DevSpot</title>
<link rel="stylesheet" href="./styles/styles.css">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
</head>
<body>
<div id="app">
<header>
<p class="brandname">DevSpot</p>
<div class="nav">
<nav-items>
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
</nav-items>
<my-button bordercolor="#2c2640" , textcolor="#2c2640"></my-button>
</div>
</header>
<main>
<section class="main__hero">
<div class="main__text">
<h1>Be Spotified with developers</h1>
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Cumque, in aliquam. Incidunt vitae
tempore, ipsum
quas, autem, fugiat reprehenderit sequi similique.
</p>
<my-button bordercolor="white" textcolor="white"></my-button>
</div>
<div class="img">
<img src="https://th.bing.com/th/id/R.706ed056fa7cdcd7e509861024603f0c?rik=KxAR9oJQtW6ijA&pid=ImgRaw&r=0&sres=1&sresct=1"
alt="hero image">
</div>
</section>
<section class="main__highlight">
<h2 class="main__highlight__heading">Perks You Get</h2>
<div class="main__highlight__cards">
<card-element icon="bx-link-alt" perk="Group hangout"
text="Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus quam recusandae, molestias temporibus labore perferendis tenetur molestiae? Vero, cupiditate facere.">
</card-element>
<card-element icon="bx-chalkboard" perk="Peer learning sessions"
text="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laudantium asperiores voluptatum sunt porro, dicta quibusdam iusto perferendis aliquid deserunt libero!">
</card-element>
<card-element icon="bxs-group" perk="Mentorship session"
text="Lorem ipsum, dolor sit amet consectetur adipisicing elit. Officia in enim nobis ex veniam eaque aut maxime dolorem dolor recusandae.">
</card-element>
</div>
</section>
<section class="main__banner">
<h2 class="main__banner__text">
Want to be world class? <br>Meet a mentor
</h2>
<my-button bordercolor="white" , textcolor="white"></my-button>
</section>
</main>
<footer>
<section class="footer__heading">
<p class="brandname">DevSpot</p>
<div class="footer__heading__socials">
<a href="https://twitter.com/chibu_exe" target="_blank"><i class='bx bxl-twitter'></i></a>
<a href="https://linkedin.com/in/goldenazubuike" target="_blank"><i class='bx bxl-linkedin'></i></a>
<a href="https://github.com/goldenhub" target="_blank"><i class='bx bxl-github'></i></a>
</div>
</section>
<hr>
<section class="footer__links">
<footer-links heading="our brand" , lists="history, reviews">
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
</footer-links>
<footer-links heading="help" , lists="faq, terms of use, privacy policy">
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
</footer-links>
<footer-links heading="contact" , lists="support, live chat, team">
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
</footer-links>
<footer-links heading="others" , lists="careers, job board">
<li class="list-item" slot="list"></li>
<li class="list-item" slot="list"></li>
</footer-links>
</section>
</footer>
</div>
<!-- TEMPLATES -->
<!-- nav-item template -->
<template id="nav">
<style>
ul {
margin: 0;
padding: 0;
text-align: center;
}
</style>
<ul id="nav-lists">
<slot name="list"></slot>
</ul>
</template>
<!-- button template -->
<template id="btn">
<style>
.btn__container {
margin: 10px 20px 10px 0;
}
a {
text-decoration: none;
padding: 5px 40px;
}
@media screen and (max-width: 860px) {
.btn__container {
margin: 10px 0;
}
}
</style>
<div class="btn__container">
<a class="cta" href="#">Connect</a>
</div>
</template>
<!-- card element template -->
<template id="card">
<style>
span.card__icon {
display: inline-block;
border-radius: 50%;
text-align: center;
background-color: #95aac5;
padding: 50px;
}
.card__icon .bx {
color: #ffffff;
}
h3 {
font-size: 1.5rem;
}
@media screen and (max-width: 860px) {
.card {
text-align: center;
margin-bottom: 60px;
}
}
</style>
<div class="card">
<span class="card__icon"><i class='bx'></i></span>
<h3 class="card__title"></h3>
<p class="card__text"></p>
</div>
</template>
<!-- footer-links template -->
<template id="footer-links">
<style>
ul {
margin: 0;
padding: 0;
}
:host {
width: 25%;
}
.link__heading {
opacity: .8;
color: #2c2640;
font-weight: bolder;
}
@media screen and (max-width: 860px) {
:host {
width: 100%;
}
.link {
text-align: center;
margin-bottom: 30px;
}
}
</style>
<div class="link">
<h4 class="link__heading"></h4>
<ul class="link__list">
<slot name="list"></slot>
</ul>
</div>
</template>
<script type="module" src="./js/app.js"></script>
</body>
</html>