With a live http server and a single file to update, you can get a simple-but-fast PBL demo running in minutes. Configure a selection of content (dashboards, looks, explores), change the logo, set the colors, tweak the HTML pages. If you leave the HTML as-is, all via a single config file.
(using VS Code with the Live Server extension makes it especially quick'n'easy)
Changes are required in the following places:
- On the Looker Instance
- Update images in img/
- Update the config.js file in root directory
- (Optional) Update the html content
NOTE: you can have multiple themes available for demonstration, by replicating the full directory structure. Examples of this are found in the themes
and confidential_example
directories.
The .gitignore
directory includes a confidential
directory for scenarios where it is important to have multiple, commercially confidential brand themes that must not be uploaded to the GitHub repo.
admin/embed - Set Embedded Domain Whitelist at https://<your_instance>.looker.com/admin/embed
admin/themes - Set Theme (I recommend getting rid of the grey background by quickly copying Looker theme to LookerWhite, and setting the background to #ffffff )
For simplest configuration, replace the images provided:
- favicon.ico (Standard browser tab favicon)
- image.png (340 x 150px. Used as a background image for sidebar)
- logo.png (Height approx 50px. Used for the center of the nav bar)
All icons refer to the Material Design icon set. Refer to https://materializecss.com/icons.html.
- Update baseURL and embedDomain
- Update content: {} with your chosen dashboards, looks and explores
- 'Main Dashboard' is required, and will be the dashboard shown by default
- Update sidebarItems: {}
- Use type: 'li' for a link to content
- Use content: '' to refer to one of the keys in your content object (also used for the display text)
- Use type: 'subheader' to create a subheader
- Use text: '' for the text you want displayed in the sidebar
- Use type: 'li' for a link to content
- Review the full config.js file, other things such as the page title can also be set
You can add more or remove pages using the navbarMenu
object in config.js
, but by default this template has four links to HTML content. These can be used to provide explanatory text or images. The default files are intended to support:
- A 'Themes' page that enables you to switch between different themes
- A 'Business Value' page to capture the end user business case for Looker
- A 'Time to Market' page to explain how Looker enables organisation to leverage their data analysts
- A 'Cloud Native' page to explain Looker's architecture and role within a larger digital or cloud strategy