This project is a React-based web application designed to help users navigate Rhode Island's healthcare system. It provides information about different types of healthcare services, mental health resources, and allows users to take notes.
- Login and Sign Up
- PDF Downloading
- Page Downloading
- User Feedback
- Website Walkthrough
- Note Taking
- Interactive Image Click Through
The project is a React application, requiring Node.js and npm for dependency management and script execution.
- Node.js
- Run
npm install
in the terminal
If the project interacts with Firebase services (authentication, Firestore, etc.), a Firebase account and project setup are necessary.
The project utilizes the PDF-lib library for PDF file operations.
- Installation is managed through the project's
package.json
using npm. Execute the following command:
npm install pdf-lib
Ensure all other project dependencies, including React libraries, are installed.
npm install
These prerequisites cover the essential technologies and services required for the project.
[Include step-by-step instructions on how to install your project locally.]
-
Clone the repository:
git clone https://github.com/[your-username]/[your-repo].git
-
Change into the project directory:
cd [your-repo]
-
Install dependencies:
npm install
-
Start the application:
npm start
-
Run the application:
npm start
-
Open your browser and navigate to http://localhost:3000/.
Accordion.tsx
is a React component designed to display an accordion UI. It facilitates the creation of collapsible sections, allowing users to toggle between different content sections. The file includes styles, state management, and functionality to handle the accordion's behavior.
Key features:
- Dynamic rendering of accordion sections.
- Clickable titles to expand/collapse content.
- Clean styling for a user-friendly interface.
PDFFiller.tsx
contains functions essential for working with PDF files. It provides functionalities for loading, filling, saving, and downloading PDFs. The file interacts with the pdf-lib
library to handle PDF manipulation. It can be easily integrated into a React application to handle dynamic PDF generation and modification.
Key functions:
loadPDF
: Loads a fillable PDF from a given link.fillPDF
: Fills the PDF with provided data.savePDF
: Saves the filled PDF.downloadPDF
: Downloads the filled PDF.
SubPage.tsx
is a React component that represents a sub-page within the application. It combines an accordion for organized content display, a sidebar for additional actions, and a PDF container for note-taking. This component is versatile and can be reused for different sub-pages with varying content and functionality.
Key features:
- Integration of the
Accordion
component. - Sidebar with buttons for taking notes, printing, and saving.
- PDF container for user note-taking with dynamic form fields.
- Responsive design for an optimal user experience.