Skip to content

Commit

Permalink
Change Header
Browse files Browse the repository at this point in the history
	modified:   README.md
	modified:   docusaurus.config.js
	new file:   src/pages/index.en.js
	new file:   src/pages/index.es.js
	new file:   src/pages/index.zh-hk.js
  • Loading branch information
tianrking committed Jul 10, 2024
1 parent 4ff791f commit 989e627
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ yarn swizzle --list

yarn swizzle @docusaurus/theme-classic Footer --wrap


yarn swizzle @docusaurus/theme-classic Footer --eject

10 changes: 7 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://your-docusaurus-site.example.com',
url: 'https://me.w0x7ce.eu',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
Expand All @@ -23,9 +23,10 @@ const config = {
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.

onBrokenLinks: 'throw',
// onBrokenLinks: 'throw',
onBrokenLinks: 'ignore',
onBrokenMarkdownLinks: 'warn',

// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
Expand Down Expand Up @@ -63,9 +64,12 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({

// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
hideOnScroll: true,
style: 'dark',
title: '🌵 El Jardín Secreto 🌵',
logo: {
alt: 'Logo de El Jardín Secreto',
Expand Down
44 changes: 44 additions & 0 deletions src/pages/index.en.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';

import Heading from '@theme/Heading';
import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
// <header className={clsx('hero hero--primary', styles.heroBanner)}>
<header className={clsx('hero', styles.heroBanner, styles.heroSecretGarden)}>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/blog">
👉 ¡Descubre El Jardín Secreto de w0x7ce! 👈
</Link>
</div>
</div>
</header>
);
}

export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="El_Jardin_Secreto_de_w0x7ce<head />">
<HomepageHeader />
<main className={styles.mainContent}>
<HomepageFeatures />
</main>
</Layout>
);
}
44 changes: 44 additions & 0 deletions src/pages/index.es.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';

import Heading from '@theme/Heading';
import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
// <header className={clsx('hero hero--primary', styles.heroBanner)}>
<header className={clsx('hero', styles.heroBanner, styles.heroSecretGarden)}>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/blog">
👉 ¡Descubre El Jardín Secreto de w0x7ce! 👈
</Link>
</div>
</div>
</header>
);
}

export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="El_Jardin_Secreto_de_w0x7ce<head />">
<HomepageHeader />
<main className={styles.mainContent}>
<HomepageFeatures />
</main>
</Layout>
);
}
44 changes: 44 additions & 0 deletions src/pages/index.zh-hk.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import clsx from 'clsx';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';

import Heading from '@theme/Heading';
import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
// <header className={clsx('hero hero--primary', styles.heroBanner)}>
<header className={clsx('hero', styles.heroBanner, styles.heroSecretGarden)}>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/blog">
👉 ¡w0x7ce的秘密花園! 👈
</Link>
</div>
</div>
</header>
);
}

export default function Home() {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="El_Jardin_Secreto_de_w0x7ce<head />">
<HomepageHeader />
<main className={styles.mainContent}>
<HomepageFeatures />
</main>
</Layout>
);
}

0 comments on commit 989e627

Please sign in to comment.