Skip to content
Snippets Groups Projects
Commit 4be6acf5 authored by HARTZ HENRI's avatar HARTZ HENRI
Browse files

add: amélioration du style form start quiz

parent cfeedc3e
No related merge requests found
Pipeline #301032 passed with stages
in 48 seconds
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
<app-form-start-quiz *ngIf="showStartQuiz"></app-form-start-quiz> <app-form-start-quiz *ngIf="showStartQuiz"></app-form-start-quiz>
<app-form-create-quiz *ngIf="showCreateQuiz"></app-form-create-quiz> <app-form-create-quiz *ngIf="showCreateQuiz"></app-form-create-quiz>
</div> </div>
<div class="play-button"> <!-- <div class="play-button">
<button>Play</button> <button>Play</button>
</div> </div> -->
.container { .container {
padding: 1rem; height: 100%;
background-color: #f9f9f9; width: 100%;
border: 0.1rem solid #e0e0e0; background-color: #1FA9FF;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
background-color: aqua;
height: 100vh;
display: flex; display: flex;
flex-direction: column; justify-content: center;
align-items: center;
} }
form { form {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 130%; /* Espacement vertical */ width: 80%;
}
input {
width: 100%;
height: 5%;
border: 4px solid #1FA9FF;
border-radius: 10px;
padding: 1rem;
font-size: 2vmin;
} }
.erreur { .erreur {
...@@ -21,45 +29,20 @@ form { ...@@ -21,45 +29,20 @@ form {
font-weight: bold; font-weight: bold;
} }
.infos {
font-size: 24;
font-weight: bold;
}
input {
width: 98%;
height: 10%;
border-radius: 10px;
border-color: #1FA9FF;
padding: 1%
}
.containerInfo{ .containerInfo{
width: 100%;
background-color: #ffffff; background-color: #ffffff;
border-radius: 10px; border-radius: 10px;
padding: 1rem; padding: 1rem;
} }
button { .infos {
width: 100%; font-size: 2vmin;
height: 20%;
border-radius: 10px;
background-color: #2B73FE;
color: #ffffff;
font-size: 120%;
font-weight: bold; font-weight: bold;
border-color: #2B73FE;
} }
button:hover {
width: 100%;
height: 20%;
border-radius: 10px;
background-color: #255fd3;
color: #ffffff;
font-size: 120%;
font-weight: bold;
border-color: #2B73FE;
}
<div class="container"> <div class="container">
<form [formGroup]="form" (ngSubmit)="submitForm()"> <form [formGroup]="form" (ngSubmit)="submitForm()">
<div> <p class="erreur">{{erreur}}</p> <!-- changer ng if -->
<p class="erreur">{{erreur}}</p> <input type="text" placeholder="Type ID..." formControlName="code" maxlength="6" (ngModelChange)="modelChangeFn($event)">
<input type="text" placeholder="Type ID..." formControlName="code" maxlength="6" (ngModelChange)="modelChangeFn($event)">
</div>
<div class="containerInfo"> <div class="containerInfo">
<p class="infos">About this quiz</p> <p class="infos">About this quiz</p>
<hr> <hr>
...@@ -11,6 +9,6 @@ ...@@ -11,6 +9,6 @@
<p class="infos">Question : {{question}}</p> <p class="infos">Question : {{question}}</p>
<p class="infos">Score : {{score}}</p> <p class="infos">Score : {{score}}</p>
</div> </div>
<button type="submit">PLAY</button> <button type="submit" class="blueButton">PLAY</button>
</form> </form>
</div> </div>
\ No newline at end of file
...@@ -7,7 +7,7 @@ import { FormQuizService } from '../../../../services/form-quiz.service'; ...@@ -7,7 +7,7 @@ import { FormQuizService } from '../../../../services/form-quiz.service';
@Component({ @Component({
selector: 'app-form-start-quiz', selector: 'app-form-start-quiz',
templateUrl: './form-start-quiz.component.html', templateUrl: './form-start-quiz.component.html',
styleUrl: './form-start-quiz.component.css' styleUrls: ['./form-start-quiz.component.css','../../../../../styles.css'],
}) })
export class FormStartQuizComponent implements OnInit{ export class FormStartQuizComponent implements OnInit{
...@@ -22,7 +22,6 @@ export class FormStartQuizComponent implements OnInit{ ...@@ -22,7 +22,6 @@ export class FormStartQuizComponent implements OnInit{
private formQuizService: FormQuizService, private formQuizService: FormQuizService,
private fb: FormBuilder, private fb: FormBuilder,
private router: Router, private router: Router,
// private dialogRef: MatDialogRef<FormStartQuizComponent>,
) {} ) {}
ngOnInit(): void { ngOnInit(): void {
...@@ -46,7 +45,6 @@ export class FormStartQuizComponent implements OnInit{ ...@@ -46,7 +45,6 @@ export class FormStartQuizComponent implements OnInit{
}, },
}); });
// this.dialogRef.close();
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment