Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
526f4d049b | 2 years ago |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,10 @@
|
|||||||
|
.form-group {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-group input, .form-group textarea {
|
||||||
|
width: 100%;
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
<form action="" class="form-group">
|
||||||
|
<mat-form-field appearence="fill">
|
||||||
|
<mat-label>Nom</mat-label>
|
||||||
|
<input matInput>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
<mat-form-field appearence="fill">
|
||||||
|
<mat-label>Email</mat-label>
|
||||||
|
<input matInput>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
<mat-form-field appearence="fill">
|
||||||
|
<mat-label>Type</mat-label>
|
||||||
|
<mat-select>
|
||||||
|
<mat-option value="Bug">Bug</mat-option>
|
||||||
|
<mat-option value="Recommendation">Recommendation</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field appearence="fill">
|
||||||
|
<mat-label>Message</mat-label>
|
||||||
|
<textarea matInput></textarea>
|
||||||
|
</mat-form-field>
|
||||||
|
<button mat-raised-button color="primary">Envoyer message</button>
|
||||||
|
</form>
|
@ -0,0 +1,21 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { ContactComponent } from './contact.component';
|
||||||
|
|
||||||
|
describe('ContactComponent', () => {
|
||||||
|
let component: ContactComponent;
|
||||||
|
let fixture: ComponentFixture<ContactComponent>;
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ContactComponent]
|
||||||
|
});
|
||||||
|
fixture = TestBed.createComponent(ContactComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,28 @@
|
|||||||
|
import { Component, NgModule } from '@angular/core';
|
||||||
|
|
||||||
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
import { MatInputModule } from '@angular/material/input';
|
||||||
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-contact',
|
||||||
|
templateUrl: './contact.component.html',
|
||||||
|
styleUrls: ['./contact.component.css']
|
||||||
|
})
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
FormsModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatSelectModule,
|
||||||
|
ReactiveFormsModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
|
||||||
|
export class ContactComponent {
|
||||||
|
}
|
Loading…
Reference in new issue