|
1 | | -<h1>Welcome!</h1> |
2 | | -This repository is for the website of FIRST Tech Challenge Team #25710 Alpine Robotics!</h1> |
| 1 | +# Alpine Robotics Website |
3 | 2 |
|
4 | | -Here, you can find the source code that we used to build this site. |
| 3 | +Modern static site for FTC Team 25710 with light/dark theming, animated hero, and responsive galleries. |
5 | 4 |
|
6 | | -Contact us at [email protected] with any questions and concerns! |
7 | | -We are always looking for new ways to connect and collaborate, so we would be glad to talk to you! |
| 5 | +## Design tokens |
| 6 | +- Colors (light): `--color-bg-light: #f3f7f9`, `--card-bg: #fff`, `--text-primary: #0f2014`, `--text-secondary: #4a5b66`, accents `--color-accent: #22c55e`, `--color-blue: #00b4ff`. |
| 7 | +- Colors (dark, via `body[data-theme="dark"]`): background `--color-bg-light: #0b1014`, `--card-bg: #121b22`, `--text-primary-dark: #f9fafb`, `--text-secondary-dark: #cfd8e3`. |
| 8 | +- Typography: headings `Space Grotesk`, body `Inter`. |
| 9 | +- Radii/spacing: `--radius-lg: 24px`; spacing tokens `--space-2`…`--space-16`. |
| 10 | +- Motion: durations `--duration-fast/base/slow`, easing `--easing-smooth`, `--easing-bounce`. |
| 11 | + |
| 12 | +## Structure |
| 13 | +- Root pages: `index.html`, `404.html`. |
| 14 | +- Subpages in `pages/`: `about.html`, `season.html`, `robots.html`, `team.html`, `gallery.html`, `sponsors.html`. |
| 15 | +- Assets: `assets/css/main.css`, `assets/css/pages.css`, `assets/js/main.js`, `images/`. |
| 16 | + |
| 17 | +## Components & theming |
| 18 | +- Theme toggle switches `body[data-theme]` between light/dark (persists in `localStorage`). |
| 19 | +- Shared cards (`.card`, `.metric`, hero info card) inherit text colors via tokens, so new text stays readable in both themes. |
| 20 | +- Section headers (`.section__header`, `.section__title`, `.section__description`) stack vertically in light mode for clean alignment. |
| 21 | + |
| 22 | +## Animations |
| 23 | +- GSAP is used for hero entrance and scroll reveals (`assets/js/main.js`); respects `prefers-reduced-motion`. |
| 24 | + |
| 25 | +## Updating content |
| 26 | +- Hero stats/cta: edit `index.html` hero copy and metrics. |
| 27 | +- Pages: update text in `pages/*.html`; navigation is shared markup on each page. |
| 28 | +- Gallery: add images under `images/galleryImages/...` and insert new `<article class="gallery-card">` entries; include `loading="lazy" decoding="async" sizes="..."`. |
| 29 | + |
| 30 | +## Running checks |
| 31 | +- Open `index.html` in a browser; theme toggle should persist. |
| 32 | +- For performance/accessibility, run Lighthouse in Chrome and verify contrast in both themes. |
| 33 | + |
| 34 | +## Analytics |
| 35 | +- Google Tag Manager is included in page heads; CTA buttons carry `data-gtag` attributes to track key actions. |
0 commit comments