Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
feat: add homepage (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin authored Sep 28, 2023
1 parent aa5ca4f commit 47ebd7a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
1 change: 0 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default defineConfig({
},
site: `https://docs.treblle.com`,
redirects: {
'/': '/en/introduction',
'/en/integrations/dotnet': '/en/integrations/net',
'/en/integrations/rails': '/en/integrations/ruby',
'/en/integrations/dotnet-core': '/en/integrations/net-core',
Expand Down
42 changes: 42 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
import TreblleIntegrations from '../components/TreblleIntegrations.astro'
import HeadCommon from '../components/HeadCommon.astro'
import Header from '../components/Header/Header.astro'
const currentPage = Astro.url.pathname
---

<head>
<HeadCommon />
<title>Home</title>
</head>
<main class="space-y-8 px-4 pt-10 md:mx-auto md:w-8/12 md:space-y-12">
<header class="space-y-3 text-center md:space-y-6">
<h1 class="text-4xl md:text-6xl">Treblle Documentation</h1>
<p class="mx-auto w-5/6 md:text-xl">
Treblle is an easy-to-use SDK that helps Engineering and Product teams
create and manage REST APIs more quickly.
</p>
<section
class="flex flex-col space-y-3 md:flex-row md:items-center md:justify-center md:space-x-4"
>
<a
class="rounded-sm bg-treblle-blue px-4 py-3 font-bold text-white transition-colors hover:bg-treblle-blue-400 hover:no-underline"
href="https://docs.treblle.com/en/introduction"
>
Get started with API monitoring
</a>
<a
class="border-b border-dashed border-blue-500 font-bold text-gray-500 transition-colors hover:text-blue-500 hover:no-underline"
href="https://docs.treblle.com/en/integrations"
>
Explore integrations
</a>
</section>
</header>
<section>
<h2 class="text-2xl md:text-4xl">Pick your platform...</h2>
<p class="md:text-lg">...and get started in minutes.</p>
<TreblleIntegrations />
</section>
</main>

0 comments on commit 47ebd7a

Please sign in to comment.