Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

REFACTOR (website): Share one navbar and footer across the landing pages, so a link change is made in one place instead of 18 copies

Rostislav Dugin36961d127969
diff --git a/website/AGENTS.md b/website/AGENTS.md
index 92e57d6f..19c302ad 100644
--- a/website/AGENTS.md
+++ b/website/AGENTS.md
@@ -7,6 +7,7 @@ Next.js 16 App Router, static export (`output: "export"`, `trailingSlash: true`)
- `app/(en)/` — the English site (root layout with `lang="en"`). URLs are unchanged by the route group. `not-found.tsx` and `error.tsx` live here; the `[lang]` tree deliberately has none (GitHub Pages serves the single `out/404.html`).
- `app/[lang]/` — translated pages. Root layout renders `<html lang>` per locale, `generateStaticParams()` returns the 5 locales, `dynamicParams = false`.
- `app/components/SiteDocument.tsx` — the shared document skeleton (head preloads, analytics script, body). Both root layouts are thin wrappers over it; never duplicate head markup in a layout.
+- `app/components/LandingHeaderComponent.tsx` and `LandingFooterComponent.tsx` — the navbar and footer of the landing pages (home, `mysql-backup`, `mongodb-backup`) in every locale. Their labels live in `landingLabels.ts`; each page passes only `lang` and its own in-page anchor links. Never copy the navbar or footer markup back into a page.
- `app/i18n.ts` — single source of truth: `LOCALES`, hreflang codes, OG locales, `TRANSLATED_PATHS`, `getLocalizedUrl()` (absolute, for metadata), `getLocalizedHref()` (relative, for in-page links), `getLanguageAlternates()`, `splitLocaleFromPathname()`. Never hand-build a localized URL, absolute or relative.
## Translated page convention
diff --git a/website/app/(en)/mongodb-backup/page.tsx b/website/app/(en)/mongodb-backup/page.tsx
index 49921c69..73934b50 100644
--- a/website/app/(en)/mongodb-backup/page.tsx
+++ b/website/app/(en)/mongodb-backup/page.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { getLanguageAlternates } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,92 +155,11 @@ export default function MongodbBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Features
- </a>
-
- <a
- href="/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Community
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Star on GitHub, it&apos;s really important ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ sectionLinks={[
+ { href: "#features", label: "Features" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -967,92 +887,7 @@ export default function MongodbBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a href="/" className="hover:text-gray-200 transition-colors">
- PostgreSQL backup
- </a>
- <a
- href="/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MySQL and MariaDB backup
- </a>
- <a
- href="/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MongoDB backup
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentation
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Community
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Developer
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. All rights reserved.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent />
</div>
);
}
diff --git a/website/app/(en)/mysql-backup/page.tsx b/website/app/(en)/mysql-backup/page.tsx
index c7e253c2..47355d2a 100644
--- a/website/app/(en)/mysql-backup/page.tsx
+++ b/website/app/(en)/mysql-backup/page.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { getLanguageAlternates } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,106 +155,13 @@ export default function MysqlBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Features
- </a>
-
- <a
- href="#mysql-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MySQL
- </a>
-
- <a
- href="#mariadb-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MariaDB
- </a>
-
- <a
- href="/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Community
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Star on GitHub, it&apos;s really important ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ sectionLinks={[
+ { href: "#features", label: "Features" },
+ { href: "#mysql-backup", label: "MySQL" },
+ { href: "#mariadb-backup", label: "MariaDB" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1068,92 +976,7 @@ export default function MysqlBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a href="/" className="hover:text-gray-200 transition-colors">
- PostgreSQL backup
- </a>
- <a
- href="/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MySQL and MariaDB backup
- </a>
- <a
- href="/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MongoDB backup
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentation
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Community
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Developer
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. All rights reserved.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent />
</div>
);
}
diff --git a/website/app/(en)/page.tsx b/website/app/(en)/page.tsx
index 04fc2d4a..aa3313fa 100644
--- a/website/app/(en)/page.tsx
+++ b/website/app/(en)/page.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { getLanguageAlternates } from "@/app/i18n";
import HeroStatsComponent from "@/app/components/HeroStatsComponent";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -234,93 +235,11 @@ export default function Index() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold pl-1">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#how-to-use"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- How to use
- </a>
-
- <a
- href="/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
-
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Community
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Star on GitHub, it&apos;s really important ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ sectionLinks={[
+ { href: "#how-to-use", label: "How to use" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1687,108 +1606,7 @@ export default function Index() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a href="/" className="hover:text-gray-200 transition-colors">
- PostgreSQL backup
- </a>
- <a
- href="/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MySQL and MariaDB backup
- </a>
- <a
- href="/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MongoDB backup
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentation
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Community
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Developer
- </a>
- </div>
-
- {/* Third row - Legal links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/privacy"
- className="hover:text-gray-200 transition-colors"
- >
- Privacy
- </a>
- <a
- href="/terms-of-use"
- className="hover:text-gray-200 transition-colors"
- >
- Terms of use
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus™. All rights reserved.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent />
</div>
);
}
diff --git a/website/app/[lang]/content/es.tsx b/website/app/[lang]/content/es.tsx
index ddc007d1..c27ec63d 100644
--- a/website/app/[lang]/content/es.tsx
+++ b/website/app/[lang]/content/es.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import HeroStatsComponent from "@/app/components/HeroStatsComponent";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -234,93 +235,12 @@ export default function Index() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/es/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logotipo de Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold pl-1">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#how-to-use"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Cómo usarlo
- </a>
-
- <a
- href="/es/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Documentación
- </a>
-
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Comunidad
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Deje una estrella en GitHub ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="es"
+ sectionLinks={[
+ { href: "#how-to-use", label: "Cómo usarlo" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1732,111 +1652,7 @@ export default function Index() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/es/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logotipo de Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/es/"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de PostgreSQL
- </a>
- <a
- href="/es/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de MySQL y MariaDB
- </a>
- <a
- href="/es/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/es/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentación
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Comunidad
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Desarrollador
- </a>
- </div>
-
- {/* Third row - Legal links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/privacy"
- className="hover:text-gray-200 transition-colors"
- >
- Privacidad
- </a>
- <a
- href="/terms-of-use"
- className="hover:text-gray-200 transition-colors"
- >
- Términos de uso
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus™. Todos los derechos reservados.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="es" />
</div>
);
}
diff --git a/website/app/[lang]/content/fr.tsx b/website/app/[lang]/content/fr.tsx
index ac7e34c3..893b18c0 100644
--- a/website/app/[lang]/content/fr.tsx
+++ b/website/app/[lang]/content/fr.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import HeroStatsComponent from "@/app/components/HeroStatsComponent";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -234,93 +235,12 @@ export default function Index() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/fr/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold pl-1">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#how-to-use"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Comment l&apos;utiliser
- </a>
-
- <a
- href="/fr/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
-
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Communauté
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Mettez une étoile sur GitHub ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="fr"
+ sectionLinks={[
+ { href: "#how-to-use", label: "Comment l'utiliser" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1748,111 +1668,7 @@ export default function Index() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/fr/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/fr/"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde PostgreSQL
- </a>
- <a
- href="/fr/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde MySQL et MariaDB
- </a>
- <a
- href="/fr/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/fr/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentation
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Communauté
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Développeur
- </a>
- </div>
-
- {/* Third row - Legal links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/privacy"
- className="hover:text-gray-200 transition-colors"
- >
- Confidentialité
- </a>
- <a
- href="/terms-of-use"
- className="hover:text-gray-200 transition-colors"
- >
- Conditions d&apos;utilisation
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus™. Tous droits réservés.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="fr" />
</div>
);
}
diff --git a/website/app/[lang]/content/pt.tsx b/website/app/[lang]/content/pt.tsx
index 8e5f2494..46c5c816 100644
--- a/website/app/[lang]/content/pt.tsx
+++ b/website/app/[lang]/content/pt.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import HeroStatsComponent from "@/app/components/HeroStatsComponent";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -234,93 +235,12 @@ export default function Index() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/pt/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logotipo do Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold pl-1">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#how-to-use"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Como usar
- </a>
-
- <a
- href="/pt/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
-
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Comunidade
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Dê uma estrela no GitHub ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="pt"
+ sectionLinks={[
+ { href: "#how-to-use", label: "Como usar" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1718,111 +1638,7 @@ export default function Index() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/pt/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logotipo do Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/pt/"
- className="hover:text-gray-200 transition-colors"
- >
- Backup PostgreSQL
- </a>
- <a
- href="/pt/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Backup MySQL e MariaDB
- </a>
- <a
- href="/pt/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Backup MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/pt/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentação
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Comunidade
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Desenvolvedor
- </a>
- </div>
-
- {/* Third row - Legal links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/privacy"
- className="hover:text-gray-200 transition-colors"
- >
- Privacidade
- </a>
- <a
- href="/terms-of-use"
- className="hover:text-gray-200 transition-colors"
- >
- Termos de uso
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus™. Todos os direitos reservados.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="pt" />
</div>
);
}
diff --git a/website/app/[lang]/content/ru.tsx b/website/app/[lang]/content/ru.tsx
index d8347239..f8f9927d 100644
--- a/website/app/[lang]/content/ru.tsx
+++ b/website/app/[lang]/content/ru.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import HeroStatsComponent from "@/app/components/HeroStatsComponent";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -234,93 +235,12 @@ export default function Index() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/ru/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Логотип Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold pl-1">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#how-to-use"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Как пользоваться
- </a>
-
- <a
- href="/ru/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Документация
- </a>
-
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Сообщество
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Поддержать проект звездой&nbsp;&nbsp;❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="ru"
+ sectionLinks={[
+ { href: "#how-to-use", label: "Как пользоваться" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1681,111 +1601,7 @@ export default function Index() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/ru/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Логотип Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/ru/"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование PostgreSQL
- </a>
- <a
- href="/ru/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование MySQL и MariaDB
- </a>
- <a
- href="/ru/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/ru/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Документация
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Сообщество
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Разработчик
- </a>
- </div>
-
- {/* Third row - Legal links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/privacy"
- className="hover:text-gray-200 transition-colors"
- >
- Конфиденциальность
- </a>
- <a
- href="/terms-of-use"
- className="hover:text-gray-200 transition-colors"
- >
- Условия использования
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus™. Все права защищены.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="ru" />
</div>
);
}
diff --git a/website/app/[lang]/content/zh.tsx b/website/app/[lang]/content/zh.tsx
index e56c1004..0439eef9 100644
--- a/website/app/[lang]/content/zh.tsx
+++ b/website/app/[lang]/content/zh.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import HeroStatsComponent from "@/app/components/HeroStatsComponent";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -234,93 +235,12 @@ export default function Index() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/zh/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold pl-1">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#how-to-use"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 使用方法
- </a>
-
- <a
- href="/zh/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 文档
- </a>
-
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 社区
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- 在 GitHub 上点个 Star ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="zh"
+ sectionLinks={[
+ { href: "#how-to-use", label: "使用方法" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1600,111 +1520,7 @@ export default function Index() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/zh/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/zh/"
- className="hover:text-gray-200 transition-colors"
- >
- PostgreSQL 备份
- </a>
- <a
- href="/zh/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MySQL 和 MariaDB 备份
- </a>
- <a
- href="/zh/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MongoDB 备份
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/zh/installation"
- className="hover:text-gray-200 transition-colors"
- >
- 文档
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- 社区
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- 开发者
- </a>
- </div>
-
- {/* Third row - Legal links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/privacy"
- className="hover:text-gray-200 transition-colors"
- >
- 隐私政策
- </a>
- <a
- href="/terms-of-use"
- className="hover:text-gray-200 transition-colors"
- >
- 使用条款
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus™。保留所有权利。
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="zh" />
</div>
);
}
diff --git a/website/app/[lang]/mongodb-backup/content/es.tsx b/website/app/[lang]/mongodb-backup/content/es.tsx
index 032567a5..d3ea6123 100644
--- a/website/app/[lang]/mongodb-backup/content/es.tsx
+++ b/website/app/[lang]/mongodb-backup/content/es.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,92 +155,12 @@ export default function MongodbBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/es/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logotipo de Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Funciones
- </a>
-
- <a
- href="/es/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Documentación
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Comunidad
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Dénos una estrella en GitHub, es muy importante ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="es"
+ sectionLinks={[
+ { href: "#features", label: "Funciones" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -985,95 +906,7 @@ export default function MongodbBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/es/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logotipo de Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/es/"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de PostgreSQL
- </a>
- <a
- href="/es/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de MySQL y MariaDB
- </a>
- <a
- href="/es/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/es/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentación
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Comunidad
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Desarrollador
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Todos los derechos reservados.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="es" />
</div>
);
}
diff --git a/website/app/[lang]/mongodb-backup/content/fr.tsx b/website/app/[lang]/mongodb-backup/content/fr.tsx
index 691a2f17..8cd3b774 100644
--- a/website/app/[lang]/mongodb-backup/content/fr.tsx
+++ b/website/app/[lang]/mongodb-backup/content/fr.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,92 +155,12 @@ export default function MongodbBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/fr/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logo Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Fonctionnalités
- </a>
-
- <a
- href="/fr/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Communauté
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Mettez une étoile sur GitHub ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="fr"
+ sectionLinks={[
+ { href: "#features", label: "Fonctionnalités" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -985,95 +906,7 @@ export default function MongodbBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/fr/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logo Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/fr/"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde PostgreSQL
- </a>
- <a
- href="/fr/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde MySQL et MariaDB
- </a>
- <a
- href="/fr/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/fr/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentation
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Communauté
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Développeur
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Tous droits réservés.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="fr" />
</div>
);
}
diff --git a/website/app/[lang]/mongodb-backup/content/pt.tsx b/website/app/[lang]/mongodb-backup/content/pt.tsx
index e4d4a052..5eaddda2 100644
--- a/website/app/[lang]/mongodb-backup/content/pt.tsx
+++ b/website/app/[lang]/mongodb-backup/content/pt.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,92 +155,12 @@ export default function MongodbBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/pt/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logo do Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Funcionalidades
- </a>
-
- <a
- href="/pt/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Comunidade
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Deixe uma estrela no GitHub, é muito importante ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="pt"
+ sectionLinks={[
+ { href: "#features", label: "Funcionalidades" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -983,95 +904,7 @@ export default function MongodbBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/pt/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logo do Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/pt/"
- className="hover:text-gray-200 transition-colors"
- >
- Backup PostgreSQL
- </a>
- <a
- href="/pt/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Backup MySQL e MariaDB
- </a>
- <a
- href="/pt/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Backup MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/pt/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentação
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Comunidade
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Desenvolvedor
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Todos os direitos reservados.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="pt" />
</div>
);
}
diff --git a/website/app/[lang]/mongodb-backup/content/ru.tsx b/website/app/[lang]/mongodb-backup/content/ru.tsx
index 21dd53f0..cf1fdcac 100644
--- a/website/app/[lang]/mongodb-backup/content/ru.tsx
+++ b/website/app/[lang]/mongodb-backup/content/ru.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,92 +155,12 @@ export default function MongodbBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/ru/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Логотип Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Возможности
- </a>
-
- <a
- href="/ru/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Документация
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Сообщество
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Поставьте звезду на GitHub, это правда важно ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="ru"
+ sectionLinks={[
+ { href: "#features", label: "Возможности" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -973,95 +894,7 @@ export default function MongodbBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/ru/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Логотип Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/ru/"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование PostgreSQL
- </a>
- <a
- href="/ru/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование MySQL и MariaDB
- </a>
- <a
- href="/ru/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/ru/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Документация
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Сообщество
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Разработчик
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Все права защищены.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="ru" />
</div>
);
}
diff --git a/website/app/[lang]/mongodb-backup/content/zh.tsx b/website/app/[lang]/mongodb-backup/content/zh.tsx
index d4acf19a..c3b3e00c 100644
--- a/website/app/[lang]/mongodb-backup/content/zh.tsx
+++ b/website/app/[lang]/mongodb-backup/content/zh.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,92 +155,12 @@ export default function MongodbBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/zh/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 功能
- </a>
-
- <a
- href="/zh/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 文档
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 社区
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- 在 GitHub 上点个 Star ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="zh"
+ sectionLinks={[
+ { href: "#features", label: "功能" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -949,95 +870,7 @@ export default function MongodbBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/zh/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/zh/"
- className="hover:text-gray-200 transition-colors"
- >
- PostgreSQL 备份
- </a>
- <a
- href="/zh/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MySQL 和 MariaDB 备份
- </a>
- <a
- href="/zh/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MongoDB 备份
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/zh/installation"
- className="hover:text-gray-200 transition-colors"
- >
- 文档
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- 社区
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- 开发者
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus。保留所有权利。
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="zh" />
</div>
);
}
diff --git a/website/app/[lang]/mysql-backup/content/es.tsx b/website/app/[lang]/mysql-backup/content/es.tsx
index 7b4baaf3..e4da77c2 100644
--- a/website/app/[lang]/mysql-backup/content/es.tsx
+++ b/website/app/[lang]/mysql-backup/content/es.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,106 +155,14 @@ export default function MysqlBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/es/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logotipo de Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Funciones
- </a>
-
- <a
- href="#mysql-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MySQL
- </a>
-
- <a
- href="#mariadb-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MariaDB
- </a>
-
- <a
- href="/es/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Documentación
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Comunidad
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Dénos una estrella en GitHub, es muy importante ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="es"
+ sectionLinks={[
+ { href: "#features", label: "Funciones" },
+ { href: "#mysql-backup", label: "MySQL" },
+ { href: "#mariadb-backup", label: "MariaDB" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1087,95 +996,7 @@ export default function MysqlBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/es/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logotipo de Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/es/"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de PostgreSQL
- </a>
- <a
- href="/es/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de MySQL y MariaDB
- </a>
- <a
- href="/es/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Copia de seguridad de MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/es/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentación
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Comunidad
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Desarrollador
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Todos los derechos reservados.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="es" />
</div>
);
}
diff --git a/website/app/[lang]/mysql-backup/content/fr.tsx b/website/app/[lang]/mysql-backup/content/fr.tsx
index 823134b2..152c4c1e 100644
--- a/website/app/[lang]/mysql-backup/content/fr.tsx
+++ b/website/app/[lang]/mysql-backup/content/fr.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,106 +155,14 @@ export default function MysqlBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/fr/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logo Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Fonctionnalités
- </a>
-
- <a
- href="#mysql-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MySQL
- </a>
-
- <a
- href="#mariadb-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MariaDB
- </a>
-
- <a
- href="/fr/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Communauté
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Mettez une étoile sur GitHub ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="fr"
+ sectionLinks={[
+ { href: "#features", label: "Fonctionnalités" },
+ { href: "#mysql-backup", label: "MySQL" },
+ { href: "#mariadb-backup", label: "MariaDB" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1086,95 +995,7 @@ export default function MysqlBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/fr/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logo Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/fr/"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde PostgreSQL
- </a>
- <a
- href="/fr/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde MySQL et MariaDB
- </a>
- <a
- href="/fr/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Sauvegarde MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/fr/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentation
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Communauté
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Développeur
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Tous droits réservés.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="fr" />
</div>
);
}
diff --git a/website/app/[lang]/mysql-backup/content/pt.tsx b/website/app/[lang]/mysql-backup/content/pt.tsx
index 3f5e2033..1f94c0ff 100644
--- a/website/app/[lang]/mysql-backup/content/pt.tsx
+++ b/website/app/[lang]/mysql-backup/content/pt.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,106 +155,14 @@ export default function MysqlBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/pt/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Logo do Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Funcionalidades
- </a>
-
- <a
- href="#mysql-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MySQL
- </a>
-
- <a
- href="#mariadb-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MariaDB
- </a>
-
- <a
- href="/pt/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Docs
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Comunidade
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Deixe uma estrela no GitHub, é muito importante ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="pt"
+ sectionLinks={[
+ { href: "#features", label: "Funcionalidades" },
+ { href: "#mysql-backup", label: "MySQL" },
+ { href: "#mariadb-backup", label: "MariaDB" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1081,95 +990,7 @@ export default function MysqlBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/pt/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Logo do Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/pt/"
- className="hover:text-gray-200 transition-colors"
- >
- Backup PostgreSQL
- </a>
- <a
- href="/pt/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Backup MySQL e MariaDB
- </a>
- <a
- href="/pt/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Backup MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/pt/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Documentação
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Comunidade
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Desenvolvedor
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Todos os direitos reservados.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="pt" />
</div>
);
}
diff --git a/website/app/[lang]/mysql-backup/content/ru.tsx b/website/app/[lang]/mysql-backup/content/ru.tsx
index 676540cc..94002dd3 100644
--- a/website/app/[lang]/mysql-backup/content/ru.tsx
+++ b/website/app/[lang]/mysql-backup/content/ru.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,106 +155,14 @@ export default function MysqlBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/ru/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Логотип Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Возможности
- </a>
-
- <a
- href="#mysql-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MySQL
- </a>
-
- <a
- href="#mariadb-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MariaDB
- </a>
-
- <a
- href="/ru/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Документация
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- Сообщество
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- Поставьте звезду на GitHub, это правда важно ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="ru"
+ sectionLinks={[
+ { href: "#features", label: "Возможности" },
+ { href: "#mysql-backup", label: "MySQL" },
+ { href: "#mariadb-backup", label: "MariaDB" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1074,95 +983,7 @@ export default function MysqlBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/ru/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Логотип Databasus"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/ru/"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование PostgreSQL
- </a>
- <a
- href="/ru/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование MySQL и MariaDB
- </a>
- <a
- href="/ru/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- Резервное копирование MongoDB
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/ru/installation"
- className="hover:text-gray-200 transition-colors"
- >
- Документация
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Сообщество
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- Разработчик
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus. Все права защищены.
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="ru" />
</div>
);
}
diff --git a/website/app/[lang]/mysql-backup/content/zh.tsx b/website/app/[lang]/mysql-backup/content/zh.tsx
index be560894..0b90739a 100644
--- a/website/app/[lang]/mysql-backup/content/zh.tsx
+++ b/website/app/[lang]/mysql-backup/content/zh.tsx
@@ -1,5 +1,6 @@
import type { Metadata } from "next";
-import LanguageSelectorComponent from "@/app/components/LanguageSelectorComponent";
+import LandingFooterComponent from "@/app/components/LandingFooterComponent";
+import LandingHeaderComponent from "@/app/components/LandingHeaderComponent";
import { OG_LOCALES, getLanguageAlternates, getLocalizedUrl } from "@/app/i18n";
import InstallationComponent from "@/app/components/InstallationComponent";
@@ -154,106 +155,14 @@ export default function MysqlBackupPage() {
}}
/>
- {/* HEADER */}
- <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
- <a href="/zh/" className="flex items-center gap-2.5">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- fetchPriority="high"
- loading="eager"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- {/* Desktop Navigation */}
- <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
- <a
- href="#features"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 功能
- </a>
-
- <a
- href="#mysql-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MySQL
- </a>
-
- <a
- href="#mariadb-backup"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- MariaDB
- </a>
-
- <a
- href="/zh/installation"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 文档
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="py-2 hover:text-gray-300 transition-colors"
- >
- 社区
- </a>
- </div>
-
- {/* GitHub + language split button */}
- <div className="flex items-stretch">
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
- >
- <svg
- aria-hidden={true}
- width="24"
- height="24"
- viewBox="0 0 20 20"
- fill="none"
- xmlns="http://www.w3.org/2000/svg"
- >
- <g clipPath="url(#clip0_1_2459)">
- <path
- fillRule="evenodd"
- clipRule="evenodd"
- d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
- fill="white"
- />
- </g>
- <defs>
- <clipPath id="clip0_1_2459">
- <rect width="20" height="20" fill="white" />
- </clipPath>
- </defs>
- </svg>
- <span className="hidden 2xl:inline">
- 在 GitHub 上点个 Star ❤️
- </span>
- <span className="inline 2xl:hidden">GitHub</span>
- </a>
-
- <LanguageSelectorComponent isSplitEnd />
- </div>
- </nav>
- </div>
- </header>
+ <LandingHeaderComponent
+ lang="zh"
+ sectionLinks={[
+ { href: "#features", label: "功能" },
+ { href: "#mysql-backup", label: "MySQL" },
+ { href: "#mariadb-backup", label: "MariaDB" },
+ ]}
+ />
{/* MAIN SECTION */}
<main className="relative overflow-hidden pt-[60px] md:pt-[68px]">
@@ -1047,95 +956,7 @@ export default function MysqlBackupPage() {
</div>
</section>
- {/* FOOTER */}
- <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
- <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
- <div className="flex flex-col items-center">
- <a href="/zh/" className="flex items-center gap-2.5 mb-6">
- <img
- src="/logo.svg"
- alt="Databasus logo"
- width={32}
- height={32}
- className="h-7 w-7 md:h-8 md:w-8"
- />
-
- <span className="text-base md:text-lg font-semibold">
- Databasus
- </span>
- </a>
-
- <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
- {/* First row - Database backup links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/zh/"
- className="hover:text-gray-200 transition-colors"
- >
- PostgreSQL 备份
- </a>
- <a
- href="/zh/mysql-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MySQL 和 MariaDB 备份
- </a>
- <a
- href="/zh/mongodb-backup"
- className="hover:text-gray-200 transition-colors"
- >
- MongoDB 备份
- </a>
- </div>
-
- {/* Second row - General links */}
- <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
- <a
- href="/zh/installation"
- className="hover:text-gray-200 transition-colors"
- >
- 文档
- </a>
- <a
- href="https://github.com/databasus/databasus"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- GitHub
- </a>
- <a
- href="https://t.me/databasus_community"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- 社区
- </a>
- <a
- href="https://rostislav-dugin.com"
- target="_blank"
- rel="noopener noreferrer"
- className="hover:text-gray-200 transition-colors"
- >
- 开发者
- </a>
- </div>
- </div>
-
- <a
- href="mailto:[email protected]"
- className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
- >
- </a>
-
- <p className="text-gray-400 text-sm md:text-base text-center">
- © 2026 Databasus。保留所有权利。
- </p>
- </div>
- </div>
- </footer>
+ <LandingFooterComponent lang="zh" />
</div>
);
}
diff --git a/website/app/components/LandingFooterComponent.tsx b/website/app/components/LandingFooterComponent.tsx
new file mode 100644
index 00000000..52d0eff9
--- /dev/null
+++ b/website/app/components/LandingFooterComponent.tsx
@@ -0,0 +1,118 @@
+import { getLocalizedHref, type Locale } from "@/app/i18n";
+import { LANDING_LABELS } from "./landingLabels";
+
+export default function LandingFooterComponent({
+ lang = "en",
+}: {
+ lang?: Locale | "en";
+}) {
+ const labels = LANDING_LABELS[lang];
+ const homeHref = getLocalizedHref(lang, "");
+
+ return (
+ <footer className="py-8 md:py-12 border-t border-[#ffffff20] px-4 md:px-6 lg:px-0">
+ <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
+ <div className="flex flex-col items-center">
+ <a href={homeHref} className="flex items-center gap-2.5 mb-6">
+ <img
+ src="/logo.svg"
+ alt={labels.logoAlt}
+ width={32}
+ height={32}
+ className="h-7 w-7 md:h-8 md:w-8"
+ />
+
+ <span className="text-base md:text-lg font-semibold">
+ Databasus
+ </span>
+ </a>
+
+ <div className="flex flex-col gap-3 mb-4 text-sm md:text-base">
+ {/* First row - Database backup links */}
+ <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
+ <a
+ href={homeHref}
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.postgresqlBackup}
+ </a>
+ <a
+ href={getLocalizedHref(lang, "mysql-backup")}
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.mysqlBackup}
+ </a>
+ <a
+ href={getLocalizedHref(lang, "mongodb-backup")}
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.mongodbBackup}
+ </a>
+ </div>
+
+ {/* Second row - General links */}
+ <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
+ <a
+ href={getLocalizedHref(lang, "installation")}
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.documentation}
+ </a>
+ <a
+ href="https://github.com/databasus/databasus"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="hover:text-gray-200 transition-colors"
+ >
+ GitHub
+ </a>
+ <a
+ href="https://t.me/databasus_community"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.community}
+ </a>
+ <a
+ href="https://rostislav-dugin.com"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.developer}
+ </a>
+ </div>
+
+ {/* Third row - Legal links */}
+ <div className="flex flex-wrap items-center justify-center gap-4 md:gap-6">
+ <a
+ href="/privacy"
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.privacy}
+ </a>
+ <a
+ href="/terms-of-use"
+ className="hover:text-gray-200 transition-colors"
+ >
+ {labels.termsOfUse}
+ </a>
+ </div>
+ </div>
+
+ <a
+ href="mailto:[email protected]"
+ className="hover:text-gray-200 transition-colors text-sm md:text-base mb-4"
+ >
+ </a>
+
+ <p className="text-gray-400 text-sm md:text-base text-center">
+ {labels.copyright}
+ </p>
+ </div>
+ </div>
+ </footer>
+ );
+}
diff --git a/website/app/components/LandingHeaderComponent.tsx b/website/app/components/LandingHeaderComponent.tsx
new file mode 100644
index 00000000..ea08d220
--- /dev/null
+++ b/website/app/components/LandingHeaderComponent.tsx
@@ -0,0 +1,111 @@
+import { getLocalizedHref, type Locale } from "@/app/i18n";
+import LanguageSelectorComponent from "./LanguageSelectorComponent";
+import { LANDING_LABELS } from "./landingLabels";
+
+export interface LandingSectionLink {
+ href: string;
+ label: string;
+}
+
+// Fixed top navbar of the landing pages. sectionLinks are the page's own
+// in-page anchors, shown before the links every landing page shares.
+export default function LandingHeaderComponent({
+ lang = "en",
+ sectionLinks,
+}: {
+ lang?: Locale | "en";
+ sectionLinks: LandingSectionLink[];
+}) {
+ const labels = LANDING_LABELS[lang];
+ const homeHref = getLocalizedHref(lang, "");
+
+ return (
+ <header className="fixed top-0 left-0 right-0 z-50 flex justify-center pt-3 md:pt-5 px-4 md:px-0">
+ <div className="mx-auto w-full max-w-[1000px] 2xl:max-w-[1200px]">
+ <nav className="relative flex items-center justify-between border backdrop-blur-md bg-[#0C0E13]/80 md:bg-[#0C0E13]/20 border-[#ffffff20] px-3 py-2 rounded-xl">
+ <a href={homeHref} className="flex items-center gap-2.5">
+ <img
+ src="/logo.svg"
+ alt={labels.logoAlt}
+ width={32}
+ height={32}
+ className="h-7 w-7 md:h-8 md:w-8"
+ fetchPriority="high"
+ loading="eager"
+ />
+
+ <span className="text-base md:text-lg font-semibold pl-1">
+ Databasus
+ </span>
+ </a>
+
+ {/* Desktop Navigation */}
+ <div className="absolute left-1/2 -translate-x-1/2 hidden lg:flex items-center gap-3">
+ {sectionLinks.map((link) => (
+ <a
+ key={link.href}
+ href={link.href}
+ className="py-2 hover:text-gray-300 transition-colors"
+ >
+ {link.label}
+ </a>
+ ))}
+
+ <a
+ href={getLocalizedHref(lang, "installation")}
+ className="py-2 hover:text-gray-300 transition-colors"
+ >
+ {labels.docs}
+ </a>
+
+ <a
+ href="https://t.me/databasus_community"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="py-2 hover:text-gray-300 transition-colors"
+ >
+ {labels.community}
+ </a>
+ </div>
+
+ {/* GitHub + language split button */}
+ <div className="flex items-stretch">
+ <a
+ href="https://github.com/databasus/databasus"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="flex items-center gap-2 hover:opacity-70 rounded-l-lg px-2 md:px-3 py-2 text-[14px] border border-[#ffffff20] bg-[#0C0E13] transition-colors"
+ >
+ <svg
+ aria-hidden={true}
+ width="24"
+ height="24"
+ viewBox="0 0 20 20"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g clipPath="url(#clip0_1_2459)">
+ <path
+ fillRule="evenodd"
+ clipRule="evenodd"
+ d="M9.9702 0C4.45694 0 0 4.4898 0 10.0443C0 14.4843 2.85571 18.2427 6.81735 19.5729C7.31265 19.6729 7.49408 19.3567 7.49408 19.0908C7.49408 18.858 7.47775 18.0598 7.47775 17.2282C4.70429 17.8269 4.12673 16.0308 4.12673 16.0308C3.68102 14.8667 3.02061 14.5676 3.02061 14.5676C2.11286 13.9522 3.08673 13.9522 3.08673 13.9522C4.09367 14.0188 4.62204 14.9833 4.62204 14.9833C5.51327 16.5131 6.94939 16.0808 7.52714 15.8147C7.60959 15.1661 7.87388 14.7171 8.15449 14.4678C5.94245 14.2349 3.6151 13.3702 3.6151 9.51204C3.6151 8.41449 4.01102 7.51653 4.63837 6.81816C4.53939 6.56878 4.19265 5.53755 4.73755 4.15735C4.73755 4.15735 5.57939 3.89122 7.47755 5.18837C8.29022 4.9685 9.12832 4.85666 9.9702 4.85571C10.812 4.85571 11.6702 4.97225 12.4627 5.18837C14.361 3.89122 15.2029 4.15735 15.2029 4.15735C15.7478 5.53755 15.4008 6.56878 15.3018 6.81816C15.9457 7.51653 16.3253 8.41449 16.3253 9.51204C16.3253 13.3702 13.998 14.2182 11.7694 14.4678C12.1327 14.7837 12.4461 15.3822 12.4461 16.3302C12.4461 17.6771 12.4298 18.7582 12.4298 19.0906C12.4298 19.3567 12.6114 19.6729 13.1065 19.5731C17.0682 18.2424 19.9239 14.4843 19.9239 10.0443C19.9402 4.4898 15.4669 0 9.9702 0Z"
+ fill="white"
+ />
+ </g>
+ <defs>
+ <clipPath id="clip0_1_2459">
+ <rect width="20" height="20" fill="white" />
+ </clipPath>
+ </defs>
+ </svg>
+ <span className="hidden 2xl:inline">{labels.starOnGithub}</span>
+ <span className="inline 2xl:hidden">GitHub</span>
+ </a>
+
+ <LanguageSelectorComponent isSplitEnd />
+ </div>
+ </nav>
+ </div>
+ </header>
+ );
+}
diff --git a/website/app/components/landingLabels.ts b/website/app/components/landingLabels.ts
new file mode 100644
index 00000000..9118df2f
--- /dev/null
+++ b/website/app/components/landingLabels.ts
@@ -0,0 +1,103 @@
+import type { Locale } from "@/app/i18n";
+
+export interface LandingLabels {
+ logoAlt: string;
+ docs: string;
+ community: string;
+ starOnGithub: string;
+ postgresqlBackup: string;
+ mysqlBackup: string;
+ mongodbBackup: string;
+ documentation: string;
+ developer: string;
+ privacy: string;
+ termsOfUse: string;
+ copyright: string;
+}
+
+export const LANDING_LABELS: Record<Locale | "en", LandingLabels> = {
+ en: {
+ logoAlt: "Databasus logo",
+ docs: "Docs",
+ community: "Community",
+ starOnGithub: "Star on GitHub, it's really important ❤️",
+ postgresqlBackup: "PostgreSQL backup",
+ mysqlBackup: "MySQL and MariaDB backup",
+ mongodbBackup: "MongoDB backup",
+ documentation: "Documentation",
+ developer: "Developer",
+ privacy: "Privacy",
+ termsOfUse: "Terms of use",
+ copyright: "© 2026 Databasus™. All rights reserved.",
+ },
+ ru: {
+ logoAlt: "Логотип Databasus",
+ docs: "Документация",
+ community: "Сообщество",
+ starOnGithub: "Поддержать проект звездой  ❤️",
+ postgresqlBackup: "Резервное копирование PostgreSQL",
+ mysqlBackup: "Резервное копирование MySQL и MariaDB",
+ mongodbBackup: "Резервное копирование MongoDB",
+ documentation: "Документация",
+ developer: "Разработчик",
+ privacy: "Конфиденциальность",
+ termsOfUse: "Условия использования",
+ copyright: "© 2026 Databasus™. Все права защищены.",
+ },
+ es: {
+ logoAlt: "Logotipo de Databasus",
+ docs: "Documentación",
+ community: "Comunidad",
+ starOnGithub: "Deje una estrella en GitHub ❤️",
+ postgresqlBackup: "Copia de seguridad de PostgreSQL",
+ mysqlBackup: "Copia de seguridad de MySQL y MariaDB",
+ mongodbBackup: "Copia de seguridad de MongoDB",
+ documentation: "Documentación",
+ developer: "Desarrollador",
+ privacy: "Privacidad",
+ termsOfUse: "Términos de uso",
+ copyright: "© 2026 Databasus™. Todos los derechos reservados.",
+ },
+ pt: {
+ logoAlt: "Logotipo do Databasus",
+ docs: "Docs",
+ community: "Comunidade",
+ starOnGithub: "Dê uma estrela no GitHub ❤️",
+ postgresqlBackup: "Backup PostgreSQL",
+ mysqlBackup: "Backup MySQL e MariaDB",
+ mongodbBackup: "Backup MongoDB",
+ documentation: "Documentação",
+ developer: "Desenvolvedor",
+ privacy: "Privacidade",
+ termsOfUse: "Termos de uso",
+ copyright: "© 2026 Databasus™. Todos os direitos reservados.",
+ },
+ zh: {
+ logoAlt: "Databasus logo",
+ docs: "文档",
+ community: "社区",
+ starOnGithub: "在 GitHub 上点个 Star ❤️",
+ postgresqlBackup: "PostgreSQL 备份",
+ mysqlBackup: "MySQL 和 MariaDB 备份",
+ mongodbBackup: "MongoDB 备份",
+ documentation: "文档",
+ developer: "开发者",
+ privacy: "隐私政策",
+ termsOfUse: "使用条款",
+ copyright: "© 2026 Databasus™。保留所有权利。",
+ },
+ fr: {
+ logoAlt: "Logo Databasus",
+ docs: "Docs",
+ community: "Communauté",
+ starOnGithub: "Mettez une étoile sur GitHub ❤️",
+ postgresqlBackup: "Sauvegarde PostgreSQL",
+ mysqlBackup: "Sauvegarde MySQL et MariaDB",
+ mongodbBackup: "Sauvegarde MongoDB",
+ documentation: "Documentation",
+ developer: "Développeur",
+ privacy: "Confidentialité",
+ termsOfUse: "Conditions d'utilisation",
+ copyright: "© 2026 Databasus™. Tous droits réservés.",
+ },
+};