Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specification optimization code structure new #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import clsx from "clsx";
import Heading from "@theme/Heading";
import styles from "./styles.module.css";
import styles from "../css/styles.module.css";
import Translate, { translate } from "@docusaurus/Translate";
import React from "react";

Expand Down
12 changes: 0 additions & 12 deletions src/components/HomepageFeatures/styles.module.css

This file was deleted.

17 changes: 17 additions & 0 deletions src/components/HomepageFoot.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";

export default function HomepageFoot() {
return (
<div
style={{
display: "flex",
justifyContent: "center",
alignItems: "center",
width: "100%",
height: "100px",
}}
>
<img src="..//cat.svg" style={{ width: "100px", height: "100px" }} />
</div>
);
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { Card } from "antd";

export const HomePageLanguageCard = () => (
export const HomepageLanguageCard = () => (
<div>
<div style={{ textAlign: "center" }}>
<h2>Quick Start!</h2>
Expand Down
12 changes: 9 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import styles from "./index.module.css";
import Translate, { translate } from "@docusaurus/Translate";
import AOS from "aos";
import "aos/dist/aos.css";
import { HomePageLanguageCard } from "../components/HomePageLanguageCard";
import { HomepageLanguageCard } from "../components/HomepageLanguageCard";
import { HomepageCodeDisplay } from "../components/HomepageCode";
import HomepageFoot from "../components/HomepageFoot";

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
Expand Down Expand Up @@ -103,15 +104,20 @@ export default function Home(): JSX.Element {
</main>
<main>
<div data-aos="fade-up" data-aos-delay="10">
<HomePageLanguageCard />
<HomepageLanguageCard />
</div>
</main>
<main>
<div data-aos="fade-up" data-aos-delay="10">
<HomepageCodeDisplay />
</div>
</main>
<main>
<div data-aos="fade-up" data-aos-delay="10">
<HomepageFoot />
</div>
</main>
</Layout>
</>
);
);
}