jsp quoi mettre

This commit is contained in:
Guams 2024-12-11 22:39:05 +01:00
parent fcb5e4b8fd
commit aeb3579d8b
11 changed files with 29 additions and 20 deletions

View File

@ -21,6 +21,7 @@
], ],
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"assets": [ "assets": [
"src/assets",
{ {
"glob": "**/*", "glob": "**/*",
"input": "public" "input": "public"

12
package-lock.json generated
View File

@ -21,7 +21,7 @@
"express": "^4.18.2", "express": "^4.18.2",
"luxon": "^3.5.0", "luxon": "^3.5.0",
"primeicons": "^7.0.0", "primeicons": "^7.0.0",
"primeng": "^17.18.13", "primeng": "^17.18.10",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.14.10" "zone.js": "~0.14.10"
@ -10839,14 +10839,12 @@
"node_modules/primeicons": { "node_modules/primeicons": {
"version": "7.0.0", "version": "7.0.0",
"resolved": "https://registry.npmjs.org/primeicons/-/primeicons-7.0.0.tgz", "resolved": "https://registry.npmjs.org/primeicons/-/primeicons-7.0.0.tgz",
"integrity": "sha512-jK3Et9UzwzTsd6tzl2RmwrVY/b8raJ3QZLzoDACj+oTJ0oX7L9Hy+XnVwgo4QVKlKpnP/Ur13SXV/pVh4LzaDw==", "integrity": "sha512-jK3Et9UzwzTsd6tzl2RmwrVY/b8raJ3QZLzoDACj+oTJ0oX7L9Hy+XnVwgo4QVKlKpnP/Ur13SXV/pVh4LzaDw=="
"license": "MIT"
}, },
"node_modules/primeng": { "node_modules/primeng": {
"version": "17.18.13", "version": "17.18.10",
"resolved": "https://registry.npmjs.org/primeng/-/primeng-17.18.13.tgz", "resolved": "https://registry.npmjs.org/primeng/-/primeng-17.18.10.tgz",
"integrity": "sha512-G+4isb+tz2drez744i8LswxyaD+mqGupQeIzXc4hn5tb0KZCoe2G61/cEHUvUENFlBWBj2IPju1Zqu7klKNTTw==", "integrity": "sha512-P3UskInOZ7qYICxSYvf0K8nUEb7DmndiXmyvLGU1wch+XcVWmVs4FZsWKNfdvK7TUdxxYj8WW44nodNV/epr3A==",
"license": "MIT",
"dependencies": { "dependencies": {
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },

View File

@ -24,7 +24,7 @@
"express": "^4.18.2", "express": "^4.18.2",
"luxon": "^3.5.0", "luxon": "^3.5.0",
"primeicons": "^7.0.0", "primeicons": "^7.0.0",
"primeng": "^17.18.13", "primeng": "^17.18.10",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.14.10" "zone.js": "~0.14.10"

View File

@ -0,0 +1,5 @@
img {
width: 100%;
height: 25rem;
object-fit: cover;
}

View File

@ -1,3 +1,3 @@
<img src="assets/banner.png" height="494" width="1494"/>
<p-menubar [model]="items" /> <p-menubar [model]="items" />
<router-outlet></router-outlet> <router-outlet></router-outlet>

View File

@ -1,12 +1,12 @@
import {Component} from '@angular/core'; import {Component, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
import {HomeComponent} from "./home/home.component";
import {MenubarModule} from 'primeng/menubar'; import {MenubarModule} from 'primeng/menubar';
import {MenuItem} from 'primeng/api'; import {MenuItem} from 'primeng/api';
import {FloatLabelModule} from 'primeng/floatlabel';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
standalone: true, standalone: true,
imports: [HomeComponent, MenubarModule], imports: [MenubarModule, FloatLabelModule],
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrl: './app.component.css' styleUrl: './app.component.css'
}) })

View File

@ -3,12 +3,12 @@ import {provideRouter} from '@angular/router';
import {routes} from './app.routes'; import {routes} from './app.routes';
import {provideClientHydration} from '@angular/platform-browser'; import {provideClientHydration} from '@angular/platform-browser';
import {provideHttpClient} from '@angular/common/http'; import {provideHttpClient, withFetch} from '@angular/common/http';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [ providers: [
provideZoneChangeDetection({eventCoalescing: true}), provideZoneChangeDetection({eventCoalescing: true}),
provideRouter(routes), provideRouter(routes),
provideClientHydration(), provideClientHydration(),
provideHttpClient()] provideHttpClient(withFetch())]
}; };

View File

@ -15,3 +15,5 @@
</div> </div>
</article> </article>
</div> </div>
{{ authors | json }}

View File

@ -1,4 +1,5 @@
<p-floatlabel variant="on"> <label for="username">Nom d'utilisateur</label>
<input pInputText id="on_label" [(ngModel)]="name" autocomplete="off" /> <input id="username" placeholder="Entrez votre nom d'utilisateur" pInputText [(ngModel)]="name"/>
<label for="on_label">On Label</label> <label for="password">Mot de passe</label>
</p-floatlabel> <input id="password" placeholder="Entrez votre mot de passe" pInputText [(ngModel)]="name"/>

View File

@ -1,11 +1,13 @@
import { Component } from '@angular/core'; import {Component, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
import {FormsModule} from '@angular/forms'; import {FormsModule} from '@angular/forms';
import {InputTextModule} from 'primeng/inputtext';
@Component({ @Component({
selector: 'app-login', selector: 'app-login',
standalone: true, standalone: true,
imports: [ imports: [
FormsModule FormsModule,
InputTextModule
], ],
templateUrl: './login.component.html', templateUrl: './login.component.html',
styleUrl: './login.component.css' styleUrl: './login.component.css'

BIN
src/assets/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB