Add banner on register page too

This commit is contained in:
Chocobozzz 2024-02-20 14:43:49 +01:00
parent 93f9677463
commit 4d63e6f577
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 5 additions and 3 deletions

View File

@ -107,7 +107,7 @@
</div>
<div #instanceInformation class="instance-information">
<my-instance-banner class="rounded"></my-instance-banner>
<my-instance-banner rounded="true"></my-instance-banner>
<my-instance-about-accordion
#instanceAboutAccordion

View File

@ -1,3 +1,5 @@
<my-instance-banner class="d-block mb-3" rounded="true"></my-instance-banner>
<div class="why">
<h3 i18n>Why creating an account?</h3>

View File

@ -1,3 +1,3 @@
<div class="banner" [ngClass]="{ rounded }">
<div *ngIf="instanceBannerUrl" class="banner" [ngClass]="{ rounded }">
<img class="rounded" [src]="instanceBannerUrl" alt="Instance banner">
</div>

View File

@ -6,7 +6,7 @@ import { InstanceService } from './instance.service'
templateUrl: './instance-banner.component.html'
})
export class InstanceBannerComponent implements OnInit {
@Input({ transform: booleanAttribute }) rounded: boolean
@Input({ transform: booleanAttribute }) rounded = false
instanceBannerUrl: string