Skip to content

Commit 70212a8

Browse files
committed
docs: restore landing page
1 parent c28e5da commit 70212a8

2 files changed

Lines changed: 7 additions & 78 deletions

File tree

docs/app/components/content/landing/LandingHero.vue

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ function getCodeBlock(tab: { name: string, code: string }) {
9191
</div>
9292

9393
<!-- CTA Buttons -->
94-
<div class="mt-4 flex w-fit flex-col gap-4 font-sans md:flex-row md:justify-center lg:justify-start items-center">
94+
<div class="mt-4 flex w-full max-w-sm items-center gap-3 font-sans min-[390px]:w-fit md:max-w-none md:gap-4 md:justify-center lg:justify-start">
9595
<NuxtLink
9696
to="/getting-started/installation"
97-
class="border-2 border-black bg-white px-4 py-1.5 text-sm uppercase text-black shadow-[1px_1px_rgba(0,0,0),2px_2px_rgba(0,0,0),3px_3px_rgba(0,0,0),4px_4px_rgba(0,0,0),5px_5px_0px_0px_rgba(0,0,0)] transition duration-200 md:px-8 hover:shadow-sm dark:border-stone-400 dark:hover:shadow-sm dark:shadow-[1px_1px_rgba(120,113,108),2px_2px_rgba(120,113,108),3px_3px_rgba(120,113,108),4px_4px_rgba(120,113,108),5px_5px_0px_0px_rgba(120,113,108)]"
97+
class="shrink-0 border-2 border-black bg-white px-4 py-1.5 text-sm uppercase text-black shadow-[1px_1px_rgba(0,0,0),2px_2px_rgba(0,0,0),3px_3px_rgba(0,0,0),4px_4px_rgba(0,0,0),5px_5px_0px_0px_rgba(0,0,0)] transition duration-200 hover:shadow-sm dark:border-stone-400 dark:hover:shadow-sm dark:shadow-[1px_1px_rgba(120,113,108),2px_2px_rgba(120,113,108),3px_3px_rgba(120,113,108),4px_4px_rgba(120,113,108),5px_5px_0px_0px_rgba(120,113,108)] md:px-8"
9898
>
9999
Get Started
100100
</NuxtLink>
101101
<NuxtLink
102102
to="https://github.com/onmax/nuxt-better-auth"
103103
target="_blank"
104-
class="group relative hidden p-px text-xs font-semibold leading-6 text-white no-underline md:inline-block"
104+
class="group relative inline-block min-w-0 p-px text-xs font-semibold leading-6 text-white no-underline"
105105
>
106106
<span class="absolute inset-0 overflow-hidden rounded-sm">
107107
<span class="absolute inset-0 rounded-sm bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100" />
@@ -112,15 +112,6 @@ function getCodeBlock(tab: { name: string, code: string }) {
112112
</span>
113113
<span class="absolute bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-emerald-400/0 via-stone-800/90 to-emerald-400/0 transition-opacity duration-500 group-hover:opacity-40" />
114114
</NuxtLink>
115-
<!-- Mobile GitHub button -->
116-
<NuxtLink
117-
to="https://github.com/onmax/nuxt-better-auth"
118-
target="_blank"
119-
class="flex items-center gap-2 rounded-none bg-zinc-950 px-4 py-2 text-xs font-semibold text-white ring-1 ring-white/10 md:hidden"
120-
>
121-
<UIcon name="i-simple-icons-github" class="size-4" />
122-
<span>GitHub</span>
123-
</NuxtLink>
124115
</div>
125116
</div>
126117
</div>

docs/content/index.md

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -4,70 +4,8 @@ description: Seamless Better Auth integration for Nuxt with automatic route prot
44
navigation: false
55
---
66

7-
Nuxt Better Auth is a Nuxt 4 module that wraps [Better Auth](https://www.better-auth.com/) with Nuxt-native configuration, route protection, SSR-safe session access, and optional NuxtHub schema generation.
7+
::landing-hero
8+
::
89

9-
## Start here
10-
11-
Use the docs in this order if you are setting up the module for the first time:
12-
13-
1. [Quickstart](/getting-started)
14-
2. [Installation](/getting-started/installation)
15-
3. [Configuration](/getting-started/configuration)
16-
4. [Client setup](/getting-started/client-setup)
17-
5. [Route protection](/core-concepts/route-protection)
18-
19-
You should finish that path with a working `/api/auth/*` backend, a client config, and a login flow that can read session state through `useUserSession()`.
20-
21-
## Choose the right setup
22-
23-
| If you want to... | Start here |
24-
| --- | --- |
25-
| Get a database-backed setup running quickly | [NuxtHub](/integrations/nuxthub) |
26-
| Plug Better Auth into your own database stack | [Custom database](/guides/custom-database) |
27-
| Reuse an external Better Auth server | [External auth backend](/guides/external-auth-backend) |
28-
| Avoid a database and accept stateless session tradeoffs | [Database-less mode](/guides/database-less-mode) |
29-
| Migrate from `nuxt-auth-utils` | [Migration guide](/guides/migrate-from-nuxt-auth-utils) |
30-
31-
## What the module adds on top of Better Auth
32-
33-
- `server/auth.config.ts` and `app/auth.config.ts` helpers
34-
- auto-imported client and server auth utilities
35-
- route protection through `routeRules` and page meta
36-
- SSR-aware session hydration
37-
- typed `AuthUser` and `AuthSession` inference from your config
38-
- optional NuxtHub database and schema integration
39-
40-
## Documentation map
41-
42-
### Getting started
43-
44-
- [Quickstart](/getting-started)
45-
- [Installation](/getting-started/installation)
46-
- [Configuration](/getting-started/configuration)
47-
- [Client setup](/getting-started/client-setup)
48-
- [Type augmentation](/getting-started/type-augmentation)
49-
- [Schema generation](/getting-started/schema-generation)
50-
51-
### Core concepts
52-
53-
- [Server auth](/core-concepts/server-auth)
54-
- [Sessions](/core-concepts/sessions)
55-
- [Route protection](/core-concepts/route-protection)
56-
- [Auto-imports and aliases](/core-concepts/auto-imports-aliases)
57-
- [Security and caveats](/core-concepts/security-caveats)
58-
59-
### Guides and integrations
60-
61-
- [Role-based access](/guides/role-based-access)
62-
- [OAuth providers](/guides/oauth-providers)
63-
- [Two-factor authentication](/guides/two-factor-auth)
64-
- [Production deployment](/guides/production-deployment)
65-
- [NuxtHub](/integrations/nuxthub)
66-
- [i18n](/integrations/i18n)
67-
68-
### API reference
69-
70-
- [Composables](/api/composables)
71-
- [Server utilities](/api/server-utils)
72-
- [Components](/api/components)
73-
- [Types](/api/types)
10+
::landing-features
11+
::

0 commit comments

Comments
 (0)