- test
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenAIRE Usage Statistics Service
+
+ OpenAIRE’s Usage Statistic service contributes towards impact evaluation of usage activity in Open Access
+ Repositories.
+ This is realized by the generation of comparable, consistent, standards based usage statistics across
+ publishing platforms that
+ take into account different levels of scholarly information: the usage of data sources, the usage of
+ individual items in the
+ context of their resource type, the usage of individual web resources or files and the usage of resources
+ among different repositories.
+
+ Learn More
+
+
diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts
index 91e17bf..96dfa1d 100644
--- a/src/app/home/home.component.ts
+++ b/src/app/home/home.component.ts
@@ -1,9 +1,76 @@
import {Component} from "@angular/core";
+import {animate, state, style, transition, trigger} from "@angular/animations";
@Component({
selector: 'home',
- templateUrl: 'home.component.html'
+ templateUrl: 'home.component.html',
+ styleUrls: ['home.component.css'],
+ animations: [
+ trigger('1', [
+ state('1', style({
+ transform: 'translate(-50%, -50%)'
+ })),
+ state('2', style({
+ transform: 'translate(-50%, -250%)'
+ })),
+ state('3', style({
+ transform: 'translate(-50%, -450%)'
+ })),
+ transition('* => *', [
+ animate('1s')
+ ])
+ ]),
+ trigger('2', [
+ state('1', style({
+ transform: 'translate(-50%, 150%)'
+ })),
+ state('2', style({
+ transform: 'translate(-50%, -50%)'
+ })),
+ state('3', style({
+ transform: 'translate(-50%, -250%)'
+ })),
+ transition('* => *', [
+ animate('1s')
+ ])
+ ]),
+ trigger('3', [
+ state('1', style({
+ transform: 'translate(-50%, 250%)'
+ })),
+ state('2', style({
+ transform: 'translate(-50%, 150%)'
+ })),
+ state('3', style({
+ transform: 'translate(-50%, -50%)'
+ })),
+ transition('* => *', [
+ animate('1s')
+ ])
+ ])
+ ]
})
export class HomeComponent {
-
+
+ public animate: boolean = false;
+ public slide = 1;
+
+ onWheel(event) {
+ if (!this.animate) {
+ this.animate = true;
+ if (event.deltaY > 0 && (this.slide < 3)) {
+ this.slide++;
+ setTimeout(() => {
+ this.animate = false;
+ }, 1000);
+ } else if (event.deltaY < 0 && (this.slide !== 1)) {
+ this.slide--;
+ setTimeout(() => {
+ this.animate = false;
+ }, 1000);
+ } else {
+ this.animate = false;
+ }
+ }
+ }
}
diff --git a/src/app/home/home.module.ts b/src/app/home/home.module.ts
index 341d128..2c2fa0e 100644
--- a/src/app/home/home.module.ts
+++ b/src/app/home/home.module.ts
@@ -2,13 +2,15 @@ import {NgModule} from "@angular/core";
import {HomeComponent} from "./home.component";
import {CommonModule} from "@angular/common";
import {RouterModule} from "@angular/router";
+import {FullPageSliderModule} from "../openaireLibrary/utils/full-page-slider/full-page-slider.module";
@NgModule({
imports: [
CommonModule,
RouterModule.forChild([{
- path: '', component: HomeComponent
- }])
+ path: '', component: HomeComponent
+ }]),
+ FullPageSliderModule
],
declarations: [HomeComponent],
exports: [HomeComponent]
diff --git a/src/assets/usage-statistics-assets/home/1.svg b/src/assets/usage-statistics-assets/home/1.svg
new file mode 100644
index 0000000..6cb02a2
--- /dev/null
+++ b/src/assets/usage-statistics-assets/home/1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/styles.css b/src/styles.css
index 3cc3ba7..914291a 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -7,5 +7,16 @@
--portal-main-color: #e95420;
--portal-main-contrast: white;
--portal-dark-color: #a0462c;
-
+}
+
+body, html {
+ height: 100%;
+}
+
+body {
+ background-color: #F9FBFC;
+ color: #333333;
+ min-height: 100vh;
+ font-size: 16px;
+ line-height: 21px;
}