-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (103 loc) · 4.54 KB
/
index.html
File metadata and controls
103 lines (103 loc) · 4.54 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
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8" />
<meta content="initial-scale=1.0, width=device-width" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link href="favicon.svg" rel="icon" type="image/svg+xml" />
<title>Team Generator</title>
<meta
content="Aplikasi gratis untuk membuat tim secara acak dari daftar nama anggota. Cepat, mudah, dan adil. Sempurna untuk game, pekerjaan kelompok, atau proyek apa pun."
name="description"
/>
<meta
content="JjqmpmMnwiIPwMu8UIacBF0GMVgzQvDfcWN37nJ_-s4"
name="google-site-verification"
/>
<link href="https://cdn.jsdelivr.net" rel="preconnect" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script
defer
src="https://cdn.jsdelivr.net/npm/alpinejs/dist/cdn.min.js"
></script>
</head>
<body class="bg-body-secondary">
<main class="container py-3" x-data="teamGenerator">
<div class="col-sm-6 mx-auto">
<section>
<form
aria-label="Team Generation Form"
class="card mb-3 shadow-sm"
@submit.prevent="generateTeams"
>
<div class="card-body">
<h1 class="h3 mb-3">Team Generator</h1>
<div class="mb-3">
<label class="form-label" for="namesOfMembers"
>Nama-nama Anggota</label
>
<input
autofocus
class="form-control"
id="namesOfMembers"
placeholder="Contoh: Arya, Putra, Sadewa"
required
type="text"
x-model="membersInput"
/>
<div class="form-text">
Pisahkan dengan koma
</div>
</div>
<div class="mb-3">
<label class="form-label" for="numberOfTeams"
>Jumlah Tim</label
>
<input
class="form-control"
id="numberOfTeams"
min="1"
placeholder="Minimal 1 tim"
required
type="number"
x-model="numberOfTeams"
/>
</div>
<button class="btn btn-primary" type="submit">
Buat Tim
</button>
</div>
</form>
</section>
<section>
<div class="g-3 row" x-show="generatedTeams.length > 0">
<template
x-for="(team, index) in generatedTeams"
:key="index"
>
<div class="col-12">
<div class="card shadow-sm">
<div class="card-body">
<h5
class="card-title"
x-text="'Tim ' + (index + 1)"
></h5>
<p
class="card-text"
x-text="team.join(', ')"
></p>
</div>
</div>
</div>
</template>
</div>
</section>
</div>
</main>
<script src="index.min.js"></script>
</body>
</html>