1. Pages
This document describes the different pages and their structure in the pregnancy application.
1.1. Landing Page
The landing page is the first page that users see when they access the app. It consists of three main sections:
- Five Cards
By clicking a card, users can navigate to the corresponding page. The title, background, icon, and content are stored in
landingPageData.json. Adding or updating this file will automatically update the cards on the landing page. Below is how the card data is structured,
- Menu
Located in the upper left corner, there is a menu button that includes all main topics and their sub-topics. Menu items are rendered based on the
topics.jsonfile. Below is how the menu data is rendered by the topic.json file.
- Left Section
Contains the title and description of the app, the data also defined in the
landingPageData.jsonfile.
1.2. Main Application
The main application is divided into three parts:
- Left Side & Bottom
The left side of the page contains the menu and introduction, rendered based on the
topics.jsonfile. The bottom of the page contains the main navigation, rendered based on thetopics.jsonfile.All the data for these sections are referred to the
topics.jsonfile like the following:
- Right Side
The right side displays the main content of the page, rendered based on the
pageDatafolder. Each page (at the sub-topic level) has its own data file and is rendered using theContentPane.vuefile. For more information, please refer to the implementation_structure/06_pages:Pages Structure document.
1.2.1. Core Features
The application includes the following core features:
Pregnancy Journey
Ultrasound
Care Pathways
Pregnancy Complications
Support
1.2.2. Data Configuration
The data are stored under frontend/assets/data folder, please refer to the implementation_structure/02_assets:Data Assets document for more details about the data structure and configuration.
1.2.3. Content Rendering
The content redering is data-driven, please refer to the implementation_structure/06_pages:Pages Structure document for more details about the content rendering.
1.3. About Us Page
The About Us page provides information about the research team behind the pregnancy application.
The page data is stored in frontend/pages/about/aboutUs.json with the following structure:
title: Main page title
heroimage: Background image for the hero section
description: Team description text
team.photos[]: Array of team photos with src and alt attributes
contributors: Object containing title, description, and members array
contact: Object containing title, description, email, institution, and address
The image below shows the data structure of the about us page: