-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (73 loc) · 2.07 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
<!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">
<!-- Icon -->
<link rel="icon" sizes="192x192" type=image/x-icon" href="media/icons/javascript.ico">
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/5485bfc962.js" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Countries</title>
<style>
img {
border-radius: 15px;
width: 300px;
}
.country {
background-color: white;
color: gray;
padding: 20px;
margin: 10px;
border-radius: 10px;
box-Shadow: rgba(0, 0, 0, 0.4) 0px 4px 12px;
margin: auto;
width: 330px;
/* height: 420px; */
overflow-x: hidden;
overflow: scroll;
text-align: center;
}
.scroll {
overflow-x: hidden;
overflow-x: scroll
}
#countries {
display: grid;
grid-template-columns: repeat(3, 1fr);
row-gap: 3.5em;
place-items: center;
}
@media only screen and (max-width: 768px) {
img {
width: 100%;
}
.country {
width: 80%
}
#countries {
display: flex;
flex-wrap: wrap;
}
}
</style>
</head>
<body>
<header>
<a href="">
<h1>Let's Explore All Countries</h1>
</a>
</header>
<main>
<!-- <button onclick="loadBuddiesPicture()" class="btn">Load Buddies Picture</button> -->
<button onclick="loadCountries()" class="btn">Load Countries</button>
<section id="countries">
</section>
</main>
<footer>
</footer>
<!-- <script src="js/json.js"></script> -->
<script src="js/countries.js"></script>
</body>
</html>