Repository navigation
Add public landing page and consolidate brand identity - #13
Merged
Merged
Conversation
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.
The domain root was the protected dashboard, so the product had no public face at all —
a first-time visitor was redirected straight to the login form. This adds one, and fixes
the brand inconsistencies that had to be settled before writing any public narrative.
No behaviour, data model or API change. README and
KNOWN_LIMITATIONS.mdare deliberatelyuntouched — they come after this, describing the finished public product.
1. Brand identity was inconsistent in three places
Not merely duplicated — actually in conflict:
AppSidebarbg-gradient-brandAuthdesktopbg-accent/15+ borderAuthmobilebg-accent/15, no shadowindex.htmlThree names, three taglines, and the logo changed appearance between the app and the login
screen. A landing page would have made it four.
src/components/BrandLockup.tsxnow owns the mark, the wordmark, the full name and the taglineas exported constants, so the identity is a one-line edit rather than a scavenger hunt. Canonical:
wordmark Athenaeum, full name Athenaeum AI, tagline Intelligent Learning System. The
gradient tile is now used everywhere — it was already dominant (sidebar, FAB, every primary CTA),
so the auth screen's muted variant was the outlier.
Dashboard's hero badge was a fourth hardcodedtagline and now reads
BRAND.taglinetoo.src/lib/landingCopy.tsholds all public copy as data, so claims are testable without rendering.2. Three correctness fixes found on the way
placeholder="Pratham Kashyap"in the signup form (Auth.tsx) — real personal data shippedas a UI default. Now
"Ada Lovelace".AuthcheckedisAuthenticatedwithout consultingisLoading, unlikeProtectedRoute. On refresh with a stored token the whole login form painted for a frame beforeredirecting. It now mirrors
ProtectedRoute's guard.NotFoundusedbg-muted/text-primary(ignoring the light/dark tokens entirely) and a raw<a href="/">that discarded the router and forced a full document reload. Now themed, with aclient-side
<Link>.3. Routing
/authstays public, and/is a sibling of it rather than somethingProtectedRoutespecial-cases.
Landinghandles its own redirect, checkingisLoadingfirst so a refresh cannotflash the marketing page at someone already signed in.
Cheap in practice: exactly one hardcoded
/link existed (NotFound), and E2E only ever navigatedto
/authand/tutor.Index.tsx→Dashboard.tsxso the filename matches the route.Auth's post-signup default moved from/to/dashboard— otherwise a new member would sign in,land on the marketing page and get bounced straight back out.
4. The page
Hero → five-stage loop → capabilities → under the hood → inside the workspace → verification →
what it does and does not do → FAQ → footer.
Structure borrowed from Libris; nothing visual. Athenaeum's own Aurora background, Lucide icons,
existing type scale, no emoji anywhere. Reuses
AuroraBackgroundas-is — it is already prop-less,aria-hiddenand honoursprefers-reduced-motion.Two deliberate choices:
a marketing page that outran that discipline would undo it. Each capability is paired with an
explicit limit — the model writes questions, it does not grade you; mastery is computed from
stored attempts, not predicted; badges come from recorded events, never inferred.
renamed between the landing page and the product.
5. SEO
index.htmlsaid "AI-powered quiz generation platform", describing the feature and none of the loop.Rewritten around the actual differentiator, plus
canonical,og:url,og:site_name. Addedpublic/sitemap.xmllisting only/— every other route redirects to/auth, so advertising itwould offer crawlers an empty page.
Also fixed:
twitter:cardwassummary_large_imagewith noog:imageanywhere, asking for alarge card the page cannot supply. Now
summary, to be restored when a real social image ships.Two bugs I introduced and caught
A nested
<a>. A string replace matched the header'sBrandLockupinstead of the footer's(12-space indentation is a substring of 14-space), producing
<a>inside<a>— invalid HTML thatbrowsers silently break. Nothing caught it;
container.querySelectorAll("a a")now asserts it staysat zero.
A stale public number.
PROOF.frontendwas written as 316, then this branch's own new testspushed the real count to 347 — so the page would have shipped a wrong figure in the very commit that
made it wrong. All four values are now verified against actual runs.
PR #8's tests caught this refactor too
branding.test.tsxandsidebarProportions.test.tspinned inline className strings that moved intoBrandLockup. Same coupling as last time, and it is the reason brand drift went unnoticed: thetests described the copies, not the identity. Rewritten to assert the single source, which is
strictly stronger — one place to be wrong instead of three.
Tests — 61 new
brandAndRouting.test.tsx(31) andlandingPage.test.tsx(30): single brand definition and nochrome file re-hardcoding it; both auth breakpoints share one component; no personal data as a
default; loading guards ordered before the redirect;
/public and/dashboardprotected; landingredirects a signed-in member; all five stages render with their backing reference; every capability
has a does/does-not pair; no model is ever named (same rule the dashboard follows); no emoji;
exactly one
h1; a skip link; accessible accordion; no nested anchors.Needs a human eye: the page has never been rendered visually, and
summarysocial cards shouldbe confirmed once the domain resolves.