-
Notifications
You must be signed in to change notification settings - Fork 0
Refine "Coming Soon" card UI and update version to 0.13 Beta #53
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
Changes from all commits
e8fe6af
108dfe9
cda95ed
21db952
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 | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -100,18 +100,24 @@ body { | |||||||||||||||||||||||||||||||||||||
| -webkit-backdrop-filter: blur(20px); | ||||||||||||||||||||||||||||||||||||||
| border: 1px solid var(--border-default); | ||||||||||||||||||||||||||||||||||||||
| border-radius: 1.5rem; | ||||||||||||||||||||||||||||||||||||||
| padding: 3rem 4rem; | ||||||||||||||||||||||||||||||||||||||
| text-align: center; | ||||||||||||||||||||||||||||||||||||||
| box-shadow: | ||||||||||||||||||||||||||||||||||||||
| 0 25px 50px -12px rgba(0, 0, 0, 0.5), | ||||||||||||||||||||||||||||||||||||||
| 0 0 0 1px rgba(255, 255, 255, 0.05) inset; | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @media (max-width: 640px) { | ||||||||||||||||||||||||||||||||||||||
| /* Square: fluid size clamped between 280px and 480px */ | ||||||||||||||||||||||||||||||||||||||
| width: clamp(280px, min(80vw, 80vh), 480px); | ||||||||||||||||||||||||||||||||||||||
| height: clamp(280px, min(80vw, 80vh), 480px); | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+108
to
+109
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. issue: Card clamp values can exceed available viewport space on very small screens, causing potential overflow. Because
Comment on lines
+108
to
+109
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. Using a fixed Changing
Suggested change
Comment on lines
+108
to
+109
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. Suggestion: The new fixed minimum card size of Severity Level: Major
|
||||||||||||||||||||||||||||||||||||||
| /* Center content inside the square */ | ||||||||||||||||||||||||||||||||||||||
| display: flex; | ||||||||||||||||||||||||||||||||||||||
| flex-direction: column; | ||||||||||||||||||||||||||||||||||||||
| align-items: center; | ||||||||||||||||||||||||||||||||||||||
| justify-content: center; | ||||||||||||||||||||||||||||||||||||||
| padding: 2rem; | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+108
to
+115
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. Prevent localized text clipping in fixed-height card. Line 109 + Line 115 force a fixed square with no overflow strategy; longer translations can get clipped, and Proposed CSS adjustment .coming-soon-card {
position: relative;
background: var(--bg-card);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--border-default);
border-radius: 1.5rem;
text-align: center;
box-shadow:
0 25px 50px -12px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.05) inset;
- /* Square: fluid size clamped between 280px and 480px */
- width: clamp(280px, min(80vw, 80vh), 480px);
- height: clamp(280px, min(80vw, 80vh), 480px);
+ width: clamp(280px, min(80vw, 80vh), 480px);
+ aspect-ratio: 1 / 1;
+ min-height: 280px;
/* Center content inside the square */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
+ overflow: auto;
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| @media (max-width: 480px) { | ||||||||||||||||||||||||||||||||||||||
| .coming-soon-card { | ||||||||||||||||||||||||||||||||||||||
| padding: 2rem 1.5rem; | ||||||||||||||||||||||||||||||||||||||
| margin: 0 1rem; | ||||||||||||||||||||||||||||||||||||||
| border-radius: 1rem; | ||||||||||||||||||||||||||||||||||||||
| border-radius: 1.125rem; | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,7 +37,7 @@ | |||||||||||||
| {/* Main content - centered card */} | ||||||||||||||
| <main | ||||||||||||||
| id="main-content" | ||||||||||||||
| className="relative z-10 flex min-h-screen items-center justify-center px-4" | ||||||||||||||
| className="fixed inset-0 z-10 flex items-center justify-center p-4" | ||||||||||||||
|
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. 📝 Info: Fixed main element covers entire viewport — potential pointer-event implications The Was this helpful? React with 👍 or 👎 to provide feedback. 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. Using Using
Suggested change
|
||||||||||||||
| > | ||||||||||||||
|
Comment on lines
38
to
41
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. P2 | Confidence: Medium Changing the main wrapper from relative min-h-screen to fixed inset-0 removes the element from normal document flow. While this ensures the card stays centered regardless of other content, it creates a dependency on the correct z‑index stacking for sibling elements (the language selector and version label). The language selector (relative z-20) should remain visible due to higher z‑index, but the version label (likely absolutely positioned) may become incorrectly positioned if its positioning context was previously the main element. Without seeing the .version-label CSS, this is speculative. However, a more robust alternative would be to use a full‑viewport flex container with min-h-screen and overflow-hidden (if scrolling isn’t desired) to avoid unexpectedly breaking the layout of sibling elements. Consider reverting to a relative positioning strategy if the page ever gains additional content. Code Suggestion: |
||||||||||||||
| <div className="coming-soon-card"> | ||||||||||||||
| <h1 className="coming-soon-title">{t.title}</h1> | ||||||||||||||
|
|
@@ -46,8 +46,8 @@ | |||||||||||||
| </main> | ||||||||||||||
|
|
||||||||||||||
| {/* Version label - bottom right */} | ||||||||||||||
| <div className="version-label" aria-label="Version 0.1 Beta"> | ||||||||||||||
| Version: 0.1 Beta | ||||||||||||||
| <div className="version-label" aria-label="Version 0.13 Beta"> | ||||||||||||||
|
Check notice on line 49 in app/page.tsx
|
||||||||||||||
| Version: 0.13 Beta | ||||||||||||||
|
Comment on lines
+49
to
+50
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. 🚩 Version label inconsistency between package.json and displayed text The displayed version was changed to Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||||||||||
| </div> | ||||||||||||||
|
Comment on lines
+49
to
51
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. The
Suggested change
|
||||||||||||||
| </> | ||||||||||||||
| ); | ||||||||||||||
|
|
||||||||||||||
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.
[Contextual Comment]
This comment refers to code near real line 96. Anchored to nearest_changed(100) line 100.
P2 | Confidence: High
The card's minimum size (280x280px) combined with the main container's p-4 padding (16px each side) requires at least 312px of viewport width to avoid horizontal overflow. On devices with viewport width less than 312px (e.g., some older phones in portrait), the fixed main container (fixed inset-0) will not expand to accommodate the card, causing the card to overflow its parent and likely introducing a horizontal scrollbar or clipping. The previous implementation used relative positioning and min-h-screen, allowing the card to shrink responsively without a hard minimum width. Enforcing a minimum width in a fixed layout breaks graceful degradation on very small screens.
Code Suggestion: