Skip to content

Commit

Permalink
add landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Oct 18, 2024
1 parent 0dee9c1 commit 5b8423f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions app/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
import { useLoaderData } from "react-router-dom";

export const loader = () => {
return { target: "React Router!" };
return {
features: [
"React",
"TypeScript",
"TailwindCSS",
"React Router",
"HMR powered",
],
};
};

export default function Page() {
const data = useLoaderData();

return (
<div>
Hello {data.target}
<div className="flex flex-col items-center justify-center min-h-screen bg-gray-100 text-gray-800 w-full">
<h1 className="text-4xl font-bold mb-4">Welcome to React Standalone!</h1>
<p className="text-lg mb-2">
Experience the power of React running directly in your browser.
</p>
<p className="text-lg mb-2">
No server required, just pure client-side magic!
</p>
<p className="text-lg mt-4 font-bold">
{data.features.join(", ")}!
</p>
</div>
);
}

0 comments on commit 5b8423f

Please sign in to comment.