Skip to content

Commit

Permalink
Improved kita-jsx template landing page (#374)
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Fiorette <47537704+arthurfiorette@users.noreply.github.com>
Co-authored-by: Arthur Fiorette <47537704+arthurfiorette@users.noreply.github.com>
  • Loading branch information
zMarques and arthurfiorette committed Apr 3, 2024
1 parent 8a36034 commit f80f49f
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .changeset/healthy-suns-laugh.md
@@ -0,0 +1,6 @@
---
'@kitajs/cli': patch
'create-kita': patch
---

Improved kita-jsx template landing page
2 changes: 1 addition & 1 deletion packages/cli/templates/kita-jsx/src/components/layout.tsx
Expand Up @@ -13,7 +13,7 @@ export function Layout({ children }: PropsWithChildren) {

<title>KitaJS</title>
</head>
<body>{children}</body>
<body class="bg-zinc-900 text-zinc-200">{children}</body>
</html>
</>
);
Expand Down
69 changes: 56 additions & 13 deletions packages/cli/templates/kita-jsx/src/routes/index.tsx
Expand Up @@ -3,20 +3,63 @@ import { Layout } from '../components/layout';
export function get() {
return (
<Layout>
<div class="text-center bg-[#1B1B1F] h-screen flex items-center justify-center">
<div>
<img src="https://kita.js.org/logo.svg" alt="Kita" class="w-128 mx-auto" />
<h1 class="text-8xl font-bold text-gray-500 text-[#99483d] mb-2">Kita</h1>
<p class="text-lg text-white">Performant and type safe Fastify router</p>
<p class="text-lg text-white">
Visit{' '}
<a href="https://kita.js.org" class="text-blue-500">
kita.js.org
</a>{' '}
for more information
</p>
<section class="container max-w-7xl p-6 m-auto h-screen">
<div class="flex flex-col w-full h-full items-center gap-16 lg:gap-40 justify-center">
<div class="flex justify-center items-center flex-col lg:flex-row">
<div class="flex gap-8 flex-col lg:w-1/2">
<h1 class="leading[3rem] text-6xl w-fit font-bold bg-gradient-to-br from-red-200 to-red-900 bg-clip-text text-transparent">
Kita
</h1>
<p class="leading[3rem] text-6xl font-bold">Performant and type safe Fastify router</p>

<p class="leading-9 text-2xl text-zinc-500 font-medium">
Build fast end-to-end APIs with ZERO abstraction cost!
</p>
</div>

<div class="relative lg:w-1/2 flex items-center justify-center">
<img class="size-[250px] z" src="https://kita.js.org/logo.svg" alt="Kita brown and white lotus logo" />
<div class=" bg-gradient-to-br from-red-200 to-red-900 absolute size-[250px] -z-10 top-1/2 rounded-full left-1/2 -translate-y-1/2 -translate-x-1/2 blur-3xl " />
</div>
</div>

<div class="flex flex-col md:flex-row justify-between items-center w-full gap-6 lg:gap-12">
<a
href="https://kita.js.org"
target="_blank"
class="border flex flex-col h-full border-red-200 rounded-xl p-6 gap-6"
>
<h2 class="leading[3rem] text-2xl font-bold">Kita.js 🡲</h2>
<p class="leading-2 text-base lg:text-xl text-zinc-500 font-medium">
Minimum setup, maximum efficiency. Kita.js simplifies your workflow with a no-nonsense, practical
approach.
</p>
</a>
<a
href="https://kita.js.org/routing/html"
target="_blank"
class="border flex flex-col h-full border-red-200 rounded-xl p-6 gap-6"
>
<h2 class="leading[3rem] text-2xl font-bold">Kita HTML 🡲</h2>
<p class="leading-2 text-base lg:text-xl text-zinc-500 font-medium">
Ready to use. Kita HTML stands out for its simplicity, allowing you to focus on what really matters:
building powerful APIs.
</p>
</a>
<a
href="https://github.com/kitajs"
target="_blank"
class="border flex flex-col h-full border-red-200 rounded-xl p-6 gap-6"
>
<h2 class="leading[3rem] text-2xl font-bold">Github 🡲</h2>
<p class="leading-2 text-base lg:text-xl text-zinc-500 font-medium">
Explore. Collaborate. Innovate. Access the Kita repository on GitHub and join the construction of
smarter, more efficient routing.
</p>
</a>
</div>
</div>
</div>
</section>
</Layout>
);
}

0 comments on commit f80f49f

Please sign in to comment.