Skip to content

Commit

Permalink
skapat alla filer och länkat ihop dem
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlsson2 committed Sep 26, 2023
1 parent 2875e50 commit 3b70f16
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
47 changes: 47 additions & 0 deletions data/data.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

$teams = [
'Arsenal' => [
'league' => 'Premier league',
'last-time-champions' => 2004,
'city' => 'London',
'url' => 'https://www.arsenal.com/'
],
'Aston Villa' => [
'league' => 'Premier league',
'last-time-champions' => 1981,
'city' => 'Birmingham',
'url' => 'https://www.avfc.co.uk/'
],
'Manchester City' => [
'league' => 'Premier league',
'last-time-champions' => 2023,
'city' => 'Manchester',
'url' => 'https://www.mancity.com/'
],
'Newcastle' => [
'league' => 'Premier league',
'last-time-champions' => 1927,
'city' => 'Newcastle',
'nickname' => 'Magpies',
'url' => 'https://www.nufc.co.uk/'
],
'Chelsea' => [
'league' => 'Premier league',
'last-time-champions' => 2017,
'city' => 'London',
'url' => 'https://www.chelseafc.com/en'
],
'Watford' => [
'league' => 'Championship',
'last-time-champions' => null,
'city' => 'London',
'url' => 'https://www.watfordfc.com/'
],
'Brighton' => [
'league' => 'Premier league',
'last-time-champions' => null,
'city' => 'Brighton',
'url' => 'https://www.brightonandhovealbion.com/'
],
];
2 changes: 2 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
</body>
</html>
2 changes: 2 additions & 0 deletions functions/cities.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
echo "<p>cities</p>";
2 changes: 2 additions & 0 deletions functions/teams-table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
echo "<p>teams table</p>";
2 changes: 2 additions & 0 deletions functions/total-teams.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
echo "<p>total teams</p>";;
13 changes: 13 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Some teams</title>
<link rel="stylesheet" href="styles.css"
/>
</head>
<body>
<header>
<h1>Some Teams</h1>
</header>
8 changes: 8 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
require __DIR__ . "/data/data.php";
require __DIR__ . "/header.php";
require __DIR__ . "/functions/cities.php";
require __DIR__ . "/functions/teams-table.php";
require __DIR__ . "/functions/total-teams.php";
require __DIR__ . "/footer.php";
?>

0 comments on commit 3b70f16

Please sign in to comment.