Skip to content

Commit

Permalink
remove rights from footer
Browse files Browse the repository at this point in the history
  • Loading branch information
MR-Addict committed May 12, 2023
1 parent 507eb8e commit d24b002
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const config = {
footer: {
style: "dark",
links: [...footer],
copyright: `Copyright © ${new Date().getFullYear()} 校大学生科协. All rights reversed.`
copyright: `Copyright © ${new Date().getFullYear()} 校大学生科协`
},
prism: {
theme: lightCodeTheme,
Expand Down
5 changes: 5 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@
}

.main h1 {
font-size: 3rem;
color: var(--ifm-color-primary);
}

.main p {
font-size: 1.5rem;
}
16 changes: 4 additions & 12 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,14 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext";

import style from "./index.module.css";

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

return (
<main className={style.main}>
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
</main>
);
}

export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout description={siteConfig.title}>
<HomepageHeader />
<main className={style.main}>
<h1>{siteConfig.title}</h1>
<p>{siteConfig.tagline}</p>
</main>
</Layout>
);
}

0 comments on commit d24b002

Please sign in to comment.