Revision 58065
Added by Stefania Martziou about 4 years ago
landing.component.ts | ||
---|---|---|
1 |
import { Component, OnInit } from '@angular/core'; |
|
1 |
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
|
|
2 | 2 |
import { UsageStatsSummary } from '../../domain/typeScriptClasses'; |
3 | 3 |
import { AuthenticationService } from '../../services/authentication.service'; |
4 | 4 |
import { StatisticsService } from '../../services/statistics.service'; |
... | ... | |
6 | 6 |
|
7 | 7 |
@Component ({ |
8 | 8 |
selector: 'app-landing', |
9 |
templateUrl: './landing.component.html' |
|
9 |
templateUrl: './landing.component.html', |
|
10 |
styleUrls: ['../../../assets/css/landingpage/theme.css','../../../assets/css/landingpage/custom.css','../../../assets/css/landingpage/custom-provide.css'], |
|
10 | 11 |
}) |
11 | 12 |
|
12 | 13 |
export class LandingComponent implements OnInit { |
... | ... | |
24 | 25 |
|
25 | 26 |
const baseUrl = window.location.origin; |
26 | 27 |
this.inBeta = ( baseUrl.includes('beta') || baseUrl.includes('athenarc') ); |
28 |
|
|
29 |
let body = document.getElementsByTagName('body')[0]; |
|
30 |
body.classList.remove("dashboard"); |
|
31 |
body.classList.add("landing"); |
|
27 | 32 |
} |
28 | 33 |
|
29 | 34 |
|
Also available in: Unified diff
Initial commit for the new layout provided by the UX team