-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (104 loc) · 2.85 KB
/
index.html
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
<!DOCTYPE html>
<head>
<title>LoL Customs Team Sorter</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
* {
box-sizing: border-box;
}
body {
font-family: 'Manrope', sans-serif;
}
body.App__dark-mode, body.App__dark-mode .App__card {
color: #ededed;
background: rgb(24, 24, 24);
}
a {
color: rgb(131, 131, 250);
}
.App__card {
background: white;
border-radius: 25px;
padding: 30px;
margin: 30px;
filter: drop-shadow(0 0 0.75rem silver);
}
body.App__dark-mode .App__card {
filter: drop-shadow(0 0 0.75rem black);
}
.PlayersForm__player-input-groups {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.PlayersForm__player-input-group {
height: 400px;
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-evenly;
padding: 20px;
}
label {
display: flex;
flex-direction: column;
width: 100%;
}
label > input, label > select {
margin-top: 10px;
border: 1px solid silver;
border-radius: 5px;
font-family: 'Manrope';
font-weight: bold;
}
label > input {
height: 30px;
padding: 10px;
}
label > select {
height: 32px;
}
button {
cursor: pointer;
border: 1px solid rgb(0, 97, 0);
color: rgb(0, 97, 0);
background: rgb(198, 253, 198);
padding: .5em .5em .5em .5em;
border-radius: 25px;
font-size: 1.2em;
width: 300px;
position: relative;
left: 50%;
transform: translate(-50%);
}
</style>
<script src="./teamSorter.js"></script>
</head>
<body>
<div class="App__card">
<h1>LoL Customs Team Sorter</h1>
<p>Made by Lotus <b><a href="https://github.com/helloitsian" target="_blank">Github</a> | <a href="https://twitter.com/lotuscarry" target="_blank">Twitter</a></b> </p>
</div>
<div class="App__card">
<h2>How it Works</h2>
<p>
This team sorter prioritizes role selection over rank, then does it's best to balance the teams by rank.
It supports primary/secondary roles, fill, and auto-fill.
To specify a player for fill, set their primary role as Fill and select any role for secondary (secondary role won't be used).
Currently, secondary fill is not supported.
</p>
</div>
<div class="App__card">
<h2>Teams</h2>
<div id="team-tables-wrapper">
Enter some player data to generate the teams!
</div>
</div>
<div class="App__card">
<form className="PlayersForm" id="players-form">
<h2>Players</h2>
<div class="PlayersForm__player-input-groups"></div>
<button type="submit">Make Teams!</submit>
</form>
</div>
<script src="./index.js"></script>
</body>