Skip to content

Commit

Permalink
Merge pull request #27 from WildCodeSchool-2023-09/last_fixes
Browse files Browse the repository at this point in the history
[FIXES]
  • Loading branch information
Baptiste1828 authored Feb 7, 2024
2 parents 689eb37 + df5e24c commit f5bb641
Show file tree
Hide file tree
Showing 18 changed files with 91 additions and 274 deletions.
1 change: 1 addition & 0 deletions assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import './styles/main/desktop.scss';
import './styles/main/reset.scss';

import './styles/prize/prize-index.scss';
import './styles/prize/prize-form.scss';

import './styles/gameplayed.scss';
import './styles/leaderboard.scss';
Expand Down
6 changes: 1 addition & 5 deletions assets/styles/event/event-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
flex-direction: column;
justify-content: center;
align-items: center;
gap: .5rem;

form {

Expand All @@ -23,7 +24,6 @@
}

.big-btn {
// margin-top: 2.5rem;
width: 50%;
}
}
Expand All @@ -38,10 +38,6 @@
.container {
form {
width: 70%;

& > div {

}
}
}
}
Expand Down
11 changes: 8 additions & 3 deletions assets/styles/forms/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ form textarea:hover {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;

& > div {
// width: 50%;
.vich-file {
div, a {
display: none;
}
}

label, input {
cursor: pointer;
Expand All @@ -41,7 +46,7 @@ form textarea:hover {
label {
display: none;

margin-top: 1rem;
margin-bottom: .5rem;

text-align: center;
font-size: 1.2rem;
Expand All @@ -67,7 +72,7 @@ form textarea:hover {
box-shadow: $shadow;

padding: .25rem 1.25rem;
margin-top: .5rem;
// margin-top: .5rem;

&:hover {
border: 1px solid #06CCF8;
Expand Down
27 changes: 8 additions & 19 deletions assets/styles/game/game-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

#game-form .content .container {
form {
.vich-file {
div, a {
display: none;
}
}

input:hover,
textarea:hover {
border: 1px solid #0982cd;
Expand Down Expand Up @@ -36,12 +42,6 @@
height: 46px;
}

.vich-file {
div, a {
display: none;
}
}

select {
option {
color: #5755ce;
Expand Down Expand Up @@ -72,19 +72,8 @@
align-items: center;
}

button#add-edit-game {
border-radius: $borderRadiusMedium;
border: 0.5px $colorGradient1;
background: $colorGradient5;
color : #020051;
width: 288px;
height: 50px;
text-align: center;
font-size: 18px;
margin-left: calc(50% - 144px);
margin-top: 24px;

cursor: pointer;
.big-btn {
width: 30%;
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions assets/styles/main/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ button {
&:hover {
transform: scale(102%);
}

transition: background-color ease-in-out 100ms;
}

h2:hover {
Expand Down
43 changes: 43 additions & 0 deletions assets/styles/prize/prize-form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@import "../main/_variables";

#prize-form {
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

form {

& > div {
width: 100%;

label {
display: block;
}

& > div {
display: flex;
gap: 1rem;
}
}

.big-btn {
width: 50%;
}
}
}
}

//

@media screen and (min-width: $desktopWidth) {

#prize-form {
.container {
form {
width: 70%;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240207152234 extends AbstractMigration
final class Version20240207155635 extends AbstractMigration
{
public function getDescription(): string
{
Expand Down
3 changes: 3 additions & 0 deletions src/Form/PrizeFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
],
])
->add('description', TextareaType::class, [
'attr' => [
'rows' => 3
],
'constraints' => [
new NotBlank([
'message' => 'Please enter the description',
Expand Down
4 changes: 0 additions & 4 deletions templates/event/_delete_form.html 2.twig

This file was deleted.

11 changes: 0 additions & 11 deletions templates/event/_form.html 2.twig

This file was deleted.

18 changes: 0 additions & 18 deletions templates/event/edit.html 2.twig

This file was deleted.

128 changes: 0 additions & 128 deletions templates/event/index.html 2.twig

This file was deleted.

19 changes: 0 additions & 19 deletions templates/event/new.html 2.twig

This file was deleted.

Loading

0 comments on commit f5bb641

Please sign in to comment.