Table of Contents generated with DocToc
The portal's home page consists of the following sections and features:
Introduction section to the portal that includes the following features:
See how to configure how to include image/video here: https://github.com/transport-data/tdc-data-portal/tree/main/docs/home-page#featured-asset
Click here for more detailed documentation on the search bar.
Allows the configuration of the element that appears to the right of the Hero, which can be an image, an mp4 video, or a YouTube embedded video.
How to configure: In the public
folder of the frontend project, the following properties should be set in the tdc-config.json
file to define the type and file path to be displayed:
{
"hero": {
"path": "/path/to/file",
"type": "image" | "mp4" | "youtube"
}
}
- Default image dimension: 540x405px
- Image format: jpg | png
This section shows the last 6 datasets added, sorted by metadata_modified desc
.
Click here for more detailed documentation on the testimonials section.
This section presents the last 5 frequently asked questions. Click here for more detailed documentation on the FAQ section.