Modify hello page based on app flavor
This commit is contained in:
parent
a7f516d8ba
commit
ce506bf471
File diff suppressed because one or more lines are too long
|
|
@ -16,6 +16,7 @@ const defaultFlavorValues = {
|
||||||
showObjectivesTitle: true,
|
showObjectivesTitle: true,
|
||||||
showInstrumentFilterSidebar: true,
|
showInstrumentFilterSidebar: true,
|
||||||
showPortfolio: true,
|
showPortfolio: true,
|
||||||
|
showEHB: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
let flavorValues = Object.assign({}, defaultFlavorValues);
|
let flavorValues = Object.assign({}, defaultFlavorValues);
|
||||||
|
|
@ -39,6 +40,7 @@ if (process.env.VUE_APP_FLAVOR === 'my-kv') {
|
||||||
showObjectivesTitle: false,
|
showObjectivesTitle: false,
|
||||||
showInstrumentFilterSidebar: false,
|
showInstrumentFilterSidebar: false,
|
||||||
showPortfolio: true,
|
showPortfolio: true,
|
||||||
|
showEHB: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,17 +10,20 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import flavorValues from '@/helpers/app-flavor';
|
||||||
const ContentsIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/ContentsIllustration');
|
const ContentsIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/ContentsIllustration');
|
||||||
const PortfolioIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/PortfolioIllustration');
|
const PortfolioIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/PortfolioIllustration');
|
||||||
const RoomsIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/RoomsIllustration');
|
const RoomsIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/RoomsIllustration');
|
||||||
const HelloIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/HelloIllustration');
|
const HelloIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/HelloIllustration');
|
||||||
|
const HelloMyKVIllustration = () => import(/* webpackChunkName: "illustrations" */'@/components/illustrations/HelloMyKVIllustration');
|
||||||
|
const Hello = flavorValues.appFlavor === 'my-kv' ? HelloMyKVIllustration : HelloIllustration;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
contents: ContentsIllustration,
|
contents: ContentsIllustration,
|
||||||
portfolio: PortfolioIllustration,
|
portfolio: PortfolioIllustration,
|
||||||
rooms: RoomsIllustration,
|
rooms: RoomsIllustration,
|
||||||
hello: HelloIllustration
|
hello: Hello
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,19 @@
|
||||||
<a
|
<a
|
||||||
href="https://www.ehb.swiss/"
|
href="https://www.ehb.swiss/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
v-if="$flavor.showEHB"
|
||||||
>
|
>
|
||||||
<ehb-logo class="logos__logo" />
|
<ehb-logo class="logos__logo" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<p class="about__text">
|
<p class="about__text">
|
||||||
{{ $flavor.textAppName }} ist ein Angebot des hep Verlags in
|
<template v-if="$flavor.showEHB">
|
||||||
Zusammenarbeit mit der Eidgenössischen Hochschule für Berufsbildung (EHB).
|
{{ $flavor.textAppName }} ist ein Angebot des hep Verlags in
|
||||||
|
Zusammenarbeit mit der Eidgenössischen Hochschule für Berufsbildung (EHB).
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
{{ $flavor.textAppName }} ist ein Angebot des hep Verlags.
|
||||||
|
</template>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<logo class="logo" />
|
<logo class="logo" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue