-
Notifications
You must be signed in to change notification settings - Fork 439
made header better #1676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
made header better #1676
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -91,11 +91,11 @@ function Header() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <header className="sticky top-0 bg-white/80 backdrop-blur-sm border-b border-neutral-100 z-50"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <header className="sticky top-0 bg-white/80 backdrop-blur-sm border-b border-neutral-100 z-50 h-[69px]"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className={`${maxWidthClass} mx-auto px-4 laptop:px-0 border-x border-neutral-100 py-4`} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className={`${maxWidthClass} mx-auto px-4 laptop:px-0 border-x border-neutral-100 h-full`} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="flex items-center justify-between"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="flex items-center justify-between h-full"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div className="hidden sm:flex items-center gap-5"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -170,7 +170,7 @@ function Header() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/docs" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-sm text-neutral-600 hover:text-neutral-800 transition-all hover:underline decoration-dotted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="hidden md:block text-sm text-neutral-600 hover:text-neutral-800 transition-all hover:underline decoration-dotted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Docs | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -188,7 +188,7 @@ function Header() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Link | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| to="/enterprise" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="text-sm text-neutral-600 hover:text-neutral-800 transition-all hover:underline decoration-dotted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="hidden md:block text-sm text-neutral-600 hover:text-neutral-800 transition-all hover:underline decoration-dotted" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Enterprise | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </Link> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -235,16 +235,16 @@ function Header() { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| <a | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| href="/download/apple-silicon" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| download | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="px-3 h-8 flex items-center text-xs bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-full shadow-md active:scale-[98%] transition-all" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="px-4 h-8 flex items-center text-sm bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-full shadow-md active:scale-[98%] transition-all" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {platformCTA.label} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </a> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) : ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| onClick={handleCTAClick} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="px-3 h-8 flex items-center text-xs bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-full shadow-md active:scale-[98%] transition-all" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| className="px-4 h-8 flex items-center text-sm bg-linear-to-t from-stone-600 to-stone-500 text-white rounded-full shadow-md active:scale-[98%] transition-all" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {platform === "mobile" ? "Remind me" : platformCTA.label} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| {platformCTA.label} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </button> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+238
to
248
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainVerify label consistency between mobile header and mobile menu CTAs. The styling changes look good, but there's a potential label inconsistency:
If the user is on a mobile platform, they might see different labels for the same action in the header versus the mobile menu. Run the following script to check the implementation of If - {platform === "mobile"
- ? "Get reminder"
- : platformCTA.label}
+ {platformCTA.label}Or, if the conditional logic in the mobile menu is correct, revert the change at line 247: - {platformCTA.label}
+ {platform === "mobile"
+ ? "Get reminder"
+ : platformCTA.label}🏁 Script executed: #!/bin/bash
# Description: Find the implementation of getPlatformCTA to verify mobile platform label
# Search for getPlatformCTA function definition
ast-grep --pattern 'function getPlatformCTA($$$) {
$$$
}'
# Also search for export const/function getPlatformCTA
ast-grep --pattern 'export $_ getPlatformCTA = $$$'
# Search with rg as backup
rg -n "getPlatformCTA.*=.*\(" -A 20 --type=ts --type=tsxLength of output: 27 🏁 Script executed: #!/bin/bash
# Description: Find getPlatformCTA function implementation
# Search for getPlatformCTA across all files
rg -n "getPlatformCTA" -A 30 --type=ts
# If that doesn't work, try without type specification
rg -n "getPlatformCTA" -A 30Length of output: 21669 🏁 Script executed: #!/bin/bash
# Find lines 385-387 in route.tsx to see the mobile menu CTA
sed -n '380,390p' apps/web/src/routes/_view/route.tsx
# Also check if there's a similar pattern around those lines in index.tsx
sed -n '380,390p' apps/web/src/routes/_view/index.tsxLength of output: 896 Fix label inconsistency between mobile header and mobile menu CTAs. Mobile users will see different labels for the same action:
Apply the conditional logic to line 247 to match the mobile menu: - {platformCTA.label}
+ {platform === "mobile"
+ ? "Get reminder"
+ : platformCTA.label}Or standardize both to use 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| )} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix mobile menu positioning to match new header height.
The header height has been changed to
h-[69px], but the mobile menu overlay (line 265) and mobile menu (line 269) still usetop-[65px]. This creates a 4px misalignment where the mobile menu overlaps with the header.Apply this diff to fix the alignment:
Note: Also update
max-h-[calc(100vh-65px)]tomax-h-[calc(100vh-69px)]on line 269 for correct overflow calculation.🤖 Prompt for AI Agents