diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html index ffc3381ad..8cda454e8 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.html +++ b/src-ui/src/app/components/app-frame/app-frame.component.html @@ -10,16 +10,12 @@ tourAnchor="tour.intro"> @if (!hasCustomBranding) { - - - + } @else { @if (customAppLogo) { } @else { - - - + }
{{ appTitle }} diff --git a/src-ui/src/app/components/app-frame/app-frame.component.ts b/src-ui/src/app/components/app-frame/app-frame.component.ts index c5fc93e61..2548c217b 100644 --- a/src-ui/src/app/components/app-frame/app-frame.component.ts +++ b/src-ui/src/app/components/app-frame/app-frame.component.ts @@ -45,6 +45,7 @@ import { TasksService } from 'src/app/services/tasks.service' import { ToastService } from 'src/app/services/toast.service' import { environment } from 'src/environments/environment' import { ChatComponent } from '../chat/chat/chat.component' +import { BrandMarkComponent } from '../common/logo/brand-mark/brand-mark.component' import { LogoComponent } from '../common/logo/logo.component' import { ProfileEditDialogComponent } from '../common/profile-edit-dialog/profile-edit-dialog.component' import { DocumentDetailComponent } from '../document-detail/document-detail.component' @@ -61,6 +62,7 @@ const SCROLL_THRESHOLD = 16 imports: [ GlobalSearchComponent, LogoComponent, + BrandMarkComponent, DocumentTitlePipe, IfPermissionsDirective, ToastsDropdownComponent, diff --git a/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.html b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.html new file mode 100644 index 000000000..35540bef2 --- /dev/null +++ b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.html @@ -0,0 +1 @@ + diff --git a/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.ts b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.ts new file mode 100644 index 000000000..347582b61 --- /dev/null +++ b/src-ui/src/app/components/common/logo/brand-mark/brand-mark.component.ts @@ -0,0 +1,16 @@ +import { Component } from '@angular/core' + +/** + * The paperless-ngx leaf mark, applied as an attribute on an + */ +@Component({ + selector: 'svg[pngx-brand-mark]', + templateUrl: './brand-mark.component.html', + host: { + '[attr.xmlns]': "'http://www.w3.org/2000/svg'", + '[attr.viewBox]': "'0 0 1000 1000'", + '[attr.fill]': "'currentColor'", + '[attr.aria-hidden]': "'true'", + }, +}) +export class BrandMarkComponent {} diff --git a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.html b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.html index 56a2beff8..b8eabc4d9 100644 --- a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.html +++ b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.html @@ -1,11 +1,7 @@ - +
- +

Paperless-ngx is running! 🎉

diff --git a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.ts b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.ts index 7bcc160f3..834e729c7 100644 --- a/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.ts +++ b/src-ui/src/app/components/dashboard/widgets/welcome-widget/welcome-widget.component.ts @@ -1,12 +1,13 @@ import { Component, EventEmitter, Output, inject } from '@angular/core' import { NgbAlertModule } from '@ng-bootstrap/ng-bootstrap' import { TourService } from 'ngx-ui-tour-ng-bootstrap' +import { BrandMarkComponent } from '../../../common/logo/brand-mark/brand-mark.component' @Component({ selector: 'pngx-welcome-widget', templateUrl: './welcome-widget.component.html', styleUrls: ['./welcome-widget.component.scss'], - imports: [NgbAlertModule], + imports: [NgbAlertModule, BrandMarkComponent], }) export class WelcomeWidgetComponent { readonly tourService = inject(TourService)