@@ -8,59 +8,148 @@ description: Meet documentation that is stunning by default, AI-ready, and desig
88 .fern-card {
99 text-decoration: none !important;
1010 }
11+
12+ .docs-homepage {
13+ position: relative;
14+
15+ .dashed-pattern-left {
16+ position: absolute;
17+ left: -4rem;
18+ top: -8.5rem;
19+ height: calc(100% + 26rem);
20+ width: 1rem;
21+ opacity: 1;
22+ pointer-events: none;
23+ border-right: 1px solid var(--grayscale-5);
24+ mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0 ) 100%);
25+ -webkit-mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
26+ }
27+
28+ .dashed-pattern-right {
29+ position: absolute;
30+ right: -4rem;
31+ top: -8.5rem;
32+ height: calc(100% + 26rem);
33+ width: 1rem;
34+ opacity: 1;
35+ pointer-events: none;
36+ border-left: 1px solid var(--grayscale-5);
37+ mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
38+ -webkit-mask: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%);
39+ }
40+
41+
42+ .fern-card {
43+ border: none !important;
44+ padding: 0 !important;
45+ box-shadow: none !important;
46+ background-color: transparent !important;
47+
48+ .card-title {
49+ display: flex;
50+ gap: 0.25rem;
51+ align-items: center;
52+ }
53+
54+ img {
55+ transition: transform 0.15s ease-in-out;
56+ }
57+
58+ .arrow-right {
59+ height: 1rem;
60+ opacity: 0;
61+ transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
62+ transform: translateX(0px);
63+ }
64+
65+ &:hover {
66+ img {
67+ transform: scale(1.01);
68+ }
69+
70+ .arrow-right {
71+ opacity: 1;
72+ transform: translateX(2px);
73+ }
74+ }
75+ }
76+ }
1177 ` }
1278</style >
1379
14- <CardGroup cols = { 2 } >
15- <a class = " fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href = " /docs/guides/getting-started/quickstart" >
16- <div class = " flex items-start flex-col space-y-3" >
17- <img class = " mx-auto dark:hidden" alt = " Quickstart" src = " ./images/quickstart.png" />
18- <img class = " mx-auto hidden dark:block" alt = " Quickstart" src = " ./images/quickstart-dark.png" />
19- <div class = " w-full space-y-1 overflow-hidden" >
20- <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold" >Quickstart</div >
21- <div class = " text-(color:--grayscale-a11) font-light" >
22- <p >Start building beautiful documentation in under 5 minutes.</p >
80+ <div className = " docs-homepage" >
81+ { /* Dashed Pattern - Left Side */ }
82+ <div className = " dashed-pattern-left" ></div >
83+
84+ { /* Dashed Pattern - Right Side */ }
85+ <div className = " dashed-pattern-right" ></div >
86+ <CardGroup cols = { 2 } >
87+ <a class = " fern-card interactive not-prose relative block p-6 text-base" href = " /docs/guides/getting-started/quickstart" >
88+ <div class = " flex items-start flex-col space-y-3" >
89+ <img class = " mx-auto dark:hidden" alt = " Quickstart" src = " ./images/quickstart.png" />
90+ <img class = " mx-auto hidden dark:block" alt = " Quickstart" src = " ./images/quickstart-dark.png" />
91+ <div class = " w-full space-y-1 overflow-hidden" >
92+ <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold card-title" >
93+ Quickstart
94+ <img src = " ./images/arrow-right-black.svg" alt = " Arrow right light" className = " arrow-right dark:hidden m-0" noZoom />
95+ <img src = " ./images/arrow-right-white.svg" alt = " Arrow right light" className = " arrow-right hidden dark:block m-0" noZoom />
96+ </div >
97+ <div class = " text-(color:--grayscale-a11) font-light" >
98+ <p >Start building beautiful documentation in under 5 minutes.</p >
99+ </div >
23100 </div >
24101 </div >
25- </div >
26- </a >
27-
28- <a class = " fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href = " /docs/guides/getting-started/what-is-docs-yml" >
29- <div class = " flex items-start flex-col space-y-3" >
30- <img class = " mx-auto dark:hidden" alt = " Configure with ease" src = " ./images/configure.png" />
31- <img class = " mx-auto hidden dark:block" alt = " Configure with ease" src = " ./images/configure-dark.png" />
32- <div class = " w-full space-y-1 overflow-hidden" >
33- <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold" >Configure with ease</div >
34- <div class = " text-(color:--grayscale-a11) font-light" >
35- <p >One simple file that can be used to generate documentation that fits your brand.</p >
102+ </a >
103+
104+ <a class = " fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href = " /docs/guides/getting-started/what-is-docs-yml" >
105+ <div class = " flex items-start flex-col space-y-3" >
106+ <img class = " mx-auto dark:hidden" alt = " Configure with ease" src = " ./images/configure.png" />
107+ <img class = " mx-auto hidden dark:block" alt = " Configure with ease" src = " ./images/configure-dark.png" />
108+ <div class = " w-full space-y-1 overflow-hidden" >
109+ <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold card-title" >
110+ Configure with ease
111+ <img src = " ./images/arrow-right-black.svg" alt = " Arrow right light" className = " arrow-right dark:hidden m-0" noZoom />
112+ <img src = " ./images/arrow-right-white.svg" alt = " Arrow right light" className = " arrow-right hidden dark:block m-0" noZoom />
113+ </div >
114+ <div class = " text-(color:--grayscale-a11) font-light" >
115+ <p >One simple file that can be used to generate documentation that fits your brand.</p >
116+ </div >
36117 </div >
37118 </div >
38- </div >
39- </a >
40-
41- <a class = " fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href = " /docs/component-library/overview" >
42- <div class = " flex items-start flex-col space-y-3" >
43- <img class = " mx-auto dark:hidden" alt = " Flexible component library" src = " ./images/component-library.png" />
44- <img class = " mx-auto hidden dark:block" alt = " Flexible component library" src = " ./images/component-library-dark.png" />
45- <div class = " w-full space-y-1 overflow-hidden" >
46- <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold" >Flexible component library</div >
47- <div class = " text-(color:--grayscale-a11) font-light" >
48- <p >Use pre-built or custom React components for a polished look.</p >
119+ </a >
120+
121+ <a class = " fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href = " /docs/component-library/overview" >
122+ <div class = " flex items-start flex-col space-y-3" >
123+ <img class = " mx-auto dark:hidden" alt = " Flexible component library" src = " ./images/component-library.png" />
124+ <img class = " mx-auto hidden dark:block" alt = " Flexible component library" src = " ./images/component-library-dark.png" />
125+ <div class = " w-full space-y-1 overflow-hidden" >
126+ <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold card-title" >
127+ Flexible component library
128+ <img src = " ./images/arrow-right-black.svg" alt = " Arrow right light" className = " arrow-right dark:hidden m-0" noZoom />
129+ <img src = " ./images/arrow-right-white.svg" alt = " Arrow right light" className = " arrow-right hidden dark:block m-0" noZoom />
130+ </div >
131+ <div class = " text-(color:--grayscale-a11) font-light" >
132+ <p >Use pre-built or custom React components for a polished look.</p >
133+ </div >
49134 </div >
50135 </div >
51- </div >
52- </a >
53-
54- <a class = " fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href = " /docs/component-library/writing-content/visual-editor" >
55- <div class = " flex items-start flex-col space-y-3" >
56- <img class = " mx-auto dark:hidden" alt = " Visual Editor" src = " ./images/visual-editor.png" />
57- <img class = " mx-auto hidden dark:block" alt = " Visual Editor" src = " ./images/visual-editor-dark.png" />
58- <div class = " w-full space-y-1 overflow-hidden" >
59- <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold" >Visual Editor</div >
60- <div class = " text-(color:--grayscale-a11) font-light" >
61- <p >Modify your documentation without touching code and publish to your GitHub.</p >
136+ </a >
137+
138+ <a class = " fern-card interactive not-prose rounded-3 relative block border p-6 text-base" href = " /docs/component-library/writing-content/visual-editor" >
139+ <div class = " flex items-start flex-col space-y-3" >
140+ <img class = " mx-auto dark:hidden" alt = " Visual Editor" src = " ./images/visual-editor.png" />
141+ <img class = " mx-auto hidden dark:block" alt = " Visual Editor" src = " ./images/visual-editor-dark.png" />
142+ <div class = " w-full space-y-1 overflow-hidden" >
143+ <div class = " text-(color:--grayscale-a12) text-body text-base font-semibold card-title" >
144+ Visual Editor
145+ <img src = " ./images/arrow-right-black.svg" alt = " Arrow right light" className = " arrow-right dark:hidden m-0" noZoom />
146+ <img src = " ./images/arrow-right-white.svg" alt = " Arrow right light" className = " arrow-right hidden dark:block m-0" noZoom />
147+ </div >
148+ <div class = " text-(color:--grayscale-a11) font-light" >
149+ <p >Modify your documentation without touching code and publish to your GitHub.</p >
150+ </div >
62151 </div >
63152 </div >
64- </div >
65- </a >
66- </ CardGroup >
153+ </a >
154+ </CardGroup >
155+ </ div >
0 commit comments