-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml.php
More file actions
70 lines (52 loc) · 1.46 KB
/
html.php
File metadata and controls
70 lines (52 loc) · 1.46 KB
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
<?php
include 'data.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>UEFA Football Teams</title>
</head>
<style>
.grid-container {
display: grid;
grid-template-columns: auto auto auto auto;
gap: 40px;
}
.team-emblems img {
max-width: 50%;
height: auto;
}
.team-emblems {
text-align: center;
box-shadow: 10px 10px 10px 10px gray;
background-color: darkgray;
border-radius: 5%;
}
h1 {
text-align: center;
font-size: 80px;
}
body {
background-color: lightgrey;
}
</style>
<body>
<h1>⚽️ UEFA Footboll Teams ⚽️</h1>
<div class="grid-container">
<?php foreach ($teams as $name => $details): ?>
<div class="team-emblems">
<h2><?= $name ?></h2>
<img src="<?= $details["logo"] ?>" alt="logo">
<h4><?= "Country:" . $details["flag"] ?></h4>
<p><?= "City:" . $details["city"] ?></p>
<p><?= "League:" . $details["league"] ?></p>
<p><?= "UEFA ranking:" . $details["uefa-coefficient-ranking"] ?></p>
<p><?= "Group:" . $details["group"] ?></p>
<a href="<?= $details["url"] ?>" target="_blank"><?= $name ?></a>
</div>
<?php endforeach; ?>
</div>
</body>
</html>