onlook icon indicating copy to clipboard operation
onlook copied to clipboard

Feat/improve 404 page

Open kishansinghifs1 opened this issue 6 months ago • 4 comments

Description

Fixes - #1637 - enhances the default 404 (Not Found) page with a more engaging and user-friendly design.

Related Issues

none

Testing

Verified the 404 page renders properly when visiting a non-existent route (e.g. /nonexistent)

Checked responsiveness on mobile and desktop

Ensured the Framer Motion animation loads without any runtime errors

Screenshots (if applicable)

Screenshot 2025-06-08 093800

Additional Notes

Requires framer-motion to be installed if not already:


[!IMPORTANT] Enhances 404 page with animations and updates resize logic to lock aspect ratios.

  • 404 Page Enhancement:
    • Updated not-found.tsx to include Framer Motion animations for a more engaging 404 page.
    • Changed text and layout for improved user experience.
    • Updated button text from "Back to home" to "Back to Safety".
  • Resize Logic Update:
    • In resize-handles.tsx, changed aspectRatioLocked to true to enforce aspect ratio during resizing.
    • Refactored resize logic to use newWidth and newHeight for clarity.
    • Ensured minimum dimensions are respected during resizing.

This description was created by Ellipsis for 84b996b55a01136d7a0bee52476426ed782162ab. You can customize this summary. It will automatically update as commits are pushed.

kishansinghifs1 avatar Jun 08 '25 04:06 kishansinghifs1

Someone is attempting to deploy a commit to the Onlook Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jun 08 '25 04:06 vercel[bot]

@Kitenite can you please review it .

kishansinghifs1 avatar Jun 10 '25 07:06 kishansinghifs1

Hey @kishansinghifs1 , this looks great, could you do this for the template app instead? It's meant to have the template app handle better not found apge. This will be the default exp for new projects :) https://github.com/onlook-dev/onlook/blob/main/apps/web/template

Kitenite avatar Jun 11 '25 17:06 Kitenite

Could You Please Elaborate it ....

kishansinghifs1 avatar Jun 12 '25 14:06 kishansinghifs1