Sakai is an application template for Angular and is distributed as a CLI project. Current versions is Angular v14 with PrimeNG v14. In case CLI is not installed already, use the command below to set it up.
-
-npm install -g @angular/cli
-
+
npm install -g @angular/cli
Once CLI is ready in your system, extract the contents of the zip file distribution, cd to the directory,
install the libraries from npm and then execute "ng serve" to run the application in your local environment.
-
-cd sakai
+
cd sakai
npm install
-ng serve
-
+ng serve
The application should run at http://localhost:4200/, you may now start with the development of your application.
Important CLI Commands
Following commands are derived from CLI.
-
-Run 'ng serve' for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
+
+
Run 'ng serve' for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
Run 'ng generate component component-name' to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.
@@ -32,8 +28,7 @@ Run 'ng test' to execute the unit tests via [Karma](https://karma-runner.github.
Run 'ng e2e' to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
-Run 'ng help' for more options.
-
+Run 'ng help' for more options.
Structure
Sakai consists of 3 main parts; the application layout, layout assets and PrimeNG component theme assets. Layout is placed inside the src/app/layout folder,
@@ -46,8 +41,7 @@ Run 'ng help' for more options.
initial scale is defined with the $scale at layout.scss. When default theme or scale is changed at their files initially, it is required to configure the layout service with the matching values
to avoid sync issues.
-
-import { Component, OnInit } from '@angular/core';
+
import { Component, OnInit } from '@angular/core';
import { PrimeNGConfig } from 'primeng/api';
import { LayoutService } from './layout/service/app.layout.service';
@@ -73,15 +67,13 @@ export class AppComponent implements OnInit {
};
}
-}
-
+}
Menu
Menu is a separate component defined in src/app/layout/app.menu.component.ts file and based on PrimeNG MenuModel API. In order to define the menuitems,
navigate to this file and define your own model as a nested structure.
-
-import { OnInit } from '@angular/core';
+
import { OnInit } from '@angular/core';
import { Component } from '@angular/core';
@Component({
@@ -107,8 +99,7 @@ export class AppMenuComponent implements OnInit {
//...
];
}
-}
-
+}
Integration with Existing Angular CLI Projects
Sakai structure is designed in a modular way so that it can easily be integrated with your existing application. We've created a short tutorial with details.
diff --git a/src/app/demo/components/documentation/documentation.component.scss b/src/app/demo/components/documentation/documentation.component.scss
new file mode 100644
index 0000000..b170178
--- /dev/null
+++ b/src/app/demo/components/documentation/documentation.component.scss
@@ -0,0 +1,16 @@
+@media screen and (max-width: 991px) {
+ .video-container {
+ position: relative;
+ width: 100%;
+ height: 0;
+ padding-bottom: 56.25%;
+
+ iframe {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/app/demo/components/documentation/documentation.component.ts b/src/app/demo/components/documentation/documentation.component.ts
index 4e166fb..b1125a1 100644
--- a/src/app/demo/components/documentation/documentation.component.ts
+++ b/src/app/demo/components/documentation/documentation.component.ts
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';
@Component({
- templateUrl: './documentation.component.html'
+ templateUrl: './documentation.component.html',
+ styleUrls: ['./documentation.component.scss']
})
export class DocumentationComponent { }
\ No newline at end of file
diff --git a/src/app/demo/components/documentation/documentation.module.ts b/src/app/demo/components/documentation/documentation.module.ts
index 917ee81..2e6bdc9 100644
--- a/src/app/demo/components/documentation/documentation.module.ts
+++ b/src/app/demo/components/documentation/documentation.module.ts
@@ -1,13 +1,11 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { DocumentationRoutingModule } from './documentation-routing.module';
-import { AppCodeModule } from '../code/code.component';
import { DocumentationComponent } from './documentation.component';
@NgModule({
imports: [
CommonModule,
- AppCodeModule,
DocumentationRoutingModule
],
declarations: [DocumentationComponent]
diff --git a/src/app/demo/components/primeblocks/blocks/blocks.component.ts b/src/app/demo/components/primeblocks/blocks/blocks.component.ts
index 3317d2c..06ae013 100644
--- a/src/app/demo/components/primeblocks/blocks/blocks.component.ts
+++ b/src/app/demo/components/primeblocks/blocks/blocks.component.ts
@@ -3,397 +3,405 @@ import { Component } from '@angular/core';
@Component({
templateUrl: './blocks.component.html'
})
-export class BlocksComponent {
+export class BlocksComponent{
block1: string = `
-
-
-
- Create the screens your
-
your visitors deserve to see
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
-
-
-
-
-
-
`;
+
+
+
+ Create the screens your
+
your visitors deserve to see
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+
+
+
+
+
+
+
+
+
`;
block2: string = `
-
-
- One Product,
- Many Solutions
+
+
+ One Product,
+ Many Solutions
+
+
Ac turpis egestas maecenas pharetra convallis posuere morbi leo urna.
+
+
+
+
+
+
Built for Developers
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-
Ac turpis egestas maecenas pharetra convallis posuere morbi leo urna.
-
-
-
-
-
-
Built for Developers
- Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
-
-
-
-
-
-
End-to-End Encryption
- Risus nec feugiat in fermentum posuere urna nec. Posuere sollicitudin aliquam ultrices sagittis.
-
-
-
-
-
-
Easy to Use
- Ornare suspendisse sed nisi lacus sed viverra tellus. Neque volutpat ac tincidunt vitae semper.
-
-
-
-
-
-
Fast & Global Support
- Fermentum et sollicitudin ac orci phasellus egestas tellus rutrum tellus.
-
-
-
-
-
-
Open Source
- Nec tincidunt praesent semper feugiat. Sed adipiscing diam donec adipiscing tristique risus nec feugiat.
-
-
-
-
-
-
Trusted Securitty
- Mattis rhoncus urna neque viverra justo nec ultrices. Id cursus metus aliquam eleifend.
-
+
+
+
+
+
End-to-End Encryption
+ Risus nec feugiat in fermentum posuere urna nec. Posuere sollicitudin aliquam ultrices sagittis.
-
`;
+
+
+
+
+
Easy to Use
+ Ornare suspendisse sed nisi lacus sed viverra tellus. Neque volutpat ac tincidunt vitae semper.
+
+
+
+
+
+
Fast & Global Support
+ Fermentum et sollicitudin ac orci phasellus egestas tellus rutrum tellus.
+
+
+
+
+
+
Open Source
+ Nec tincidunt praesent semper feugiat. Sed adipiscing diam donec adipiscing tristique risus nec feugiat.
+
+
+
+
+
+
Trusted Securitty
+ Mattis rhoncus urna neque viverra justo nec ultrices. Id cursus metus aliquam eleifend.
+
+
+
`;
block3: string = `
-
-
Pricing Plans
-
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Velit numquam eligendi quos.
-
-
-
-
-
Basic
-
Plan description
-
-
- $9
- per month
-
-
-
-
-
- Arcu vitae elementum
-
-
-
- Dui faucibus in ornare
-
-
-
- Morbi tincidunt augue
-
-
-
-
-
-
-
-
-
-
-
Premium
-
Plan description
-
-
- $29
- per month
-
-
-
-
-
- Arcu vitae elementum
-
-
-
- Dui faucibus in ornare
-
-
-
- Morbi tincidunt augue
-
-
-
- Duis ultricies lacus sed
-
-
-
-
-
-
-
-
-
-
-
Enterprise
-
Plan description
-
-
- $49
- per month
-
-
-
-
-
- Arcu vitae elementum
-
-
-
- Dui faucibus in ornare
-
-
-
- Morbi tincidunt augue
-
-
-
- Duis ultricies lacus sed
-
-
-
- Imperdiet proin
-
-
-
- Nisi scelerisque
-
-
-
-
+
+
Pricing Plans
+
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Velit numquam eligendi quos.
+
+
+
+
+
+
Basic
+
Plan description
+
+
+ $9
+ per month
+
+
+
+
+ Arcu vitae elementum
+
+
+
+ Dui faucibus in ornare
+
+
+
+ Morbi tincidunt augue
+
+
+
+
-
`;
+
+
+
+
+
Premium
+
Plan description
+
+
+ $29
+ per month
+
+
+
+
+
+ Arcu vitae elementum
+
+
+
+ Dui faucibus in ornare
+
+
+
+ Morbi tincidunt augue
+
+
+
+ Duis ultricies lacus sed
+
+
+
+
+
+
+
+
+
+
+
+
Enterprise
+
Plan description
+
+
+ $49
+ per month
+
+
+
+
+
+ Arcu vitae elementum
+
+
+
+ Dui faucibus in ornare
+
+
+
+ Morbi tincidunt augue
+
+
+
+ Duis ultricies lacus sed
+
+
+
+ Imperdiet proin
+
+
+
+ Nisi scelerisque
+
+
+
+
+
+
+
+
+
`;
block4: string = `
-
-
-
POWERED BY DISCORD
-
Join Our Design Community
-
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Velit numquam eligendi quos.
-
-
-
`;
+
+
+
POWERED BY DISCORD
+
Join Our Design Community
+
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Velit numquam eligendi quos.
+
+
+
`;
block5: string = `
-
-
🔥 Hot Deals!
-
- Libero voluptatum atque exercitationem praesentium provident odit.
-