Refactor code structure for improved readability and maintainability

This commit is contained in:
Marek Lesko
2025-10-21 14:42:11 +00:00
parent 61d52a5bd1
commit 213fd63860
13 changed files with 195 additions and 222 deletions

View File

@@ -4,38 +4,38 @@
<div class="row justify-content-center">
<div class="col-md-8">
<h1 class="banner-title text-center m-t-48">
Most powerful &
<span class="text-primary">developer friendly </span>
dashboard
<span class="text-primary">Digitálny asistent </span>
pre osoby s poruchou autistického spektra (PAS)
</h1>
</div>
</div>
<div class="row align-items-end justify-content-center">
@if(!isMobileView){
<div class="col-md-3 d-none d-lg-block cardPosition">
<!-- <div class="col-md-3 d-none d-lg-block cardPosition">
<img src="assets/images/front-pages/banner-top-left.svg" alt="banner-top-left"
class="img-fluid rounded-8 float-image w-100" />
</div>
</div> -->
}
<div class="col-md-6 m-b-10">
<div class="row m-t-24">
<div class="col-12 d-flex gap-20 align-items-center justify-content-center chipContainer">
<div class="social-chips flex-shrink-0">
<!-- <div class="social-chips flex-shrink-0">
<img src="assets/images/profile/user-2.jpg" width="40" alt="social" class="rounded-circle" />
<img src="assets/images/profile/user-3.jpg" width="40" alt="social" class="rounded-circle" />
<img src="assets/images/profile/user-4.jpg" width="40" alt="social" class="rounded-circle" />
</div>
</div> -->
<div class="f-s-16 f-w-500">
52,589+ developers & agencies using our templates
Škálovateľná platforma, ktorá prepája AI, IoT a VR/AR na podporu vzdelávania, sociálnej starostlivosti a
zdravotníckych služieb pre osoby s PAS
</div>
</div>
</div>
<div class="d-flex align-items-center justify-content-center m-t-24 gap-20 loginBtn">
<a mat-flat-button color="primary" [routerLink]="'/authentication/login'"><span
class="p-y-10">Login</span></a>
<div class="d-flex align-items-center" matRipple [matRippleCentered]="centered"
class="p-y-10">Prihlásenie</span></a>
<!-- <div class="d-flex align-items-center" matRipple [matRippleCentered]="centered"
[matRippleDisabled]="disabled" [matRippleUnbounded]="unbounded" [matRippleRadius]="radius"
[matRippleColor]="color" [ngClass]="{
'rounded bg-light-primary': showBackground,
@@ -47,9 +47,9 @@
<i-tabler class="icon-18 d-flex margin-auto" name="player-play"></i-tabler></button><span
class="textSee f-s-14 f-w-500 m-x-10">
See how it works</span>
</div>
</div> -->
</div>
<div class="d-flex align-items-center gap-20 justify-content-center framework m-t-32">
<!-- <div class="d-flex align-items-center gap-20 justify-content-center framework m-t-32">
@for (framework of frameworks; track framework.tooltip) {
<a href="javascript:void(0)"
class="rounded-8 m-b-0 bg-white icon-54 d-flex align-items-center justify-content-center"
@@ -57,22 +57,22 @@
<img [src]="framework.src" [alt]="framework.alt" class="" width="28" height="28" />
</a>
}
</div>
</div> -->
</div>
@if(!isMobileView){
<div class="col-md-3 d-none d-lg-block cardPositionTwo">
<!-- <div class="col-md-3 d-none d-lg-block cardPositionTwo">
<img src="assets/images/front-pages/banner-top-right.svg" alt="banner-top-right"
class="img-fluid rounded-8 float-image w-100" />
</div>
</div> -->
}
</div>
@if (!isMobileView) {
<div class="row d-none d-lg-block m-t-30">
<!-- <div class="row d-none d-lg-block m-t-30">
<div class="col-12">
<img src="assets/images/front-pages/bottom-part.svg" alt="bottom-part" class="w-100 img-fluid d-block" />
</div>
</div>
</div> -->
}
</div>
</div>
@@ -80,40 +80,38 @@
<div class="introducing-section dashboardCards spacing-top-bottom">
<div class="container card-container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="col-md-8">
<p class="text-center m-t-0">
Introducing Modernize's Light & Dark Skins, Exceptional Dashboards,
and Dynamic Pages - Stay Updated on What's New!
Projekt prináša komplexné digitálne riešenie na mieru, ktoré sa prispôsobuje potrebám jednotlivca a pomáha
odborníkom aj rodinám prijímať lepšie rozhodnutia. Platforma zvyšuje efektivitu služieb, podporuje inklúziu
a znižuje regionálne rozdiely v prístupe k podpore online a dostupne, s potenciálom medzinárodného
uplatnenia.
</p>
</div>
</div>
<h2 class="f-s-40 lh-lg section-sub-title text-center">Hlavné prínosy</h2>
<!--new-->
<!-- DESKTOP VIEW -->
@if (!isMobileView) {
<div class="row m-t-24">
<div class="row m-t-24 justify-content-center">
<!-- Column 1: Light & Dark + 12+ Designs -->
@for (topcard of topcards; track topcard.key) {
<div class="col-md-4">
<div>
@for (topcard of topcards; track topcard.title) {
@if (topcard.title === 'Light & Dark Color Schemes' || topcard.title.includes('12+')) {
<!-- @if (topcard.title === 'Light & Dark Color Schemes' || topcard.title.includes('12+')) { -->
<mat-card class="shadow-none text-center rounded-12 bg-light-{{ topcard.color }} card-box p-x-30 p-y-44">
<mat-card-content>
@if (topcard.title === 'Light & Dark Color Schemes') {
<img [src]="topcard.img" alt="icon" width="40" />
}
<h6 class="f-s-16 m-t-16">{{ topcard.title }}</h6>
<p class="f-s-14 m-t-16">{{ topcard.subtitle }}</p>
@if (topcard.title.includes('12+')) {
<img [src]="topcard.imgMain" alt="image" class="img-fluid w-100 m-t-16 m-b--48" />
}
</mat-card-content>
</mat-card>
}
}
<!-- } -->
</div>
</div>
}
<div class="col-md-4">
<div>
@for (topcard of topcards; track topcard.title)
@@ -203,7 +201,7 @@
<div class="tab-header">
<mat-divider></mat-divider>
<div class="container">
<mat-tab-group headerPosition="below" [(selectedIndex)]="selectedIndex" class="profileTabs">
<!-- <mat-tab-group headerPosition="below" [(selectedIndex)]="selectedIndex" class="profileTabs">
<mat-tab>
<ng-template mat-tab-label>
<tabler-icon name="user-circle" class="m-r-10 icon-24"></tabler-icon>
@@ -228,7 +226,7 @@
<span class="tab-label f-s-18 f-w-500">Workflows</span>
</ng-template>
</mat-tab>
</mat-tab-group>
</mat-tab-group> -->
<!-- Tab content shown BELOW the tab group -->
@@ -312,14 +310,14 @@
<div class="container">
<div class="d-flex align-items-center justify-content-center">
<div class="social-chips flex-shrink-0">
<img src="assets/images/profile/user-2.jpg" width="44" height="44" alt="social"
<!-- <img src="assets/images/profile/user-2.jpg" width="44" height="44" alt="social"
class="rounded-circle m-x-1" />
<img src="assets/images/profile/user-3.jpg" width="44" height="44" alt="social"
class="rounded-circle m-x-1" />
class="rounded-circle m-x-1" /> -->
</div>
<span class="text-white f-s-16 m-l-16">
Save valuable time and effort spent searching for a solution.
<a class="text-white f-w-600 m-l-8" href="#">Contact us now</a>
Chcete sa zapojiť do pilotu alebo spolupráce?
<a class="text-white f-w-600 m-l-8" [routerLink]="'/front-pages/contact'">Kontaktujte nás</a>
</span>
</div>
</div>