Skip to content

Enhance NotFound page with custom SVG background and improved layout#61

Open
BIA3IA wants to merge 2 commits intomainfrom
bianca/not-found
Open

Enhance NotFound page with custom SVG background and improved layout#61
BIA3IA wants to merge 2 commits intomainfrom
bianca/not-found

Conversation

@BIA3IA
Copy link
Copy Markdown
Contributor

@BIA3IA BIA3IA commented Apr 8, 2026

Revamp the NotFound page by adding a custom SVG background, localized messaging, and a prominent 404 display.

Closes #60

…ayout

- Updated NotFound component to include a visually appealing SVG background.
- Replaced existing text with localized message and added a prominent 404 display.
- Introduced a primary button linking back to the homepage.
- Adjusted header background to be transparent for better integration with the NotFound page.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 8, 2026

Warning

Rate limit exceeded

@BIA3IA has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 28 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 21 minutes and 28 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fa7861bb-c0bb-4717-9414-28205e7d94ad

📥 Commits

Reviewing files that changed from the base of the PR and between 109f9c2 and 09e4fb4.

📒 Files selected for processing (1)
  • src/app/not-found.tsx

Walkthrough

Two components updated: the NotFound page converted from async to synchronous with a redesigned 404 layout featuring SVG background, centered typography, Italian text, and a button-wrapped homepage link; the Header component's background color changed from bg-card to bg-transparent.

Changes

Cohort / File(s) Summary
404 Page Redesign
src/app/not-found.tsx
Converted from async to synchronous component. Replaced simple container layout with full-viewport centered design including background SVG image, styled "404" heading, Italian explanatory text, and Button component wrapping homepage navigation with home icon.
Header Styling
src/components/header.tsx
Updated header element background class from bg-card to bg-transparent.
🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and specifically describes the main changes: adding a custom SVG background and improving the layout of the NotFound page.
Linked Issues check ✅ Passed The changes implement the visual design shown in issue #60 with custom SVG background, localized Italian text, prominent 404 display, and improved layout as required.
Out of Scope Changes check ✅ Passed The header background change from bg-card to bg-transparent is a minor, related adjustment for NotFound page integration; all changes align with issue #60 objectives.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@BIA3IA BIA3IA marked this pull request as ready for review April 8, 2026 08:30
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
src/app/not-found.tsx (1)

9-9: Use dynamic viewport units for mobile height stability.

Line 9 uses 100vh; on mobile browsers this can cause vertical clipping/jump with collapsing browser UI. Prefer 100dvh for a more stable full-height layout.

Proposed tweak
-    <main className="relative isolate flex min-h-[calc(100vh-var(--header-height))] w-full items-center justify-center overflow-hidden bg-background">
+    <main className="relative isolate flex min-h-[calc(100dvh-var(--header-height))] w-full items-center justify-center overflow-hidden bg-background">
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/app/not-found.tsx` at line 9, The main container in not-found.tsx uses a
mobile-unstable viewport unit (min-h-[calc(100vh-var(--header-height))]); update
the CSS to use the dynamic viewport unit so mobile browser UI changes don't
cause clipping—replace occurrences of "100vh" with "100dvh" in the className on
the <main> element (the string containing min-h-[calc(...)]), keeping the rest
of the calc intact.
src/components/header.tsx (1)

10-10: Consider a translucent sticky header instead of fully transparent.

At Line 10, full transparency can hurt nav contrast when content scrolls underneath. A light backdrop keeps the NotFound integration while preserving readability.

Proposed tweak
-    <header className="sticky top-0 isolate z-20 flex h-(--header-height) w-full shrink-0 items-center justify-center border-b bg-transparent">
+    <header className="sticky top-0 isolate z-20 flex h-(--header-height) w-full shrink-0 items-center justify-center border-b bg-background/70 backdrop-blur supports-[backdrop-filter]:bg-background/50">
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/header.tsx` at line 10, Replace the fully transparent header
background with a translucent one and enable backdrop blur for better contrast:
update the className on the <header> element (the string "sticky top-0 isolate
z-20 flex h-(--header-height) w-full shrink-0 items-center justify-center
border-b bg-transparent") to use a semi-opaque background (e.g., bg-white/
bg-opacity-60 or bg-slate-50/ bg-opacity-60) plus a backdrop blur class (e.g.,
backdrop-blur-sm) and keep the border (or switch to border-neutral-200/
border-slate-200) so the sticky header remains readable over scrolling content.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/app/not-found.tsx`:
- Line 9: The main container in not-found.tsx uses a mobile-unstable viewport
unit (min-h-[calc(100vh-var(--header-height))]); update the CSS to use the
dynamic viewport unit so mobile browser UI changes don't cause clipping—replace
occurrences of "100vh" with "100dvh" in the className on the <main> element (the
string containing min-h-[calc(...)]), keeping the rest of the calc intact.

In `@src/components/header.tsx`:
- Line 10: Replace the fully transparent header background with a translucent
one and enable backdrop blur for better contrast: update the className on the
<header> element (the string "sticky top-0 isolate z-20 flex h-(--header-height)
w-full shrink-0 items-center justify-center border-b bg-transparent") to use a
semi-opaque background (e.g., bg-white/ bg-opacity-60 or bg-slate-50/
bg-opacity-60) plus a backdrop blur class (e.g., backdrop-blur-sm) and keep the
border (or switch to border-neutral-200/ border-slate-200) so the sticky header
remains readable over scrolling content.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dc83f65a-e3d3-47b5-a07d-ef8d69a3b609

📥 Commits

Reviewing files that changed from the base of the PR and between ade80e3 and 109f9c2.

⛔ Files ignored due to path filters (1)
  • src/assets/shapes/not-found.svg is excluded by !**/*.svg
📒 Files selected for processing (2)
  • src/app/not-found.tsx
  • src/components/header.tsx

@BIA3IA BIA3IA self-assigned this Apr 8, 2026
@BIA3IA BIA3IA requested a review from Diubii April 9, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not Found

1 participant