-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
156 lines (144 loc) · 3.71 KB
/
index.php
File metadata and controls
156 lines (144 loc) · 3.71 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
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
<?php
$json_content = file_get_contents("https://www.freetogame.com/api/games");
$result = json_decode($json_content, true);
?>
<!DOCTYPE html>
<html>
<head>
<title>ToFri</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/animate.css/3.2.0/animate.min.css">
</head>
<body>
<header>
ImFree
<a style=" z-index: 999; text-decoration: none; font-size: 25px; margin: 10px; " id="demo01" href="#animatedModal">Info</a>
</header>
<div id="animatedModal">
<div class="close-animatedModal" >
<img src="img/happy.png">
<span>X</span>
</div>
<div class="modal-content">
<div id="card-form">
<p>
Howdy, this is a personal project that just let the gamers know about the free games around on internet. Every week new free games will be shown right here. So enjoy <br>
And right down below it is the tecnologies i used for create this page
</p>
<div class="tools">
<p>
<!-- HTML -->
<img src="img/html-5.png">
</p>
<p>
<!-- CSS -->
<img src="img/css.png">
</p>
<p>
<!-- JavaScript -->
<img src="img/javascript.png">
</p>
<p>
<!-- PHP -->
<img src="img/php.png">
</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="column">
<?php
for ($i=0; $i <= 10 ; $i++) {
echo "
<div class='card'>
<div>
<img src=" . $result[$i]['thumbnail'] . ">
<h4>" . $result[$i]['title'] . " </h4>
</div>
<div class='card-description'>
<p>" . $result[$i]['short_description'] . "</p>
</div>
</div>
";
}
?>
</div>
<div class="column">
<?php
for ($i=11; $i <= 21 ; $i++) {
echo "
<div class='card'>
<div>
<img src=" . $result[$i]['thumbnail'] . ">
<h4>" . $result[$i]['title'] . " </h4>
</div>
<div class='card-description'>
<p>" . $result[$i]['short_description'] . "</p>
</div>
</div>
";
}
?>
</div>
<div class="column">
<?php
for ($i=22; $i <= 32 ; $i++) {
echo "
<div class='card'>
<div>
<img src=" . $result[$i]['thumbnail'] . ">
<h4>" . $result[$i]['title'] . " </h4>
</div>
<div class='card-description'>
<p>" . $result[$i]['short_description'] . "</p>
</div>
</div>
";
}
?>
</div>
<div class="column">
<?php
for ($i=33; $i <= 32 ; $i++) {
echo "
<div class='card'>
<div>
<img src=" . $result[$i]['thumbnail'] . ">
<h4>" . $result[$i]['title'] . " </h4>
</div>
<div class='card-description'>
<p>" . $result[$i]['short_description'] . "</p>
</div>
</div>
";
}
?>
</div>
</div>
<div class="container body-content">
<footer>
<div class="content">
<a target="_blank" href="https://github.com/HallyssonDev" style="text-decoration: none; color: #F0F0F0">GitHub<i class="fab fa-github"></i></a>
</div>
Made by HLS
<div>
<span class="themes" onclick="changeTheme()">Tema Escuro<i class="fas fa-moon"></i></span>
</div>
</footer>
</div>
<script type="text/javascript">
function changeTheme () {
document.body.style.backgroundColor = 'black';
}
</script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/animatedmodal@1.0.0/animatedModal.min.js"></script>
<script type="text/javascript">
$("#demo01").animatedModal();
</script>
<script type="text/javascript" src="js/script.js"></script>
</body>
</html>