-
Notifications
You must be signed in to change notification settings - Fork 0
/
lat12.html
156 lines (155 loc) · 4.46 KB
/
lat12.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>HTML dasar</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.container{
width: 800px;
margin:0 auto;
}
.header {
background-color: #eee;
min-height: 50px;
text-align: center;
}
.logo img{
width: 200px;
}
.menu ul{
padding: 0px;
}
.menu ul li{
display: inline-block;
position: relative;
}
.menu ul li a{
padding: 10px 20px;
text-decoration: none;
}
.content {
background-color: #ddd;
min-height: 500px;
overflow: auto;
}
.footer {
background-color: #ccc;
min-height: 50px;
padding: 20px;
text-align: center;
}
.thumbnail{
background-color: white;
text-align: center;
padding: 10px;
width: 225px;
margin: 10px;
float: left;
}
.thumbnail img{
width: 100%;
}
ul .submenu{
background-color: #eee;
border: 1px solid #ccc;
text-align: left;
position: absolute;
top: 20px;
left: 0px;
display: none;
}
ul .submenu li{
display: block;
}
ul.submenu li a{
display: block;
padding: 5px 10px;
}
.menu ul li:hover ul.submenu{
display: block;
}
.jumbotron{
width: 100%;
padding: 80px 40px;
box-sizing: border-box;
text-align: center;
color: white;
background-color: #aaa;
background-image: url(https://images.pexels.com/photos/255379/pexels-photo-255379.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500);
background-size: cover;
position: relative;
}
.overlay{
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: black;
opacity: 0.4;
}
.jumbotron h2, .jumbotron p{
position: relative;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="logo">
<img src="logo.png" alt="logo">
</div>
<div class="menu">
<ul>
<li><a href="#">Home</a></li>
<li>
<a href="#">About</a>
<ul class="submenu">
<li><a href="#">CV</a></li>
<li><a href="#">Education</a></li>
<li><a href="#">Portfolio</a></li>
</ul>
</li>
<li><a href="#">Kontak</a></li>
</ul>
</div>
</div>
<div class="jumbotron">
<div class="overlay"></div>
<h1>Welcome everybody</h1>
<p>Lorem ipsum dolor sit amet consectetur
adipisicing elit. Architecto distinctio
exercitationem doloremque non vero,
repellendus illum perspiciatis facere culpa sint!</p>
</div>
<div class="content">
<h2>Our Produk</h2>
<div class="thumbnail">
<img src="http://via.placeholder.com/250x150" alt="logo">
<h2>Produk 1</h2>
<p>Rp 250.000</p>
</div>
<div class="thumbnail">
<img src="http://via.placeholder.com/250x150" alt="logo">
<h2>Produk 2</h2>
<p>Rp 250.000</p>
</div>
<div class="thumbnail">
<img src="http://via.placeholder.com/250x150" alt="logo">
<h2>Produk 3</h2>
<p>Rp 250.000</p>
</div>
<div class="thumbnail">
<img src="http://via.placeholder.com/250x150" alt="logo">
<h2>Produk 4</h2>
<p>Rp 250.000</p>
</div>
</div>
<div class="footer">
<p>Copyright 2018</p>
</div>
</div>
</body>
</html>