Skip to content

Commit

Permalink
feat: add watermark (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG authored Jan 3, 2025
1 parent 92e8f82 commit 47f62c1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<ocx-portal-page helpArticleId="PAGE_WELCOME_VIEW" permission="IMAGE#VIEW">
<!-- BACKGROUND (below the content) -->
<div class="absolute top-0 left-0 w-full h-full">
<!-- Default background if no image can be displayed -->
<div class="absolute surface-600 w-full h-full z-1"></div>

<!-- Bachground Image -->
<ng-container *ngFor="let image of imageData$ | async; let i = index">
<img
*ngIf="!loading && i === currentSlide"
class="absolute w-full h-full z-2"
class="w-full h-full"
@carouselAnimation
[src]="this.buildImageSrc(image)"
[alt]="'LANDING.PIC' | translate"
Expand All @@ -17,7 +14,7 @@
</ng-container>
</div>
<!-- CONTENT -->
<div class="content relative z-3 w-full flex flex-column row-gap-3 sm:px-2">
<div class="content relative z-1 w-full flex flex-column row-gap-3 sm:px-2">
<!-- INFO -->
<div class="m-0 sm:my-1 md:my-2 lg:my-3 flex flex-row flex-wrap justify-content-between text-white">
<div>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { ImageDataResponse, ImageInfo, ImagesInternalAPIService } from 'src/app/
@Component({
selector: 'app-welcome-overview',
templateUrl: './welcome-overview.component.html',
styleUrls: ['./welcome-overview.component.scss'],
animations: [
trigger('carouselAnimation', [
transition('void => *', [style({ opacity: 0 }), animate('300ms', style({ opacity: 1 }))]),
Expand Down
Binary file added src/assets/images/onecx_watermark_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@
@import 'node_modules/@onecx/portal-layout-styles/src/styles/shell/shell.scss';
@import 'node_modules/@onecx/portal-layout-styles/src/styles/primeng/theme-light.scss';
@import 'node_modules/@onecx/portal-integration-angular/assets/styles.scss';

.layout-content {
background-size: 500px !important;
background-color: var(--surface-600) !important;
background-image: url(assets/images/onecx_watermark_dark.png);
background-repeat: no-repeat;
background-position: center center;
}

0 comments on commit 47f62c1

Please sign in to comment.