Skip to content

Commit

Permalink
Style: 更新样式
Browse files Browse the repository at this point in the history
  • Loading branch information
mofan committed Jun 24, 2024
1 parent e35e59d commit 469bf44
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 22 deletions.
4 changes: 4 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ let config: Config = {
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",

i18n: {
defaultLocale: "zh-CN",
locales: ["zh-CN"],
},
plugins: ["docusaurus-plugin-sass"],
presets: [
[
Expand Down
8 changes: 4 additions & 4 deletions setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ export const repository: string = "codepilot";
export const title: string = "CodePilot";
export const logoSrc: string = "./images/logo.svg";
export const logoSrcDark: string = "./images/logoDark.svg";
export const favicon: string = "./images/favicon.png";
export const favicon: string = "./images/logoDark.svg";

export const algolia = {
appId: "TJDGZS0YDF",
apiKey: "0e9dcbffe637972ccd07915e4c776d88",
indexName: "nonfanio",
appId: "",
apiKey: "",
indexName: "",
searchParameters: {
facetFilters: ["language:zh-CN", "version:current"],
},
Expand Down
5 changes: 0 additions & 5 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@
}
}

.link {
/*display: flex;*/
/*align-items: center;*/
/*justify-content: center;*/
}

[data-theme="dark"] .link {
background-color: #1b1b1d;
Expand Down
14 changes: 1 addition & 13 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,21 @@
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";
import HomepageStarted from "@site/src/pages/HomepageStarted";
import BrowserOnly from "@docusaurus/BrowserOnly";

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();

return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<header className={clsx("hero", styles.heroBanner)}>
<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" + " " + styles.link
}
to="/frontend"
>
<HomepageStarted title="Ready to fly" direction="right" />
</Link>
</div>
</div>
</header>
);
Expand Down

0 comments on commit 469bf44

Please sign in to comment.