Skip to content

Commit c845592

Browse files
committed
docs: fix landing page layout with Nuxt UI Pro section components
The home page was edge-to-edge with zero horizontal margin because it used generic Prose ::card-group and plain headings, none of which carry the landing-page container constraints. Nuxt UI Pro provides dedicated layout components for exactly this, and Docus's own index.md uses them. Rewrite docs/content/index.md to mirror the Docus landing pattern: - ::u-page-hero wraps the title, description, and CTA buttons, giving the hero the standard max-w + mx-auto + responsive px-* container. - ::u-page-section wraps each content block so sections pick up the same container and the consistent py-16 / sm:py-24 / lg:py-32 vertical rhythm other Docus sites use. - :::u-page-grid + ::::u-page-card replace the Prose card-group so the four package cards get the proper spotlight + grid layout with col-span-2 lg:col-span-1 for 2x2-on-small, 4-across-on-large. - Hero CTAs (Get started, Star on GitHub) use :::u-button inside the #links slot. Verified in the built HTML: the rendered page now has the max-w-(--ui-container) mx-auto px-4 sm:px-6 lg:px-8 container on every section, instead of edge-to-edge content. The MDC named-slot markers (#title, #description, #links) look like ATX headings to eslint-plugin-markdown, so the file disables markdown/no-missing-atx-heading-space at the top. This matches the upstream Docus content and is the same escape hatch their docs use.
1 parent 01bc596 commit c845592

1 file changed

Lines changed: 101 additions & 41 deletions

File tree

docs/content/index.md

Lines changed: 101 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,115 @@
11
---
2-
title: PleaseAI Code Style
3-
description: Shared code style configurations for PleaseAI projects.
2+
seo:
3+
title: PleaseAI Code Style
4+
description: Shared ESLint, Prettier, and EditorConfig configurations for consistent code style across PleaseAI projects.
45
navigation: false
56
---
67

7-
# PleaseAI Code Style
8+
<!-- eslint-disable markdown/no-missing-atx-heading-space -->
89

9-
Shared ESLint, Prettier, and EditorConfig configurations for consistent code style across PleaseAI projects — plus a CLI that wires them all up in one command.
10+
::u-page-hero
11+
#title
12+
PleaseAI Code Style
1013

11-
## Packages
14+
#description
15+
Shared ESLint, Prettier, and EditorConfig configurations for consistent code style across PleaseAI projects — plus a CLI that wires them up in one command.
1216

13-
:::card-group
14-
::card
17+
#links
18+
:::u-button
1519
---
16-
title: ESLint Config
17-
icon: i-lucide-shield-check
18-
to: /eslint-config
19-
---
20-
Opinionated ESLint flat config built on top of `@antfu/eslint-config`.
21-
::
22-
23-
::card
24-
---
25-
title: Prettier Config
26-
icon: i-lucide-paintbrush
27-
to: /prettier-config
28-
---
29-
Shared Prettier configuration for consistent formatting.
30-
::
31-
32-
::card
33-
---
34-
title: EditorConfig
35-
icon: i-lucide-file-cog
36-
to: /editorconfig
20+
color: neutral
21+
size: xl
22+
to: /cli
23+
trailing-icon: i-lucide-arrow-right
3724
---
38-
Shared `.editorconfig` for consistent editor settings.
39-
::
25+
Get started
26+
:::
4027

41-
::card
28+
:::u-button
4229
---
43-
title: CLI
44-
icon: i-lucide-terminal
45-
to: /cli
30+
color: neutral
31+
icon: i-simple-icons-github
32+
size: xl
33+
target: _blank
34+
to: https://github.com/pleaseai/code-style
35+
variant: outline
4636
---
47-
One-command setup for eslint, prettier, editorconfig, and the `AGENTS.md` rules block.
48-
::
49-
:::
50-
51-
## Quick Start
52-
53-
The fastest path is the CLI — it installs the packages and writes the config files for you:
37+
Star on GitHub
38+
:::
39+
::
40+
41+
::u-page-section
42+
#title
43+
Packages
44+
45+
#description
46+
Everything you need for consistent code style, shipped as focused packages.
47+
48+
:::u-page-grid
49+
::::u-page-card
50+
---
51+
class: col-span-2 lg:col-span-1
52+
icon: i-lucide-shield-check
53+
spotlight: true
54+
to: /eslint-config
55+
---
56+
#title
57+
ESLint Config
58+
59+
#description
60+
Opinionated ESLint flat config built on top of `@antfu/eslint-config`.
61+
::::
62+
63+
::::u-page-card
64+
---
65+
class: col-span-2 lg:col-span-1
66+
icon: i-lucide-paintbrush
67+
spotlight: true
68+
to: /prettier-config
69+
---
70+
#title
71+
Prettier Config
72+
73+
#description
74+
Shared Prettier configuration for consistent formatting.
75+
::::
76+
77+
::::u-page-card
78+
---
79+
class: col-span-2 lg:col-span-1
80+
icon: i-lucide-file-cog
81+
spotlight: true
82+
to: /editorconfig
83+
---
84+
#title
85+
EditorConfig
86+
87+
#description
88+
Shared `.editorconfig` for consistent editor settings.
89+
::::
90+
91+
::::u-page-card
92+
---
93+
class: col-span-2 lg:col-span-1
94+
icon: i-lucide-terminal
95+
spotlight: true
96+
to: /cli
97+
---
98+
#title
99+
CLI
100+
101+
#description
102+
One-command setup for eslint, prettier, editorconfig, and the `AGENTS.md` rules block.
103+
::::
104+
:::
105+
::
106+
107+
::u-page-section
108+
#title
109+
Quick Start
110+
111+
#description
112+
The fastest path is the CLI — it installs the packages and writes the config files for you.
54113

55114
:::code-group
56115
```bash [bun]
@@ -87,3 +146,4 @@ import pleaseai from '@pleaseai/eslint-config'
87146

88147
export default pleaseai()
89148
```
149+
::

0 commit comments

Comments
 (0)