-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
147 lines (123 loc) · 3.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<title>Gallery</title>
<style>
body {
padding: 10px;
font-family: 'Roboto', sans-serif;
font-weight: bold;
}
#container {
margin: 15px auto;
width: 70%;
height: 200px;
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: center;
flex-wrap: wrap;
}
div.gallery {
margin: 15px;
border: 1px solid #ccc;
width: 180px;
}
div.gallery:hover {
border: 1px solid #777;
box-shadow: 10px 10px 5px #efefef;
background-color: #4c8bf5;
color: white;
}
div.gallery img {
width: 100%;
height: auto;
}
div.desc {
padding: 15px;
text-align: center;
}
h1 {
text-align: center;
font-family: 'Roboto', sans-serif;
}
#text {
width:77%;
margin: 10px auto;
text-align: center;
}
p {
font-size: 1.1em;
font-weight: normal;
text-align: justify;
text-justify: inter-word;
}
</style>
</head>
<body>
<h1>Nature Gallery</h1>
<div id="container">
<div class="gallery">
<a target="_blank" href="photos/elephant.jpg">
<img src="photos/elephant.jpg" alt="Elephant" width="600" height="400">
</a>
<div class="desc">Elephant</div>
</div>
<div class="gallery">
<a target="_blank" href="photos/forest.jpg">
<img src="photos/forest.jpg" alt="Forest" width="600" height="400">
</a>
<div class="desc">Forest</div>
</div>
<div class="gallery">
<a target="_blank" href="photos/lake.jpg">
<img src="photos/lake.jpg" alt="Lake" width="600" height="400">
</a>
<div class="desc">Lake</div>
</div>
<div class="gallery">
<a target="_blank" href="photos/waterfall.jpg">
<img src="photos/waterfall.jpg" alt="Waterfall" width="600" height="400">
</a>
<div class="desc">Waterfall</div>
</div>
<div class="gallery">
<a target="_blank" href="photos/sunset.jpg">
<img src="photos/sunset.jpg" alt="Sunset" width="600" height="400">
</a>
<div class="desc">Sunset</div>
</div>
<div class="gallery">
<a target="_blank" href="photos/pyramids.jpg">
<img src="photos/pyramids.jpg" alt="Pyramids" width="600" height="400">
</a>
<div class="desc">Pyramids</div>
</div>
<div class="gallery">
<a target="_blank" href="photos/beach.jpg">
<img src="photos/beach.jpg" alt="Beach" width="600" height="400">
</a>
<div class="desc">Beach</div>
</div>
<div class="gallery">
<a target="_blank" href="photos/river.jpg">
<img src="photos/river.jpg" alt="River" width="600" height="400">
</a>
<div class="desc">River</div>
</div>
<div id="text">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Facilis, consequuntur fuga,
distinctio delectus quaerat placeat natus deserunt voluptatum ad consectetur cum officiis ab.
Beatae quam rem consequatur veniam omnis quidem.
consequuntur fuga,m dolor sit amet consectetur adipisicing elit. Facilis, consequuntur fuga,
distinctio
</p>
</div>
</div>
</body>
</html>