Umbau zu tailwind + mobile friendly: LandingPage & Footer
This commit is contained in:
@@ -9,15 +9,27 @@
|
||||
<div class="flex-auto p-fluid">
|
||||
@if (user){
|
||||
<div class="grid">
|
||||
<div class="mb-4 col-12 md:col-6">
|
||||
<div class="mb-4 col-12 md:col-4">
|
||||
<label for="state" class="block font-medium text-900 mb-2">E-mail (required)</label>
|
||||
<input id="state" type="text" [disabled]="true" pInputText [(ngModel)]="user.email" />
|
||||
<p class="font-italic text-xs line-height-1">You can only modify your email by contacting us at support@bizmatch.net</p>
|
||||
</div>
|
||||
<div class="mb-4 col-12 md:col-6">
|
||||
<div class="mb-4 col-12 md:col-4">
|
||||
<label for="customerType" class="block font-medium text-900 mb-2">Customer Type</label>
|
||||
<p-dropdown id="customerType" [options]="selectOptions?.customerTypes" [(ngModel)]="user.customerType" optionLabel="name" optionValue="value" placeholder="State" [style]="{ width: '100%' }"></p-dropdown>
|
||||
</div>
|
||||
<div class="mb-4 col-12 md:col-4">
|
||||
<label for="customerType" class="block font-medium text-900 mb-2">Professional Role</label>
|
||||
<p-dropdown
|
||||
id="customerSubType"
|
||||
[options]="selectOptions?.customerSubTypes"
|
||||
[(ngModel)]="user.customerSubType"
|
||||
optionLabel="name"
|
||||
optionValue="value"
|
||||
placeholder="State"
|
||||
[style]="{ width: '100%' }"
|
||||
></p-dropdown>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="mb-4 col-12 md:col-6">
|
||||
|
||||
@@ -75,7 +75,17 @@ export class AccountComponent {
|
||||
try {
|
||||
this.user = await this.userService.getByMail(email);
|
||||
} catch (e) {
|
||||
this.user = { email, firstname: keycloakUser.firstName, lastname: keycloakUser.lastName, areasServed: [], licensedIn: [], companyOverview: '', offeredServices: '', customerType: 'broker' };
|
||||
this.user = {
|
||||
email,
|
||||
firstname: keycloakUser.firstName,
|
||||
lastname: keycloakUser.lastName,
|
||||
areasServed: [],
|
||||
licensedIn: [],
|
||||
companyOverview: '',
|
||||
offeredServices: '',
|
||||
customerType: 'professional',
|
||||
customerSubType: 'broker',
|
||||
};
|
||||
this.user = await this.userService.save(this.user);
|
||||
}
|
||||
}
|
||||
@@ -122,7 +132,7 @@ export class AccountComponent {
|
||||
this.user.areasServed.splice(this.user.areasServed.length - 1, 1);
|
||||
}
|
||||
get isProfessional() {
|
||||
return this.user.customerType === 'broker' || this.user.customerType === 'professional';
|
||||
return this.user.customerType === 'professional';
|
||||
}
|
||||
select(event: any, type: 'company' | 'profile') {
|
||||
const imageUrl = URL.createObjectURL(event.files[0]);
|
||||
|
||||
Reference in New Issue
Block a user