Skip to content

Commit 5b48ecf

Browse files
committed
feat(design): add a modern touch to the homepage and documentation (still wip)
1 parent 7a9689a commit 5b48ecf

17 files changed

Lines changed: 1624 additions & 378 deletions

docs/getting-started/introduction.mdx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ id: introduction
33
title: What is Gotenberg?
44
---
55

6+
import Sponsors from '@site/src/components/documentation/Sponsors';
7+
68
[Gotenberg](https://github.com/gotenberg/gotenberg) is a containerized API for seamless PDF conversion.
79

810
## Overview
@@ -26,20 +28,7 @@ Gotenberg's modular design means each component is independently configurable.
2628
* **Open Source**<br />
2729
Gotenberg is open-source and free to use, making it an accessible solution for integrating PDF conversion into your projects.
2830

29-
## Sponsors
30-
31-
<div className="text--center">
32-
<a href="https://thecodingmachine.com" target="_blank">
33-
<img src="https://user-images.githubusercontent.com/8983173/130324668-9d6e7b35-53a3-49c7-a574-38190d2bd6b0.png" alt="TheCodingMachine Logo" width="429" height="210" />
34-
</a>
35-
<a href="https://pdfme.com?utm_source=gotenberg_github&utm_medium=website" target="_blank">
36-
<img src="https://github.com/user-attachments/assets/2a75dd40-ca18-4d34-acd5-5dd474595168" alt="pdfme Logo" width="429" height="210" />
37-
</a>
38-
</div>
39-
40-
---
41-
42-
Sponsorships help maintain and improve Gotenberg - [become a sponsor](https://github.com/sponsors/gulien) ❤️
31+
<Sponsors />
4332

4433
## Getting Started
4534

docusaurus.config.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ module.exports = {
99
url: "https://gotenberg.dev",
1010
baseUrl: "/",
1111
onBrokenLinks: "throw",
12-
onBrokenMarkdownLinks: "warn",
12+
markdown: {
13+
hooks: {
14+
onBrokenMarkdownLinks: "warn",
15+
onBrokenMarkdownImages: "throw",
16+
},
17+
},
1318
favicon: "img/favicon.ico",
1419
organizationName: "gotenberg",
1520
projectName: "gotenberg.dev",
@@ -22,7 +27,7 @@ module.exports = {
2227
},
2328
announcementBar: {
2429
id: "support_us",
25-
content: `⭐️ &nbsp; If you like Gotenberg, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/gotenberg/gotenberg">GitHub</a>! &nbsp; ⭐️`,
30+
content: `If you like Gotenberg, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/gotenberg/gotenberg">GitHub</a>!️`,
2631
},
2732
// announcementBar: {
2833
// id: "gotenberg_8",
@@ -125,7 +130,7 @@ module.exports = {
125130
copyright: `Copyright © ${new Date().getFullYear()} Julien Neuhart.<br /> Built with <a href="https://docusaurus.io" target="_blank">Docusaurus</a>.`,
126131
},
127132
prism: {
128-
theme: lightTheme,
133+
theme: themes.nightOwl,
129134
additionalLanguages: ["bash", "docker", "json"],
130135
},
131136
colorMode: {

package-lock.json

Lines changed: 28 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Hero.js

Lines changed: 52 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,65 @@ export default function Hero() {
99
<header className={styles.hero}>
1010
<div className="container">
1111
<div className="row">
12-
<div className="col col--6">
13-
<h1>
12+
<div className={clsx("col col--6", styles.heroContent)}>
13+
<h1 className={styles.title}>
1414
A containerized API for seamless
1515
<br />
16-
<span className="highlight">PDF conversion</span>
16+
<span className={styles.highlight}>PDF conversion</span>
1717
</h1>
18-
<Link
19-
className={clsx(
20-
"button button--primary button--lg",
21-
styles.getStartedButton
22-
)}
23-
to="/docs/getting-started/introduction"
24-
>
25-
Getting started
26-
</Link>
27-
<Link
28-
className="button button--secondary button--lg"
29-
to="https://github.com/gotenberg/gotenberg"
30-
>
31-
<img
32-
className={styles.githubIcon}
33-
src={useBaseUrl("/img/github.svg")}
34-
alt="GitHub Logo"
35-
/>{" "}
36-
<span className={styles.githubButtonText}>GitHub</span>
37-
</Link>
38-
<p className="padding-top--md">
18+
19+
<p className={styles.subtitle}>
3920
Available on <strong>amd64</strong>, <strong>arm64</strong>,{" "}
4021
<strong>armhf</strong>, <strong>i386</strong>, and{" "}
41-
<strong>ppc64le</strong> architectures
22+
<strong>ppc64le</strong>
4223
</p>
24+
25+
<div className={styles.buttons}>
26+
<Link
27+
className={clsx(
28+
"button button--primary button--lg",
29+
styles.btnCrisp,
30+
styles.btnPrimary
31+
)}
32+
to="/docs/getting-started/introduction"
33+
>
34+
Getting started
35+
{/* Tiny arrow icon for momentum */}
36+
<svg
37+
width="13"
38+
height="12"
39+
viewBox="0 0 13 12"
40+
fill="none"
41+
xmlns="http://www.w3.org/2000/svg"
42+
className={styles.btnIcon}
43+
>
44+
<path
45+
d="M0 6H11M11 6L6 1M11 6L6 11"
46+
stroke="currentColor"
47+
strokeWidth="2"
48+
/>
49+
</svg>
50+
</Link>
51+
52+
<Link
53+
className={clsx(
54+
"button button--secondary button--lg",
55+
styles.btnCrisp,
56+
styles.btnSecondary
57+
)}
58+
to="https://github.com/gotenberg/gotenberg"
59+
>
60+
<img
61+
className={styles.githubIcon}
62+
src={useBaseUrl("/img/github.svg")}
63+
alt="GitHub Logo"
64+
/>
65+
<span className={styles.githubButtonText}>GitHub</span>
66+
</Link>
67+
</div>
4368
</div>
44-
<div className="col col--6">
69+
70+
<div className={clsx("col col--6", styles.heroImage)}>
4571
<img
4672
className={styles.logo}
4773
src={useBaseUrl("/img/logo_jed.png")}

0 commit comments

Comments
 (0)