feat(placeholder): Implement static site with optimized hero animation and rendering - #1
Merged
Conversation
Adds the full static site: Astro config, BaseLayout, Hero with WebGL wordmark animation, LogoMark, SiteFooter, global styles, brand assets (logo.svg, favicon.svg), robots.txt, CI workflow, CLAUDE.md guidance, and the offline font subsetting script with committed typeface.json.
Reworks `hero-animation.ts` into a faithful port of zadvorsky’s original effect: switches to BAS-style bezier math in the vertex shader, restores original timing/control-point ranges, adds per-vertex delay jitter, and implements GSAP-equivalent yoyo playback with drag scrubbing and timeScale easing. It also fixes glyph spacing by applying runtime tracking to account for bevel expansion, keeps the original fixed camera framing behavior, and adds pointer listener cleanup on destroy. `CLAUDE.md` was updated to document these constraints and the intent to keep the port exact.
Derive camera distance from the h1 fallback's computed font-size so the canvas and fallback render at the same type size. Reflow to two centred lines when the em size drops below MIN_SINGLE_LINE_EM_PX. Scale bezier arcs with uArcScale (z / REFERENCE_CAMERA_Z) so the debris field always fills the stage. Introduce REST_SCALE to account for the shader's 2× resting position offset in all camera-fit formulas.
Defer the hero animation until the page is loaded, visible, and idle, and lazy-load the animation module so the font and document win the initial network and main-thread budget. The wordmark build is now async and chunked to reduce blocking, avoids rebuilding the wrong line layout on first paint, and drops unused geometry attributes before upload. This also preloads the Archivo Latin font for a stable LCP, switches the hero wrapper to `<main>`, improves faint text contrast, and documents the hero boot/perf constraints in `CLAUDE.md`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request sets up the foundational infrastructure and documentation for the Alexis Technologies website project. It introduces a static Astro site with a custom toolchain, adds CI, and documents both the technical stack and project conventions. The most important changes are grouped below.
Project Setup and Configuration:
astro.config.mjsto configure Astro for static output, always inlining stylesheets, disabling CSS code splitting, and integrating the sitemap generator. ([astro.config.mjsR1-R18](https://github.com/Alexis-Technologies/website/pull/1/files#diff-e0f0c5adbe0b9ca5d0b57caf5cea33a8d88899fd02a43df1e9862b185f8a1e5fR1-R18)).nvmrcand enforces Node >=22.12.0 inpackage.jsonengines. ([[1]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-2c8effdf840690ccb88c7e21e56148978c6adb2c6926530c58ff0e47a9588b44R1),[[2]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R12-R52))package.jsonandpnpm-lock.yamlto include Astro, three.js, oxlint, oxfmt, and supporting libraries for 3D font generation and WebGL animation. ([[1]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R12-R52),[[2]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR17-R19),[[3]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbL27-R41),[[4]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR51-R53),[[5]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbL424-R437),[[6]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR994-R996),[[7]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR1021-R1032),[[8]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR1348-R1350),[[9]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR1534-R1536),[[10]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR1600-R1603),[[11]](https://github.com/Alexis-Technologies/website/pull/1/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR1793-R1795))Continuous Integration:
.github/workflows/ci.yml) to run installation, type-checking, linting, formatting, and build on every push tomainand on pull requests. ([.github/workflows/ci.ymlR1-R32](https://github.com/Alexis-Technologies/website/pull/1/files#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fR1-R32))Documentation and Conventions:
README.mdto detail the tech stack, setup instructions, scripts, animation details, asset handling, code style, and deployment process. ([README.mdL1-R141](https://github.com/Alexis-Technologies/website/pull/1/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L1-R141))CLAUDE.mdwith explicit guidance for working in the repo, including package manager, toolchain, animation details, asset handling, and commit conventions. ([CLAUDE.mdR1-R123](https://github.com/Alexis-Technologies/website/pull/1/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7R1-R123))Tooling and Formatting:
.oxfmtrc.jsonto ignore formatting for generated 3D font assets. ([.oxfmtrc.jsonL8-R8](https://github.com/Alexis-Technologies/website/pull/1/files#diff-ba6bdb5315b18041509bd0925c6394aa9250917b715ab46ca0a36231c566c8e5L8-R8))package.jsonfor linting, formatting, and regenerating the typeface asset; updates keywords for discoverability. ([package.jsonR12-R52](https://github.com/Alexis-Technologies/website/pull/1/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R12-R52))These changes establish a robust, well-documented foundation for the project, ensuring consistency in tooling, automation, and development practices.