Skip to content

Commit

Permalink
Migration control flow
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreOlivierBrillant committed Apr 10, 2024
1 parent 68be04d commit 552bdb6
Show file tree
Hide file tree
Showing 16 changed files with 524 additions and 471 deletions.
153 changes: 82 additions & 71 deletions angular/src/app/dec/dec.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
background-size: 100%;
background-attachment: fixed;
"
>
>
<br />
<div class="container-fluid">
<div class="row">
Expand All @@ -31,90 +31,101 @@ <h5 class="card-title">Technique en informatique</h5>
</div>
</div>

<div class="col-md-8" *ngIf="programme === 'p'">
<div class="card text-light bg-primary mb-3">
<div class="card-header">Info de gestion</div>
<div class="card-body">
<p>
Programmer des applications web avec ASP.Net et Angular
<i class="fab fa-angular"></i> et mobiles Android
<mat-icon>adb</mat-icon>.
</p>
<p>
Utiliser le cloud <i class="fas fa-cloud-upload-alt"></i>,
<mat-icon>http</mat-icon> et des bases de données pour concrétiser
tes idées d'apps.
</p>
<p>
Sécuriser le tout pour résister aux vilains hackeurs
<i class="fab fa-hackerrank"></i>.
</p>
@if (programme === 'p') {
<div class="col-md-8">
<div class="card text-light bg-primary mb-3">
<div class="card-header">Info de gestion</div>
<div class="card-body">
<p>
Programmer des applications web avec ASP.Net et Angular
<i class="fab fa-angular"></i> et mobiles Android
<mat-icon>adb</mat-icon>.
</p>
<p>
Utiliser le cloud <i class="fas fa-cloud-upload-alt"></i>,
<mat-icon>http</mat-icon> et des bases de données pour concrétiser
tes idées d'apps.
</p>
<p>
Sécuriser le tout pour résister aux vilains hackeurs
<i class="fab fa-hackerrank"></i>.
</p>
</div>
</div>
</div>
</div>
}

<div class="col-md-8" *ngIf="programme === 'r'">
<div class="card text-light bg-info mb-3">
<div class="card-header">Gestion des réseaux</div>
<div class="card-body">
<p>
Mettre en place des réseaux pour une compagnie, un LAN party
<i class="fas fa-network-wired"></i>, des serveurs de jeu en
ligne.
</p>
<p>
Un stack réseau Cisco, des serveurs Windows et Linux
<i class="fab fa-linux"></i>. Tu gères des centaines
d'utilisateurs grâce à la puissance des scripts.
</p>
<p>
Tu fais de ton infra un donjon
<i class="fas fa-dungeon"></i> impossible à pirater.
</p>
@if (programme === 'r') {
<div class="col-md-8">
<div class="card text-light bg-info mb-3">
<div class="card-header">Gestion des réseaux</div>
<div class="card-body">
<p>
Mettre en place des réseaux pour une compagnie, un LAN party
<i class="fas fa-network-wired"></i>, des serveurs de jeu en
ligne.
</p>
<p>
Un stack réseau Cisco, des serveurs Windows et Linux
<i class="fab fa-linux"></i>. Tu gères des centaines
d'utilisateurs grâce à la puissance des scripts.
</p>
<p>
Tu fais de ton infra un donjon
<i class="fas fa-dungeon"></i> impossible à pirater.
</p>
</div>
</div>
</div>
</div>
}
</div>

<div class="row">
<div
class="col-sm-6 col-md-4 col-lg-2"
*ngFor="let session of [1, 2, 3, 4, 5, 6]"
>
<h3>Session {{ session }}</h3>
<div *ngFor="let item of cours; index as i">
<div
@for (session of [1, 2, 3, 4, 5, 6]; track session) {
<div
class="col-sm-6 col-md-4 col-lg-2"
>
<h3>Session {{ session }}</h3>
@for (item of cours; track item; let i = $index) {
<div>
@if (sessionDe(item) === session && bon(item.v)) {
<div
[class]="
item.v
? 'commun bg-dark text-white mb-2'
: 'specifique bg-light text-dark web mb-2'
"
*ngIf="sessionDe(item) === session && bon(item.v)"
>
<span class="float-end">
<a
*ngIf="item.url"
class="badge text-bg-info"
href="{{ item.url }}"
>
<mat-icon>http</mat-icon>
</a>
</span>
<span class="titre">{{ item.nom }}</span>
<div style="clear: both" class="mb-2">
<span class="numero badge text-bg-light">{{ item.no }}-EM</span>
</div>
<span class="icons" *ngFor="let icon of item.icons">
&nbsp;
<i class="{{ icon }}"></i>
</span>
<span class="float-end"
><i class="fas fa-clock"></i> {{ heuresDe(item) }} h</span
>
<div style="clear: both"></div>
>
<span class="float-end">
@if (item.url) {
<a
class="badge text-bg-info"
href="{{ item.url }}"
>
<mat-icon>http</mat-icon>
</a>
}
</span>
<span class="titre">{{ item.nom }}</span>
<div style="clear: both" class="mb-2">
<span class="numero badge text-bg-light">{{ item.no }}-EM</span>
</div>
@for (icon of item.icons; track icon) {
<span class="icons">
&nbsp;
<i class="{{ icon }}"></i>
</span>
}
<span class="float-end"
><i class="fas fa-clock"></i> {{ heuresDe(item) }} h</span
>
<div style="clear: both"></div>
</div>
}
</div>
}
</div>
</div>
}
</div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions angular/src/app/dec/dec.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { Component } from '@angular/core';
import { Cours, DataService, Prof } from '../service/service.data';
import { ActivatedRoute } from '@angular/router';
import { MatIcon } from '@angular/material/icon';
import { NgIf, NgFor } from '@angular/common';


@Component({
selector: 'app-dec',
templateUrl: './dec.component.html',
styleUrls: ['./dec.component.scss'],
standalone: true,
imports: [NgIf, MatIcon, NgFor],
imports: [MatIcon],
})
export class DecComponent {
cours: Cours[];
Expand Down
21 changes: 12 additions & 9 deletions angular/src/app/faq/faq.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@
<div class="col-md4"></div>
</div>
<div class="row">
<div class="col-md-4" *ngFor="let q of questions">
<div class="alert alert-dark">
<h3>{{ q.q }}</h3>

<p>
{{ q.r }}
</p>
<a href="{{ l }}" class="card-link" *ngFor="let l of q.liens">lien</a>
@for (q of questions; track q) {
<div class="col-md-4">
<div class="alert alert-dark">
<h3>{{ q.q }}</h3>
<p>
{{ q.r }}
</p>
@for (l of q.liens; track l) {
<a href="{{ l }}" class="card-link">lien</a>
}
</div>
</div>
</div>
}
</div>
</div>
4 changes: 2 additions & 2 deletions angular/src/app/faq/faq.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component } from '@angular/core';
import { DataService, Question } from '../service/service.data';
import { ActivatedRoute } from '@angular/router';
import { NgFor } from '@angular/common';

import { FormsModule } from '@angular/forms';
import { MatInput } from '@angular/material/input';
import { MatFormField, MatLabel } from '@angular/material/form-field';
Expand All @@ -10,7 +10,7 @@ import { MatFormField, MatLabel } from '@angular/material/form-field';
selector: 'app-faq',
templateUrl: './faq.component.html',
standalone: true,
imports: [MatFormField, MatLabel, MatInput, FormsModule, NgFor],
imports: [MatFormField, MatLabel, MatInput, FormsModule],
})
export class FaqComponent {
questions: Question[];
Expand Down
Loading

0 comments on commit 552bdb6

Please sign in to comment.