diff --git a/public/blog/building-qr-generator.png b/public/blog/building-qr-generator.png new file mode 100644 index 0000000..c330335 Binary files /dev/null and b/public/blog/building-qr-generator.png differ diff --git a/src/app/(marketing)/error.tsx b/src/app/(marketing)/error.tsx new file mode 100644 index 0000000..1d99b54 --- /dev/null +++ b/src/app/(marketing)/error.tsx @@ -0,0 +1,119 @@ +'use client'; + +import React, { useEffect } from 'react'; +import Link from 'next/link'; +import { Button } from '@/components/ui/Button'; + +export default function Error({ + error, + reset, +}: { + error: Error & { digest?: string }; + reset: () => void; +}) { + useEffect(() => { + // Log the error to an error reporting service + console.error('Error:', error); + }, [error]); + + return ( +
+
+ {/* Error Icon */} +
+
+ + + +
+ + {/* Error Text */} +

500

+

+ Something Went Wrong +

+

+ We're sorry, but something unexpected happened. Our team has been notified and is working on a fix. +

+ + {/* Error Details (only in development) */} + {process.env.NODE_ENV === 'development' && error.message && ( +
+

+ Error: {error.message} +

+ {error.digest && ( +

+ Digest: {error.digest} +

+ )} +
+ )} +
+ + {/* Action Buttons */} +
+ + + + + +
+ + {/* Help Text */} +
+

+ If this problem persists, please{' '} + + check our FAQ + + {' '}or contact support. +

+
+
+
+ ); +} diff --git a/src/app/(marketing)/not-found.tsx b/src/app/(marketing)/not-found.tsx new file mode 100644 index 0000000..4c9a56c --- /dev/null +++ b/src/app/(marketing)/not-found.tsx @@ -0,0 +1,63 @@ +import React from 'react'; +import Link from 'next/link'; + + +import '@/styles/globals.css'; + +export default function NotFound() { + return ( +
+
+ {/* 404 Icon */} +
+
+ + + +
+ + {/* 404 Text */} +

404

+

+ Page Not Found +

+

+ Sorry, we couldn't find the page you're looking for. It might have been moved or deleted. +

+
+ + {/* Action Button */} +
+ + + + + Back to Home + +
+
+
+ ); +} diff --git a/src/app/error.tsx b/src/app/error.tsx deleted file mode 100644 index e0ce5a9..0000000 --- a/src/app/error.tsx +++ /dev/null @@ -1,123 +0,0 @@ -'use client'; - -import React, { useEffect } from 'react'; -import Link from 'next/link'; -import { Button } from '@/components/ui/Button'; - -export default function Error({ - error, - reset, -}: { - error: Error & { digest?: string }; - reset: () => void; -}) { - useEffect(() => { - // Log the error to an error reporting service - console.error('Error:', error); - }, [error]); - - return ( - - -
-
- {/* Error Icon */} -
-
- - - -
- - {/* Error Text */} -

500

-

- Something Went Wrong -

-

- We're sorry, but something unexpected happened. Our team has been notified and is working on a fix. -

- - {/* Error Details (only in development) */} - {process.env.NODE_ENV === 'development' && error.message && ( -
-

- Error: {error.message} -

- {error.digest && ( -

- Digest: {error.digest} -

- )} -
- )} -
- - {/* Action Buttons */} -
- - - - - -
- - {/* Help Text */} -
-

- If this problem persists, please{' '} - - check our FAQ - - {' '}or contact support. -

-
-
-
- - - ); -} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx deleted file mode 100644 index dbafe4f..0000000 --- a/src/app/not-found.tsx +++ /dev/null @@ -1,67 +0,0 @@ -import React from 'react'; -import Link from 'next/link'; - - -import '@/styles/globals.css'; - -export default function NotFound() { - return ( - - -
-
- {/* 404 Icon */} -
-
- - - -
- - {/* 404 Text */} -

404

-

- Page Not Found -

-

- Sorry, we couldn't find the page you're looking for. It might have been moved or deleted. -

-
- - {/* Action Button */} -
- - - - - Back to Home - -
-
-
- - - ); -}