Skip to content

Commit 32e21c0

Browse files
authored
Merge pull request #182 from LeadOn/develop
5.2.2
2 parents a8d5487 + 215f130 commit 32e21c0

35 files changed

Lines changed: 855 additions & 815 deletions

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gameon-front",
3-
"version": "5.2.0",
3+
"version": "5.2.2",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

src/app/admin/changelog/admin-changelog-home.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*ngIf="loading == false"
1515
>
1616
<a
17-
class="bg-customGreen animate-fade flex cursor-pointer flex-row justify-center space-x-2 rounded-full p-2 transition delay-50 ease-in-out hover:bg-green-800"
17+
class="bg-customGreen animate-fade flex cursor-pointer flex-row justify-center space-x-2 rounded-lg p-2 transition delay-50 ease-in-out hover:bg-green-800"
1818
*ngIf="loading == false"
1919
routerLink="/admin/changelog/create"
2020
>

src/app/admin/changelog/create/admin-changelog-create.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
<div class="group relative z-0 mb-6 w-full">
6565
<label
6666
for="type"
67-
class="text-primary dark:text-primaryDark mb-2 block text-sm font-medium"
67+
class="mb-2 block text-sm font-medium text-gray-400"
6868
>
6969
Type
7070
</label>
@@ -83,7 +83,7 @@
8383
<div class="group relative z-0 mt-6 mb-6 w-full">
8484
<label
8585
for="published"
86-
class="mb-2 block scale-100 text-sm font-medium text-white"
86+
class="mb-2 block scale-100 text-sm font-medium text-gray-400"
8787
>
8888
Publié ?
8989
</label>

src/app/admin/fifa/tournaments/admin-tournaments.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
></app-common-page-header>
88

99
<a
10-
class="bg-customGreen animate-fade mt-4 flex cursor-pointer flex-row justify-center space-x-2 rounded-full p-2 transition delay-50 ease-in-out hover:bg-green-800"
10+
class="bg-customGreen animate-fade mt-4 flex cursor-pointer flex-row justify-center space-x-2 rounded-lg p-2 transition delay-50 ease-in-out hover:bg-green-800"
1111
*ngIf="loading == false"
1212
routerLink="/admin/fifa/tournaments/create"
1313
>
Lines changed: 118 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -1,133 +1,127 @@
1-
<div class="mt-8 flex flex-row justify-center">
2-
<div
3-
class="flex flex-row items-center rounded-lg bg-primary p-4"
4-
*ngIf="loading == true"
5-
>
6-
<app-loading-spinner></app-loading-spinner>
7-
<span class="text-white">Chargement...</span>
8-
</div>
1+
<div class="animate-fade flex space-x-2 px-4">
2+
<span class="text-primary dark:text-primaryDark text-lg font-semibold"
3+
>Création tournoi
4+
</span>
5+
</div>
96

10-
<div
11-
class="align-center flex w-2/3 flex-row items-center justify-center space-x-2 rounded-lg bg-primary p-4"
12-
*ngIf="loading == false"
13-
>
14-
<div
15-
class="align-center flex flex-col items-center justify-center rounded-full bg-customGreen p-4"
7+
<section class="bg-bgDarker mt-4 space-x-4 px-4">
8+
<div class="animate-fade flex flex-col items-center">
9+
<form
10+
[formGroup]="createTournamentForm"
11+
class="flex w-full flex-col space-y-4"
1612
>
17-
<img src="assets/img/svg/trophee.svg" class="w-8" />
18-
</div>
19-
<span class="text-white">Créer un tournoi</span>
20-
</div>
21-
</div>
13+
<div class="bg-bgLight dark:bg-bgDark rounded-lg p-8">
14+
<div class="group relative z-0 mb-6 w-full">
15+
<input
16+
type="text"
17+
id="name"
18+
class="peer text-primary focus:border-secondary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none"
19+
formControlName="name"
20+
/>
21+
<label
22+
for="name"
23+
class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-400 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium"
24+
>
25+
Nom
26+
<span class="text-customRed">*</span>
27+
</label>
28+
</div>
2229

23-
<div class="mt-4 flex flex-col items-center">
24-
<form
25-
[formGroup]="createTournamentForm"
26-
class="mt-6 w-2/3 rounded-lg bg-primary p-8"
27-
>
28-
<div class="group relative z-0 mb-6 w-full">
29-
<input
30-
type="text"
31-
id="name"
32-
class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0"
33-
formControlName="name"
34-
maxlength="100"
35-
/>
36-
<label
37-
for="name"
38-
class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary"
39-
>
40-
Nom
41-
<span class="text-customRed">*</span>
42-
</label>
43-
</div>
30+
<div class="group relative z-0 mb-6 w-full">
31+
<textarea
32+
type="text"
33+
id="description"
34+
class="peer focus:border-secondary text-primary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none"
35+
formControlName="description"
36+
maxlength="5000"
37+
required
38+
></textarea>
39+
<label
40+
for="description"
41+
class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-400 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium"
42+
>
43+
Description
44+
<span class="text-customRed">*</span>
45+
</label>
46+
</div>
4447

45-
<div class="group relative z-0 mb-6 w-full">
46-
<textarea
47-
type="text"
48-
id="description"
49-
class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0"
50-
formControlName="description"
51-
maxlength="5000"
52-
required
53-
></textarea>
54-
<label
55-
for="description"
56-
class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary"
57-
>
58-
Description
59-
</label>
60-
</div>
48+
<div class="group relative z-0 mb-6 w-full">
49+
<label
50+
for="state"
51+
class="mb-2 block text-sm font-medium text-gray-400"
52+
>
53+
État
54+
</label>
6155

62-
<div class="group relative z-0 mb-6 w-full">
63-
<label for="team1" class="mb-2 block text-sm font-medium text-white">
64-
État
65-
</label>
66-
<select
67-
id="state"
68-
formControlName="state"
69-
class="block w-full rounded-lg border border-secondary bg-gray-800/40 p-2.5 text-sm text-white focus:border-blue-500 focus:ring-blue-500"
70-
>
71-
<option *ngFor="let state of states" value="{{ state.value }}" selected>
72-
{{ state.label }}
73-
</option>
74-
</select>
75-
</div>
56+
<select
57+
id="state"
58+
formControlName="state"
59+
class="border-secondary block w-full rounded-lg border bg-gray-800/40 p-2.5 text-sm text-white focus:border-blue-500 focus:ring-blue-500"
60+
>
61+
<option
62+
*ngFor="let state of states"
63+
value="{{ state.value }}"
64+
selected
65+
>
66+
{{ state.label }}
67+
</option>
68+
</select>
69+
</div>
7670

77-
<div class="group relative z-0 mb-6 w-full">
78-
<input
79-
type="text"
80-
id="logoUrl"
81-
class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0"
82-
formControlName="logoUrl"
83-
maxlength="3000"
84-
required
85-
/>
86-
<label
87-
for="logoUrl"
88-
class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary"
89-
>
90-
URL du logo
91-
</label>
92-
</div>
71+
<div class="group relative z-0 mb-6 w-full">
72+
<input
73+
type="text"
74+
id="logoUrl"
75+
class="peer text-primary focus:border-secondary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none"
76+
formControlName="logoUrl"
77+
/>
78+
<label
79+
for="logoUrl"
80+
class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-400 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium"
81+
>
82+
URL du logo
83+
</label>
84+
</div>
9385

94-
<div class="group relative z-0 mb-6 w-full">
95-
<input
96-
type="date"
97-
id="plannedFrom"
98-
class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0"
99-
formControlName="plannedFrom"
100-
/>
101-
<label
102-
for="plannedFrom"
103-
class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary"
104-
>
105-
Planifié du
106-
<span class="text-customRed">*</span>
107-
</label>
108-
</div>
86+
<div class="group relative z-0 mb-6 w-full">
87+
<input
88+
type="date"
89+
id="plannedFrom"
90+
class="peer focus:border-secondary text-primary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none"
91+
formControlName="plannedFrom"
92+
/>
93+
<label
94+
for="plannedFrom"
95+
class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium"
96+
>
97+
Planifié du
98+
<span class="text-customRed">*</span>
99+
</label>
100+
</div>
109101

110-
<div class="group relative z-0 mb-6 w-full">
111-
<input
112-
type="date"
113-
id="plannedTo"
114-
class="peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-white focus:border-secondary focus:outline-none focus:ring-0"
115-
formControlName="plannedTo"
116-
/>
117-
<label
118-
for="plannedTo"
119-
class="absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium peer-focus:text-secondary"
120-
>
121-
Au
122-
<span class="text-customRed">*</span>
123-
</label>
124-
</div>
102+
<div class="group relative z-0 mb-6 w-full">
103+
<input
104+
type="date"
105+
id="plannedTo"
106+
class="peer focus:border-secondary text-primary dark:text-primaryDark block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm focus:ring-0 focus:outline-none"
107+
formControlName="plannedTo"
108+
/>
109+
<label
110+
for="plannedTo"
111+
class="peer-focus:text-secondary absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 transform text-sm text-gray-300 duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:font-medium"
112+
>
113+
Au
114+
<span class="text-customRed">*</span>
115+
</label>
116+
</div>
125117

126-
<button
127-
(click)="createTournament()"
128-
class="w-full rounded-lg bg-customGreen px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-green-800 focus:outline-none focus:ring-4 focus:ring-customGreen"
129-
>
130-
Créer
131-
</button>
132-
</form>
133-
</div>
118+
<button
119+
(click)="createTournament()"
120+
class="bg-customGreen focus:ring-customGreen w-full rounded-lg px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-green-800 focus:ring-4 focus:outline-none"
121+
>
122+
Créer le tournoi
123+
</button>
124+
</div>
125+
</form>
126+
</div>
127+
</section>

0 commit comments

Comments
 (0)