hochschule-darmstadt-UAS / ddk-artbrowser

Exploring the world of arts using open data
http://openartbrowser.org/
MIT License
1 stars 1 forks source link

59/colored background images on home page #69

Closed DPhuongHda closed 3 years ago

DPhuongHda commented 3 years ago

59 : using predefined images for home-background

Using 25 existing images (URL) which are loaded from a json config file. To be able to load data from a json file the parameters

"resolveJsonModule": true, 
"esModuleInterop": true

has been added inside tsconfig.json. Due to esModuleInterop": true the bodybuilder import had to be updated from import * as bodyBuilder from 'bodybuilder' to import bodyBuilder from 'bodybuilder'.

The background image is set as soon as the home-page loads.