Commit c845592
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | | - | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | | - | |
14 | | - | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
37 | 24 | | |
38 | | - | |
39 | | - | |
| 25 | + | |
| 26 | + | |
40 | 27 | | |
41 | | - | |
| 28 | + | |
42 | 29 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
46 | 36 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
54 | 113 | | |
55 | 114 | | |
56 | 115 | | |
| |||
87 | 146 | | |
88 | 147 | | |
89 | 148 | | |
| 149 | + | |
0 commit comments