forked from daicreative/GameDesignWebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgames.php
188 lines (184 loc) · 10.8 KB
/
games.php
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- Global site tag (gtag.js) - Google Analytics -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-127221484-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-127221484-1');
</script>
<title>Game Design and Development</title>
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon1.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon1.png">
<link href="https://fonts.googleapis.com/css?family=Abel|Josefin+Sans|Quicksand|Saira+Condensed" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.green-light_green.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU"
crossorigin="anonymous">
</head>
<body>
<!-- Always shows a header, even in smaller screens. -->
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<?php
$title="Games";
include 'header.php';
?>
<div class="background games"></div>
<main class="mdl-layout__content">
<div class="page-content">
<!-- Your content goes here -->
<!--
<h1 class="section-title" id="games-bigger-heading">Fall 2019</h1>
<div class="mdl-grid">
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/533543" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/53228" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/530870" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/532854" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/532870" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/532239" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/532685" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/532920" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/532997" height="167"
width="552" frameborder="0"></iframe>
</div>
<h1 class="section-title" id="games-bigger-heading">Spring 2019</h1>
<h1 class="section-title" id="games-reg-heading">Club</h1>
<div class="mdl-grid">
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/382608" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/373871" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/479162" height="167"
width="552" frameborder="0"></iframe>
</div>
<h1 class="section-title" id="games-reg-heading">Decal</h1>
<div class="mdl-grid">
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/418976" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/418978" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/419008" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/418969" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/419004" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/418843" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/418852" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/418970" height="167"
width="552" frameborder="0"></iframe>
</div>
<h1 class="section-title" id="games-bigger-heading">Summer 2018</h1>
<div class="mdl-grid">
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/260893" height="167"
width="552" frameborder="0"></iframe>
<iframe class="mdl-cell mdl-cell--6-col mdl-shadow--2dp" src="https://itch.io/embed/261877" height="167"
width="552" frameborder="0"></iframe>
</div>
-->
<a href="https://gddberkeley.itch.io/" id="joindisc">Our itch.io Page</a>
<h1 class="section-title" id="games-bigger-heading">Fall 2020</h1>
<div class="mdl-grid">
<?php
$file = file_get_contents("games.json");
$json = (array)json_decode($file, true);
foreach($json as $item) {
if ($item["semester"] == "Fall 2020") {
echo
'<a target="_blank" href="'.$item["link"].'"><div>
<div style="background-image: url(\''.$item["image"].'\')"></div>
<p>'.$item["name"].'</p>
</div></a>';
}
}
?>
</div>
<h1 class="section-title" id="games-bigger-heading">Spring 2020</h1>
<div class="mdl-grid">
<?php
$file = file_get_contents("games.json");
$json = (array)json_decode($file, true);
foreach($json as $item) {
if ($item["semester"] == "Spring 2020") {
echo
'<a target="_blank" href="'.$item["link"].'"><div>
<div style="background-image: url(\''.$item["image"].'\')"></div>
<p>'.$item["name"].'</p>
</div></a>';
}
}
?>
</div>
<h1 class="section-title" id="games-bigger-heading">Fall 2019</h1>
<div class="mdl-grid">
<?php
$file = file_get_contents("games.json");
$json = (array)json_decode($file, true);
foreach($json as $item) {
if ($item["semester"] == "Fall 2019") {
echo
'<a target="_blank" href="'.$item["link"].'"><div>
<div style="background-image: url(\''.$item["image"].'\')"></div>
<p>'.$item["name"].'</p>
</div></a>';
}
}
?>
</div>
<h1 class="section-title" id="games-bigger-heading">Spring 2019</h1>
<div class="mdl-grid">
<?php
$file = file_get_contents("games.json");
$json = (array)json_decode($file, true);
foreach($json as $item) {
if ($item["semester"] == "Spring 2019") {
echo
'<a target="_blank" href="'.$item["link"].'"><div>
<div style="background-image: url(\''.$item["image"].'\')"></div>
<p>'.$item["name"].'</p>
</div></a>';
}
}
?>
</div>
<h1 class="section-title" id="games-bigger-heading">Summer 2018</h1>
<div class="mdl-grid">
<?php
$file = file_get_contents("games.json");
$json = (array)json_decode($file, true);
foreach($json as $item) {
if ($item["semester"] == "Summer 2018") {
echo
'<a target="_blank" href="'.$item["link"].'"><div>
<div style="background-image: url(\''.$item["image"].'\')"></div>
<p>'.$item["name"].'</p>
</div></a>';
}
}
?>
</div>
</div>
<!-- fixes a bug for some reason -->
<div class="mdl-button__container">
</div>
<?php include 'footer.php'; ?>
</main>
</div>
</body>
</html>