Lets use this and build on thisnpx shadcn@latest add "https://v0.dev/chat/b/b_Imsd7BHb9qj"
I can see you've shared a screenshot of a "Block Not Found" error page from v0.dev. Let me recreate this clean error state component and build upon it to make it more versatile and reusable.
I've recreated and enhanced the error state component from your screenshot. Here's what I've built:
title
: Custom error titledescription
: Error message textshowHomeButton
/showRefreshButton
: Toggle action buttonsonHomeClick
/onRefreshClick
: Custom click handlersicon
: Custom icon componentThe component is built with shadcn/ui components and follows modern React patterns with TypeScript support.
one thing l would love to change in code, l dont want to have any components or additinal folders lets keep allll the code in app/pages.tsx
I'll help you consolidate all the code into the app directory structure without any separate components. Let me update all the files to have everything in their respective page.tsx
files.
Perfect! I've consolidated all the code into a single structure without any separate components folder. Here's what I've done:
components
folder structurepages.tsx
to page.tsx
for proper Next.js routingapp/page.tsx
fileapp/
├── page.tsx (main homepage with all sections)
├── about/page.tsx
├── achievements/page.tsx
├── blogs/page.tsx
├── digimaaya/page.tsx
├── gallery/page.tsx
├── layout.tsx
└── globals.css
The website maintains all its original functionality including: