Repository navigation
Implement site header, public pages, and profile menu - #3
Merged
Merged
Conversation
The landing page was a hero and two buttons, with no header anywhere in the app and no way to reach the theme toggle unless you were signed in. Public pages now live under a (site) route group whose layout owns the backdrop, a sticky header and a footer. The header is auth-aware: Chat points at /login or /chat, and a signed-in reader gets "Open chat" rather than a Login button the proxy would only bounce back. Below md the nav collapses into a popover. New routes: About, Download (a deliberate empty state -- there is nothing to download yet), FAQ, Privacy and Terms. The landing page gains a feature grid the header's Features anchor scrolls to. Signed in, the sidebar's theme and log-out icons collapse into a three-dots menu holding About, Download and Settings. Settings carries the theme choice, a reduce-motion toggle, a message sound and log out. The dialog is a sibling of the popover rather than a child, or it would unmount before it could open. ProfileDialog can now be opened from Settings as well as its own trigger. Its draft moved into a child of DialogContent, which Radix unmounts on close, so every open starts from what is stored without an effect to synchronise it. Also: typing a message throws a few pixels off the caret, the reduce-motion toggle stops those along with the backdrop, and Popover finally gets the pixel treatment the other primitives already had.
The page was a hero and a four-card "What you get" grid: the most template-shaped block on the web, adjectives standing in for facts, and a chat app that never showed a single message. The card grid is gone. In its place the hero runs asymmetric -- copy left, a chat panel right that plays a canned conversation with the app's own bubbles, presence dot, typing indicator and attachment chip. Outgoing lines type themselves into the composer and throw pixels while they do it. Under reduced motion it renders the finished transcript rather than an empty box, since the demo is the section's content and must not be blank for anyone. Facts moved into a mono spec sheet, and a "what it isn't" block says plainly that nothing is end-to-end encrypted, there are no group chats and there is no native build. That matches what the FAQ and privacy pages already say. emitPixels moved to lib/pixel-burst so the composer and the demo share one implementation, and it now takes an HTMLElement so the demo's div can be measured the same way. Fixed along the way: a nav link carrying a hash now renders as a plain anchor. App Router client navigation put #features in the URL without scrolling to it, so Features from any other page landed at the top.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Site Header and Placeholder Lnading and Hero Page removed. Added typing effects to chat messages. Made the profile and chat window more interactive and customizable with settings options. Added Download Page as Empty State.