Skip to content

Commit 501e353

Browse files
committed
Add README, CTA tracking tags, and section scroll reveals (animations respect reduced motion)
1 parent 3653d78 commit 501e353

File tree

3 files changed

+51
-8
lines changed

3 files changed

+51
-8
lines changed

README.md

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,35 @@
1-
<h1>Welcome!</h1>
2-
This repository is for the website of FIRST Tech Challenge Team #25710 Alpine Robotics!</h1>
1+
# Alpine Robotics Website
32

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.
54

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.

assets/js/main.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,21 @@ function initScrollReveals() {
5555
}
5656
});
5757
});
58+
59+
const headers = document.querySelectorAll(".section__header");
60+
headers.forEach((el) => {
61+
gsap.from(el, {
62+
opacity: 0,
63+
y: 24,
64+
duration: 0.8,
65+
ease: "power2.out",
66+
scrollTrigger: {
67+
trigger: el,
68+
start: "top 85%",
69+
toggleActions: "play none none reverse"
70+
}
71+
});
72+
});
5873
}
5974

6075
function initMountainParallax() {

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ <h1 class="hero__title">Alpine Robotics Team 25710</h1>
7070
<div class="moon"></div>
7171
</div>
7272
<div class="hero__actions">
73-
<a class="btn btn--primary" href="./pages/season.html">See the 2025–26 Season</a>
74-
<a class="btn btn--ghost" href="./pages/robots.html">View Previous Robots</a>
75-
<a class="btn btn--ghost" href="mailto:[email protected]">Email the team</a>
73+
<a class="btn btn--primary" href="./pages/season.html" data-gtag="cta-season">See the 2025–26 Season</a>
74+
<a class="btn btn--ghost" href="./pages/robots.html" data-gtag="cta-robots">View Previous Robots</a>
75+
<a class="btn btn--ghost" href="mailto:[email protected]" data-gtag="cta-email">Email the team</a>
7676
</div>
7777
<div class="metrics">
7878
<div class="metric">

0 commit comments

Comments
 (0)