Skip to content

Commit 4e1835a

Browse files
committed
made a blank page for landing page code
1 parent 0868f1b commit 4e1835a

File tree

3 files changed

+31
-113
lines changed

3 files changed

+31
-113
lines changed

docs/docusaurus.config.js

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const config = {
2323
// to replace "en" with "zh-Hans".
2424
i18n: {
2525
defaultLocale: "en",
26-
locales: ["en"],
26+
locales: ["en"]
2727
},
2828

2929
presets: [
@@ -32,21 +32,13 @@ const config = {
3232
/** @type {import('@docusaurus/preset-classic').Options} */
3333
({
3434
docs: {
35-
sidebarPath: require.resolve("./sidebars.js"),
36-
// Please change this to your repo.
37-
// Remove this to remove the "edit this page" links.
35+
sidebarPath: require.resolve("./sidebars.js")
3836
},
3937
blog: {
40-
showReadingTime: true,
41-
// Please change this to your repo.
42-
// Remove this to remove the "edit this page" links.
43-
editUrl: "https://github.com/antstackio/hover-design/issues/new",
44-
},
45-
theme: {
46-
customCss: require.resolve("./src/css/custom.css"),
47-
},
48-
}),
49-
],
38+
showReadingTime: true
39+
}
40+
})
41+
]
5042
],
5143

5244
themeConfig:
@@ -56,28 +48,28 @@ const config = {
5648
title: "Hover Design",
5749
logo: {
5850
alt: "My Site Logo",
59-
src: "img/logo.svg",
51+
src: "img/logo.svg"
6052
},
6153
items: [
6254
{
6355
type: "doc",
6456
docId: "intro",
6557
position: "left",
66-
label: "Documentation",
58+
label: "Documentation"
6759
},
6860
{
6961
type: "doc",
7062
docId: "wiki/home",
7163
position: "left",
7264
sidebarId: "wiki",
73-
label: "Wiki",
65+
label: "Wiki"
7466
},
7567
{
7668
href: "https://github.com/antstackio/hover-design",
7769
label: "GitHub",
78-
position: "right",
79-
},
80-
],
70+
position: "right"
71+
}
72+
]
8173
},
8274
footer: {
8375
style: "dark",
@@ -87,33 +79,33 @@ const config = {
8779
items: [
8880
{
8981
label: "Tutorial",
90-
to: "/docs/intro",
82+
to: "/docs/intro"
9183
},
9284
{
9385
label: "Wiki",
94-
to: "/docs/wiki/home",
95-
},
96-
],
86+
to: "/docs/wiki/home"
87+
}
88+
]
9789
},
9890

9991
{
10092
title: "More",
10193
items: [
10294
{
10395
label: "GitHub",
104-
href: "https://github.com/antstackio/hover-design",
105-
},
106-
],
107-
},
108-
],
96+
href: "https://github.com/antstackio/hover-design"
97+
}
98+
]
99+
}
100+
]
109101
// copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
110102
},
111103
prism: {
112104
theme: lightCodeTheme,
113-
darkTheme: darkCodeTheme,
114-
},
105+
darkTheme: darkCodeTheme
106+
}
115107
}),
116-
plugins: ["docusaurus-plugin-vanilla-extract"],
108+
plugins: ["docusaurus-plugin-vanilla-extract"]
117109
};
118110

119111
module.exports = config;

docs/src/css/custom.css

Lines changed: 0 additions & 30 deletions
This file was deleted.

docs/src/pages/index.tsx

Lines changed: 7 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,9 @@
11
import React from "react";
2-
import clsx from "clsx";
3-
import Layout from "@theme/Layout";
4-
import Link from "@docusaurus/Link";
5-
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
6-
import styles from "./index.module.css";
7-
import HomepageFeatures from "@site/src/components/HomepageFeatures";
8-
function HomepageHeader() {
9-
const { siteConfig } = useDocusaurusContext();
10-
return (
11-
<header className={clsx("hero hero--primary", styles.heroBanner)}>
12-
<div className="container">
13-
<h1 className="hero__title">{siteConfig.title}</h1>
14-
<p className="hero__subtitle">{siteConfig.tagline}</p>
15-
<div className={styles.buttonFlex}>
16-
<div className={styles.buttons}>
17-
<Link
18-
className="button button--secondary button--lg"
19-
to="/docs/intro"
20-
>
21-
Quick Start
22-
</Link>
23-
</div>
24-
<div className={styles.buttons}>
25-
<a
26-
className="button button--secondary button--lg"
27-
href="https://github.com/antstackio/hover-design"
28-
target="_blank"
29-
rel="noopener noreferrer"
30-
>
31-
Github
32-
</a>
33-
</div>
34-
</div>
35-
</div>
36-
</header>
37-
);
38-
}
392

40-
export default function Home(): JSX.Element {
41-
const { siteConfig } = useDocusaurusContext();
42-
return (
43-
<Layout
44-
title={`${siteConfig.title}`}
45-
description="Description will go into a meta tag in <head />"
46-
>
47-
<HomepageHeader />
48-
<main>
49-
<HomepageFeatures />
50-
</main>
51-
</Layout>
52-
);
53-
}
3+
type Props = {};
4+
5+
const HomePage = (props: Props) => {
6+
return <div>HomePage</div>;
7+
};
8+
9+
export default HomePage;

0 commit comments

Comments
 (0)