This repository contains the source code for the Computational Robotics Lab website.
To run the website locally:
npm run start
You may need to run the following if the website builds with errors:
export NODE_OPTIONS=--openssl-legacy-provider
To deploy the website:
npm run build && npm run deploy
The website uses a two-branch system:
main
: Contains the source code and development workmaster
: Contains the built/deployed website
The website is built using React and is organized as follows:
src/
├── components/ # React components for each page
│ ├── HomePage.js # Lab overview and welcome
│ ├── PeoplePage.js # Team members and alumni
│ ├── ResearchPage.js # Research projects
│ ├── PublicationsPage.js # Publications list
│ └── *.css # Corresponding stylesheets
├── App.js # Main app component and routing
└── App.css # Global styles
Edit src/components/PeoplePage.js
:
- Add/modify entries in the
people
array - People are organized by categories: faculty, PhD, visiting, etc.
- Each person entry includes: name, title, category, imageUrl, and optional bioLink
- Images should be added to the
public/
directory
Edit src/components/ResearchPage.js
:
- Research projects are organized in sections
- Each project includes a title, description, and optional images/links
Edit src/components/PublicationsPage.js
:
- Publications are stored in chronological order
- Each entry includes title, authors, conference/journal, and optional links
After deploying changes, always remember to push your source code updates to the main
branch to keep the repository in sync.
- Clone the repository
- Install dependencies:
npm install
- Start local development server:
npm run start
- Make your changes
- Deploy and push source code:
npm run build && npm run deploy git push origin main
- Images should be optimized for web (compressed, appropriate dimensions)
- Keep consistent formatting within each component
- Use the existing CSS classes for styling new elements
- Follow the established patterns for each section