Commit 6ea0a71f authored by Christopher Fullarton's avatar Christopher Fullarton

Adds claimSrc to the environment. Exchanges logo and claim for the westermann build

parent d43d330b
Pipeline #33429 passed with stages
in 13 minutes and 13 seconds
......@@ -2,6 +2,7 @@ import { LoginMechanism } from '../enums/enums';
import { QuizTheme } from '../enums/QuizTheme';
export interface IEnvironment {
claimSrc?: string;
production: boolean;
ssrEndpoint: string;
serverEndpoint: string;
......
......@@ -200,5 +200,12 @@
</a>
</p>
</div>
<div *ngIf="claimSrc"
class="col-12 mt-5 justify-content-center d-flex">
<img [src]="claimSrc"
alt="claim"
style="width: 250px"/>
</div>
</ng-container>
</div>
......@@ -55,6 +55,7 @@ export class HomeComponent implements OnInit, OnDestroy {
public canUsePublicQuizzes: boolean = !environment.requireLoginToCreateQuiz;
public showJoinableQuizzes: boolean = environment.showJoinableQuizzes;
public isQueryingQuizState: boolean;
public readonly claimSrc = environment.claimSrc;
private _serverPassword = '';
......
......@@ -20,4 +20,4 @@
"1280x720",
"1024x576"
]
}
\ No newline at end of file
}
......@@ -2,20 +2,20 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="60px" height="60px" viewBox="0 0 370.000000 370.000000"
width="43.000000pt" height="43.000000pt" viewBox="0 0 43.000000 43.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,370.000000) scale(0.100000,-0.100000)"
fill="#d5001c" stroke="none">
<path d="M1656 3690 c-468 -54 -891 -274 -1197 -623 -383 -437 -536 -1020
-419 -1595 180 -879 990 -1510 1886 -1468 380 17 729 141 1031 364 112 83 289
261 375 375 173 233 295 520 345 812 23 138 23 452 0 590 -102 598 -481 1107
-1022 1370 -127 62 -340 131 -480 155 -137 24 -397 34 -519 20z m-502 -1302
c10 -360 46 -942 60 -955 3 -3 19 31 320 702 l225 500 201 3 c155 2 201 0 205
-10 4 -13 68 -858 81 -1076 4 -62 10 -114 13 -116 12 -8 307 653 439 987 l87
217 197 0 c109 0 198 -2 198 -4 0 -3 -34 -85 -76 -183 -159 -374 -345 -758
-577 -1195 l-132 -247 -227 -1 c-126 0 -228 3 -228 6 0 4 -18 234 -40 513 -22
278 -41 524 -42 546 l-4 40 -37 -80 c-51 -108 -61 -130 -276 -605 l-188 -415
-231 -3 c-213 -2 -231 -1 -236 15 -7 23 -50 353 -70 538 -35 314 -66 774 -66
978 l0 97 199 0 198 0 7 -252z"/>
<metadata>
Created by potrace 1.15, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,43.000000) scale(0.100000,-0.100000)"
fill="#ed1c24" stroke="none">
<path d="M140 419 c-79 -31 -137 -117 -138 -205 0 -67 38 -138 96 -179 39 -27
52 -30 117 -30 65 0 78 3 117 30 127 89 126 274 -1 359 -36 24 -57 30 -105 32
-34 1 -72 -2 -86 -7z m0 -136 c-1 -16 -1 -46 0 -68 1 -38 2 -39 12 -15 6 14
12 27 12 30 1 3 10 22 20 43 16 31 23 38 45 35 27 -3 28 -4 30 -93 l1 -40 14
30 c8 17 22 47 31 68 13 28 23 37 41 37 13 0 24 -2 24 -5 0 -3 -21 -48 -46
-100 -42 -88 -48 -95 -75 -95 -26 0 -29 3 -30 33 0 17 -4 40 -8 50 -5 15 -11
9 -31 -32 -20 -44 -27 -51 -52 -51 -15 0 -29 6 -30 13 -10 85 -16 176 -10 182
3 3 16 5 29 5 20 0 24 -5 23 -27z"/>
</g>
</svg>
......@@ -8,8 +8,8 @@ const mf = require('messageformat');
const argv = minimist(process.argv.slice(2));
const languages = ['en', 'de', 'fr', 'it', 'es'];
const themeData = require('../themeData');
const imageDerivates = require('../imageDerivates');
const themeData = require('./../themeData');
const imageDerivates = require('./../imageDerivates');
class GenerateMetaNodes {
......@@ -56,15 +56,8 @@ class GenerateMetaNodes {
tagName: 'link',
className: 'theme-meta-data',
rel: 'apple-touch-icon',
id: 'link-apple-touch-default',
href: `${basePath}/logo_s32x32.png`,
type: 'image/png',
}, {
tagName: 'link',
className: 'theme-meta-data',
rel: 'apple-touch-icon-precomposed',
id: 'link-apple-touch-precomposed-default',
href: `${basePath}/logo_s32x32.png`,
id: 'link-apple-touch',
href: `${basePath}/logo_s144x144.png`,
type: 'image/png',
}, {
tagName: 'meta',
......@@ -105,14 +98,6 @@ class GenerateMetaNodes {
id: `link-apple-touch-${derivate}`,
sizes: derivate,
type: 'image/png',
}, {
tagName: 'link',
className: 'theme-meta-data',
rel: 'apple-touch-icon-precomposed',
href: `${basePath}/logo_s${derivate}.png`,
id: `link-apple-touch-precomposed-${derivate}`,
sizes: derivate,
type: 'image/png',
});
});
......
......@@ -240,7 +240,7 @@
},
"exportedAtRowStyle": {
"fg": "#FFFFFF",
"bg": "#00796B"
"bg": "transparent"
},
"statisticsRowStyle": {
"fg": "#000000",
......
......@@ -34,6 +34,7 @@ export const environment: IEnvironment = {
availableQuizThemes: [QuizTheme.WestermannBlue, QuizTheme.Material, QuizTheme.Blackbeauty],
defaultTheme: QuizTheme.WestermannBlue,
darkModeCheckEnabled: true,
claimSrc: '/assets/images/external/westermann-claim.png',
};
export enum DEVICE_TYPES {
......
......@@ -29,6 +29,7 @@ export const environment: IEnvironment = {
availableQuizThemes: [QuizTheme.WestermannBlue, QuizTheme.Blackbeauty],
defaultTheme: QuizTheme.WestermannBlue,
darkModeCheckEnabled: false,
claimSrc: '/assets/images/external/westermann-claim.png',
};
export enum DEVICE_TYPES {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment