Spaces:
Running
Running
| import { json } from '@remix-run/node'; | |
| import { useLoaderData } from '@remix-run/react'; | |
| export const loader = async () => { | |
| return json({ message: 'API Coming Soon' }); | |
| }; | |
| export default function ApiPage() { | |
| const data = useLoaderData<typeof loader>(); | |
| return ( | |
| <div className="min-h-screen bg-gray-50 dark:bg-gray-900 flex items-center justify-center"> | |
| <div className="max-w-md w-full bg-white dark:bg-gray-800 rounded-lg shadow-lg p-8 text-center"> | |
| <div className="mb-6"> | |
| <div className="mx-auto w-16 h-16 bg-purple-100 dark:bg-purple-900/30 rounded-full flex items-center justify-center mb-4"> | |
| <svg | |
| className="w-8 h-8 text-purple-600 dark:text-purple-400" | |
| fill="none" | |
| stroke="currentColor" | |
| viewBox="0 0 24 24" | |
| > | |
| <path | |
| strokeLinecap="round" | |
| strokeLinejoin="round" | |
| strokeWidth={2} | |
| d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" | |
| /> | |
| </svg> | |
| </div> | |
| <h1 className="text-2xl font-bold text-gray-900 dark:text-white mb-2"> | |
| {data.message} | |
| </h1> | |
| <p className="text-gray-600 dark:text-gray-400"> | |
| Check back later for the AstraCoder API! | |
| </p> | |
| </div> | |
| <div className="space-y-3"> | |
| <a | |
| href="/" | |
| className="inline-block w-full bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-lg transition-colors" | |
| > | |
| Go Back Home | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| ); | |
| } |