Website
Website for the University of Bath's Biodevices without Border group. Will contain information about the team and their work. Coded in React and TypeScript.
Bath-Biodevices-Without-Borders
main
public
Bath-Biodevices-Without-Borders
main
public
Website for the University of Bath's Biodevices without Border group. Will contain information about the team and their work. Coded in React and TypeScript.
2
240
3
2
Website for Bath Biodevices, a vertically integrated project at the University of Bath.
Anything pushed to the main branch is built and published automatically by GitHub Pages (see .github/workflows/deploy.yml). It goes live at bathbiodevices.com a few minutes later.
| To change… | Edit this file |
|---|---|
| Team members (course, year, LinkedIn, Indeed, photo) | src/content/team.json (photos go in public/team/) |
| Homepage text | index.html |
| Gallery photos (Oasis, Saline Supernova, Microfluidics, Membrane Test Rig, Nitrate Sensing, Biohackathon) | src/content/gallery.json (photos go in public/gallery/) |
| Legal pages | privacy.html, cookies.html, terms.html, accessibility.html |
| Header and footer (all pages) | src/partials/header.html, src/partials/footer.html |
| Colours and fonts | src/styles/base.css |
| Team dashboard (rig data) | dashboard.html, src/dashboard.js, src/styles/dashboard.css |
Only publish photos and profile links that each person has agreed to.
npm install, then npm run dev, and open the address it prints.npm run build makes the finished site in build/./dashboard.html is a team-only page. Team members sign in with an email and password, and the page reads membrane test rig data from Supabase (tables samples, measurements and sensor_readings) and draws charts with Chart.js. It updates live while a test runs.
src/scripts/supabase-config.js. The URL and publishable key are meant to be public. Never commit the secret (service-role) key.src/partials/head_dashboard.html). Its Content-Security-Policy also allows the Supabase project. If the Supabase project changes, update it there too.Built with Vite and plain JavaScript. No trackers, cookies or third-party scripts. The team dashboard talks to Supabase only after a team member signs in. Please keep it that way, or update the privacy and cookie pages (and add a consent banner) if that changes.