Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

add-sponsors-link (#1007)

1ilitea235228b3df
diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx
index 8ef775d0..51f649ef 100644
--- a/src/components/Navbar.jsx
+++ b/src/components/Navbar.jsx
@@ -73,6 +73,16 @@ export default function Navbar() {
>
<i className="opacity-70 bi bi-discord" />
</a>
+ <a
+ title="Sponsor on GitHub"
+ className="p-1 px-1.5 relative flex-inline items-center justify-center hover:opacity-60 bg-white transition-all duration-300 rounded-full text-xl"
+ href={socials.sponsor}
+ target="_blank"
+ rel="noreferrer"
+ >
+ <i className="fa-solid fa-heart text-rose-300" />
+ <i className="absolute top-1.5 left-1.5 fa-regular fa-heart text-rose-400" />
+ </a>
</div>
</div>
<button
@@ -123,6 +133,13 @@ export default function Navbar() {
>
Docs
</Link>
+ <hr />
+ <Link
+ to={socials.sponsor}
+ className="hover:bg-zinc-100 block p-3 text-base font-semibold"
+ >
+ Sponsor
+ </Link>
</SideSheet>
</>
);
diff --git a/src/data/socials.js b/src/data/socials.js
index 5eafc356..fa8e7663 100644
--- a/src/data/socials.js
+++ b/src/data/socials.js
@@ -3,4 +3,5 @@ export const socials = {
discord: "https://discord.gg/BrjZgNrmR6",
twitter: "https://x.com/drawDB_",
github: "https://github.com/drawdb-io/drawdb",
+ sponsor: "https://github.com/sponsors/1ilit",
};
diff --git a/src/pages/LandingPage.jsx b/src/pages/LandingPage.jsx
index eccb9731..81f37f59 100644
--- a/src/pages/LandingPage.jsx
+++ b/src/pages/LandingPage.jsx
@@ -292,6 +292,22 @@ export default function LandingPage() {
</div>
</a>
</div>
+ <div className="px-30 md:px-8 text-center mt-4">
+ <a
+ className="w-full"
+ href={socials.sponsor}
+ target="_blank"
+ rel="noreferrer"
+ >
+ <div className="bg-white border-2 border-rose-400 hover:opacity-90 transition-all duration-300 flex items-center justify-center gap-4 px-12 py-3 rounded-full">
+ <div className="relative text-2xl mt-1">
+ <i className="fa-solid fa-heart text-rose-300" />
+ <i className="absolute top-0.5 left-0 fa-regular fa-heart text-rose-400" />
+ </div>
+ <div className="text-xl font-semibold">Support us</div>
+ </div>
+ </a>
+ </div>
</div>
</div>