-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_index.php
More file actions
57 lines (50 loc) · 1.67 KB
/
_index.php
File metadata and controls
57 lines (50 loc) · 1.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="bg-white py-24 sm:py-32">
<div class="mx-auto grid max-w-7xl gap-x-8 gap-y-20 px-6 lg:px-8 xl:grid-cols-3">
<ul role="list" class="grid gap-x-8 gap-y-12 sm:grid-cols-2 sm:gap-y-16 xl:col-span-2">
<?php
class Team
{
public $name;
public $role;
public $image;
public function __construct($name, $role, $image)
{
$this->name = $name;
$this->role = $role;
$this->image = $image;
}
}
$teams = [
// [
// "name" => "Leslie Alexander",
// "role" => "Co-Founder / CEO",
// "image" => "https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
// ],
new Team("Wahyu", "Test", "abc")
]
?>
<?php foreach ($teams as $team) : ?>
<li>
<div class="flex items-center gap-x-6">
<img class="h-16 w-16 rounded-full" src="<?php echo $team->image ?>" alt="">
<div>
<h3 class="text-base font-semibold leading-7 tracking-tight text-gray-900"><?php echo $team->name ?></h3>
<p class="text-sm font-semibold leading-6 text-indigo-600"><?php echo $team->role ?></p>
</div>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</body>
</html>