Skip to content

Commit 791b910

Browse files
authored
Merge pull request #241 from FacturAPI/feat/footer-facturapi-polish
Polish docs footer and Redoc attribution
2 parents 93745e7 + 8d4160e commit 791b910

3 files changed

Lines changed: 125 additions & 59 deletions

File tree

website/docusaurus.config.js

Lines changed: 46 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const darkCodeTheme = require("prism-react-renderer").themes.dracula;
6060
options: {
6161
disableSearch: true,
6262
requiredPropsFirst: true,
63-
noAutoAuth: true
63+
noAutoAuth: true,
6464
},
6565
},
6666
},
@@ -140,46 +140,75 @@ const darkCodeTheme = require("prism-react-renderer").themes.dracula;
140140
style: "dark",
141141
links: [
142142
{
143-
title: "Docs",
143+
title: "Facturapi",
144144
items: [
145145
{
146-
label: "Tutorial",
147-
to: "/docs/quickstart",
146+
label: "Main site",
147+
href: "https://www.facturapi.io",
148+
},
149+
{
150+
label: "Dashboard",
151+
href: "https://dashboard.facturapi.io",
152+
},
153+
{
154+
label: "Contact",
155+
href: "https://www.facturapi.io/contact",
148156
},
149157
],
150158
},
151159
{
152-
title: "Community",
160+
title: "Developers",
153161
items: [
154162
{
155-
label: "Stack Overflow",
156-
href: "https://stackoverflow.com/questions/tagged/facturapi",
163+
label: "API reference",
164+
to: "/api",
157165
},
158166
{
159-
label: "Twitter",
160-
href: "https://twitter.com/facturapi",
167+
label: "Tutorials",
168+
to: "/docs/intro",
161169
},
162170
{
163-
label: "Facebook",
164-
href: "https://facebook.com/facturapi",
171+
label: "Stripe app",
172+
to: "/stripe-app",
165173
},
166174
{
167-
label: "Instagram",
168-
href: "https://instagram.com/facturapi",
175+
label: "GitHub",
176+
href: "https://github.com/facturapi",
169177
},
170178
],
171179
},
172180
{
173-
title: "More",
181+
title: "Resources",
174182
items: [
175183
{
176-
label: "GitHub",
177-
href: "https://github.com/facturapi",
184+
label: "Pricing",
185+
href: "https://www.facturapi.io/pricing",
186+
},
187+
{
188+
label: "Blog",
189+
href: "https://www.facturapi.io/blog",
190+
},
191+
{
192+
label: "Service status",
193+
href: "https://status.facturapi.io",
194+
},
195+
],
196+
},
197+
{
198+
title: "Legal",
199+
items: [
200+
{
201+
label: "Terms",
202+
href: "https://www.facturapi.io/terms",
203+
},
204+
{
205+
label: "Privacy",
206+
href: "https://www.facturapi.io/privacy",
178207
},
179208
],
180209
},
181210
],
182-
copyright: `Copyright © ${new Date().getFullYear()} Facturación Espacial, SAPI de CV`,
211+
copyright: ${new Date().getFullYear()} Facturapi. All rights reserved.`,
183212
},
184213
prism: {
185214
theme: lightCodeTheme,

website/i18n/en/docusaurus-theme-classic/footer.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

website/src/css/custom.css

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,62 @@ body[data-scrolled='true'] .navbar {
200200
color: var(--facturapi-selected-text);
201201
}
202202

203+
.footer {
204+
background: #1e3756;
205+
border-top: 1px solid rgba(255, 255, 255, 0.06);
206+
color: rgba(255, 255, 255, 0.82);
207+
padding: 2.75rem 0 1.25rem;
208+
}
209+
210+
.footer__links {
211+
column-gap: 2rem;
212+
display: grid;
213+
grid-template-columns: repeat(4, minmax(0, 1fr));
214+
row-gap: 2rem;
215+
margin-bottom: 2rem;
216+
}
217+
218+
.footer__col {
219+
min-width: 0;
220+
}
221+
222+
.footer__title {
223+
border-left: 1px solid #54e0b9;
224+
color: #f0f4f9;
225+
font-size: 0.95rem;
226+
font-weight: 500;
227+
margin-bottom: 1rem;
228+
padding-left: 0.55rem;
229+
}
230+
231+
.footer__item {
232+
color: rgba(255, 255, 255, 0.84);
233+
line-height: 1.45;
234+
margin-top: 0.7rem;
235+
}
236+
237+
.footer__link-item {
238+
color: rgba(255, 255, 255, 0.84);
239+
font-size: 0.95rem;
240+
transition: color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
241+
}
242+
243+
.footer__link-item:hover {
244+
color: #a7c7ff;
245+
text-decoration: none;
246+
}
247+
248+
.footer__bottom {
249+
border-top: 1px solid rgba(255, 255, 255, 0.08);
250+
margin-top: 0;
251+
padding-top: 1rem;
252+
}
253+
254+
.footer__copyright {
255+
color: rgba(255, 255, 255, 0.68);
256+
font-size: 0.95rem;
257+
}
258+
203259
.menu__list-item-collapsible:hover,
204260
.menu__list-item-collapsible--active {
205261
background: var(--blue-l4) !important;
@@ -330,6 +386,10 @@ body[data-scrolled='true'] .navbar {
330386
background-color: var(--facturapi-scroll-thumb) !important;
331387
}
332388

389+
.redocusaurus .menu-content a[href='https://redocly.com/redoc/'] {
390+
display: none !important;
391+
}
392+
333393
html[data-theme='dark'] .redocusaurus button[aria-expanded='true'] {
334394
border-color: transparent !important;
335395
}
@@ -348,6 +408,15 @@ html[data-theme='dark'] .redocusaurus div[aria-hidden='false'] [tabindex='0'] {
348408
border-radius: 8px;
349409
padding: 1.35rem;
350410
}
411+
412+
.footer {
413+
padding-top: 2.25rem;
414+
}
415+
416+
.footer__links {
417+
grid-template-columns: repeat(2, minmax(0, 1fr));
418+
row-gap: 1.5rem;
419+
}
351420
}
352421

353422
@media (max-width: 75rem) {
@@ -361,3 +430,13 @@ html[data-theme='dark'] .redocusaurus div[aria-hidden='false'] [tabindex='0'] {
361430
border-radius: 12px;
362431
}
363432
}
433+
434+
@media (max-width: 576px) {
435+
.footer__links {
436+
grid-template-columns: 1fr;
437+
}
438+
439+
.footer__title {
440+
margin-bottom: 0.75rem;
441+
}
442+
}

0 commit comments

Comments
 (0)