-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
47 lines (42 loc) · 1.59 KB
/
index.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
<?php
require_once 'functions.php';
$db = getDB();
$records = getAllAlbums($db);
$formattedRecords = outputRecords($records);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="dark light">
<title>My Record Collection</title>
<link href="normalize.css" type="text/css" rel="stylesheet" />
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<link href="style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<nav>
<h1>My Record Collection</h1>
</nav>
<section class="collectionContainer">
<?php echo $formattedRecords;?>
<div class="cardAdd">
<a href="./addrecord.php" class="addDataButton">
<div class="addBox">
<svg class="icon--plus" viewBox="-2.5 -2.5 10 10" xmlns="http://www.w3.org/2000/svg">
<path d="M2 1 h1 v1 h1 v1 h-1 v1 h-1 v-1 h-1 v-1 h1 z" />
</svg>
<h1>Add to collection</h1>
</div>
</a>
</div>
</section>
</body>
</html>