Checkpoint

This commit is contained in:
aditya.chandel
2024-12-29 17:08:07 -07:00
parent 2b707977ac
commit 387d46004d
259 changed files with 167 additions and 532247 deletions
@@ -1,11 +0,0 @@
<div>
<p-dropdown
[options]="themes"
[(ngModel)]="currentTheme"
(onChange)="changeTheme($event)"
id="theme"
optionLabel="label"
optionValue="value"
placeholder="Choose a theme">
</p-dropdown>
</div>
@@ -1,58 +0,0 @@
import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import {DropdownChangeEvent, DropdownModule} from 'primeng/dropdown';
import {FormsModule} from '@angular/forms';
@Component({
selector: 'app-theme-switcher',
templateUrl: './theme-switcher.component.html',
standalone: true,
imports: [
FormsModule,
DropdownModule
],
styleUrl: './theme-switcher.component.scss'
})
export class ThemeSwitcherComponent implements OnInit {
themes: { value: string; label: string }[] = [];
currentTheme: string = '';
constructor(private http: HttpClient) {}
ngOnInit(): void {
this.http
.get<{ value: string; label: string }[]>('assets/themes/themes.json')
.subscribe(
(data) => {
this.themes = data;
const savedTheme = localStorage.getItem('selected-theme');
if (savedTheme) {
this.currentTheme = savedTheme;
this.applyTheme(savedTheme);
} else if (this.themes.length > 0) {
this.currentTheme = this.themes[0].value;
this.applyTheme(this.currentTheme);
}
},
(error) => {
console.error('Error loading themes:', error);
}
);
}
changeTheme(event: DropdownChangeEvent) {
const selectedTheme = event.value;
this.currentTheme = selectedTheme;
this.applyTheme(selectedTheme);
localStorage.setItem('selected-theme', selectedTheme);
}
private applyTheme(theme: string) {
const themeLink = document.getElementById('theme-link') as HTMLLinkElement;
if (themeLink) {
themeLink.href = `assets/layout/styles/theme/${theme}/theme.css`;
} else {
console.error('Theme link element not found!');
}
}
}
@@ -0,0 +1 @@
@import './layout/layout.scss';
@@ -0,0 +1,4 @@
@import './landing/_light';
@import './landing/_dark';
@import './main/_light';
@import './main/_dark';
@@ -0,0 +1,53 @@
.landing.layout-dark {
--home-highlight-color:#60a5fa;
--home-highlight-darker-color:#93c5fd;
--home-highlight-fore-color:#030712;
--home-bg:#111827;
--home-border-color:#424b57;
--home-primary-text-color:#ffffff;
--home-secondary-text-color:rgba(255,255,255,.6);
--home-card-shadow:0px 50px 100px rgba(0, 0, 0, 0.25);
--home-box-bg:#1f2937;
--home-linkbox-bg:rgba(255, 255, 255, .05);
--home-linkbox-border:1px solid rgba(255, 255, 255, .1);
--home-linkbox-text-color:#ffffff;
--home-linkbox-hover-bg:rgba(255, 255, 255, .1);
--home-blocks-bg:transparent;
--home-blocks-block-bg:#111827;
--home-blocks-block-shadow:0px 5px 10px 0px rgba(0, 0, 0, 0.25) , 0px 4px 25px rgba(0, 0, 0, 0.25);
--home-blocks-border-left:5px solid #1f2937;
--home-blocks-border-bottom:7px solid #1f2937;
--home-blocks-border:1px solid #424b57;
--home-blocks-sidebar-bg: var(--p-surface-900);
--home-blocks-list-bg: var(--p-surface-800);
--home-blocks-main-bg: var(--p-surface-950);
--home-blocks-main-border:1px solid #424b57;
--home-blocks-item-bg: var(--p-surface-900);
--home-blocks-image-bg: var(--p-surface-800);
--home-blocks-text-color: var(--p-surface-600);
--home-blocks-active-shadow:0px 30px 50px 0px rgba(0, 0, 0, 0.25);
--home-blocks-active-border-top:1px solid #424b57;
--home-blocks-active-border-right:1px solid #424b57;
--home-blocks-active-border-bottom:6px solid #424b57;
--home-blocks-active-border-left:4px solid #424b57;
--home-blocks-animation-shadow:0px 30px 50px 20px rgba(0, 0, 0, 0.25);
--home-blocks-tablebar-bg: var(--p-surface-700);
--home-blocks-bar-bg: var(--p-surface-700);
--home-blocks-bar-button-bg: var(--p-surface-700);
--home-blocks-circle-bg: var(--p-surface-800);
--home-templates-bg:transparent;
--home-templates-block-shadow:0px 5px 10px 0px rgba(0, 0, 0, 0.25);
--home-templates-block-border-left:5px solid #424b57;
--home-templates-block-border-bottom:7px solid #424b57;
--home-templates-line:rgba(255,255,255,.1);
--home-templates-block-hover-bg: var(--p-mask-background);
--home-templates-btn-bg:#1f2937;
--home-templates-btn-text-color:#ffffff;
--home-templates-btn-shadow:0px 10px 15px 0px rgba(0, 0, 0, 0.25);
--home-templates-btn-border-top:1px solid #424b57;
--home-templates-btn-border-right:1px solid #424b57;
--home-templates-btn-border-bottom:4px solid #424b57;
--home-templates-btn-border-left:3px solid #424b57;
--home-features-card-shadow: none;
--home-box-ring-color: color-mix(in srgb, var(--primary-color), transparent 70%);
}
@@ -0,0 +1,53 @@
.landing.layout-light {
--home-highlight-color:#3B82F6;
--home-highlight-darker-color:#2563eb;
--home-highlight-fore-color:#ffffff;
--home-bg:#F9FAFB;
--home-border-color:rgba(0,0,0,.1);
--home-primary-text-color:#030712;
--home-secondary-text-color:#6b7280;
--home-card-shadow:0px 7px 15px 0px rgba(0, 0, 0, 0.02), 0px 28px 28px 0px rgba(0, 0, 0, 0.02), 0px 63px 38px 0px rgba(0, 0, 0, 0.01);
--home-box-bg:#ffffff;
--home-linkbox-bg:#ffffff;
--home-linkbox-border:1px solid rgba(0,0,0,.1);
--home-linkbox-text-color:#030712;
--home-linkbox-hover-bg:#e5e7eb;
--home-blocks-bg:transparent;
--home-blocks-block-bg:#ffffff;
--home-blocks-block-shadow:-10px 4px 10px 0px rgba(0, 0, 0, .1), -10px 4px 25px rgba(0, 0, 0, .1);
--home-blocks-border-left:5px solid rgba(0,0,0,.1);
--home-blocks-border-bottom:7px solid rgba(0,0,0,.1);
--home-blocks-border:1px solid rgba(0,0,0,.1);
--home-blocks-sidebar-bg: var(--p-surface-100);
--home-blocks-list-bg: var(--p-surface-50);
--home-blocks-main-bg: var(--p-surface-0);
--home-blocks-main-border:1px solid rgba(0,0,0,.1);
--home-blocks-item-bg: var(--p-surface-100);
--home-blocks-image-bg: var(--p-surface-200);
--home-blocks-text-color: var(--p-surface-300);
--home-blocks-active-shadow:0px 30px 50px 0px rgba(0, 0, 0, .1);
--home-blocks-active-border-top:1px solid rgba(0,0,0,.07);
--home-blocks-active-border-right:1px solid rgba(0,0,0,.07);
--home-blocks-active-border-bottom:4px solid rgba(0,0,0,.07);
--home-blocks-active-border-left:4px solid rgba(0,0,0,.07);
--home-blocks-animation-shadow:0px 30px 50px 10px rgba(0, 0, 0, .2);
--home-blocks-tablebar-bg: var(--p-surface-300);
--home-blocks-bar-bg: var(--p-surface-300);
--home-blocks-bar-button-bg: var(--p-surface-0);
--home-blocks-circle-bg: var(--p-surface-300);
--home-templates-bg:transparent;
--home-templates-block-shadow:0px 5px 10px 0px rgba(0,0,0,.1);
--home-templates-block-border-left:5px solid #d1d5db;
--home-templates-block-border-bottom:7px solid #d1d5db;
--home-templates-line:rgba(0,0,0,.1);
--home-templates-block-hover-bg:rgba(0, 0, 0, 0.2);
--home-templates-btn-bg:rgba(0, 0, 0, 0.5);
--home-templates-btn-text-color:#ffffff;
--home-templates-btn-shadow:0px 10px 15px 0px rgba(0, 0, 0, 0.5);
--home-templates-btn-border-top:1px solid rgba(0,0,0,.1);
--home-templates-btn-border-right:1px solid rgba(0,0,0,.1);
--home-templates-btn-border-bottom:4px solid rgba(0,0,0,.1);
--home-templates-btn-border-left:3px solid rgba(0,0,0,.1);
--home-features-card-shadow: 0px 7px 15px 0px rgba(0, 0, 0, 0.02), 0px 28px 28px 0px rgba(0, 0, 0, 0.02), 0px 63px 38px 0px rgba(0, 0, 0, 0.01);
--home-box-ring-color: var(--p-primary-200);
}
@@ -0,0 +1,28 @@
:root[class="p-dark"] {
--primary-text-color:var(--p-primary-400);
--primary-color: var(--p-primary-color);
--primary-contrast-color:var(--p-primary-contrast-color);
--primary-hover-color: var(--p-primary-hover-color);
--text-color: var(--p-surface-0);
--text-secondary-color: var(--p-surface-400);
--glow-image: url(https://www.primefaces.org/cdn/primevue/images/layout/pattern.png), radial-gradient(50% 50% at center -25px, var(--p-primary-color) 0%, #000000 100%);
--glow-blend: hard-light, color-dodge;
--topbar-sticky-background:rgba(0,0,0,.3);
--mobile-menu-background: rgba(0,0,0,.3);
--card-border: 1px solid transparent;
--card-background: var(--p-surface-900);
--border-color: var(--p-surface-700);
--ground-background: var(--p-surface-950);
--overlay-background: var(--p-surface-900);
--hover-background: var(--p-surface-800);
--code-background: var(--p-surface-900);
--high-contrast-text-color: var(--p-surface-0);
--hover-border-color: var(--p-surface-500);
--mark-background: var(--p-surface-700);
--mark-text-color: var(--p-surface-200);
--selection-background: var(--p-surface-700);
--selection-text-color: var(--p-surface-0);
--code-button-text-color: var(--p-surface-300);
--docsearch-mask-background: var(--p-mask-background);
--logo-color: var(--text-secondary-color);
}
@@ -0,0 +1,28 @@
:root {
--primary-text-color:var(--p-primary-600);
--primary-color: var(--p-primary-color);
--primary-contrast-color:var(--p-primary-contrast-color);
--primary-hover-color: var(--p-primary-hover-color);
--text-color: var(--p-surface-700);
--text-secondary-color: var(--p-surface-500);
--glow-image: url(https://www.primefaces.org/cdn/primevue/images/layout/pattern.png);
--glow-blend: hard-light, multiply;
--topbar-sticky-background:rgba(255,255,255,.7);
--mobile-menu-background: #ffffff;
--card-border: 1px solid var(--p-surface-200);
--card-background: #ffffff;
--border-color: var(--p-surface-200);
--ground-background: var(--p-surface-50);
--overlay-background: #ffffff;
--hover-background: var(--p-surface-100);
--code-background: var(--p-surface-950);
--high-contrast-text-color: var(--p-surface-900);
--hover-border-color: var(--p-surface-400);
--mark-background: var(--p-surface-200);
--mark-text-color: var(--p-surface-700);
--selection-background: var(--p-surface-200);
--selection-text-color: var(--p-surface-950);
--code-button-text-color: var(--p-surface-300);
--docsearch-mask-background: var(--p-mask-background);
--logo-color: var(--text-secondary-color);
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More