Skip to content

Commit 3546741

Browse files
committed
wip: Basic scaffold for TestCaseComponentPage
1 parent 364d9c9 commit 3546741

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import {
2+
TestCaseComponentPage
3+
} from "@cursorless/test-case-component";
4+
import {
5+
cheatsheetBodyClasses,
6+
} from "@cursorless/cheatsheet";
7+
8+
import Head from "next/head";
9+
10+
// See https://github.com/vercel/next.js/discussions/12325#discussioncomment-1116108
11+
export async function getStaticProps() {
12+
return { props: { bodyClasses: cheatsheetBodyClasses } };
13+
}
14+
15+
export function App() {
16+
return (
17+
<>
18+
<Head>
19+
<title>Cursorless cheatsheet</title>
20+
</Head>
21+
<TestCaseComponentPage />
22+
</>
23+
);
24+
}
25+
26+
export default App;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from "./generate-examples";
2+
export * from "./test-case-component";
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import * as React from "react";
2+
3+
export const TestCaseComponentPage: React.FC = () => {
4+
return (
5+
<main className="dark:text-stone-100">
6+
<h1 className="mb-1 mt-2 text-center text-2xl md:text-3xl xl:mt-4">
7+
Test Component Sheet{" "}
8+
<small className="block text-sm">
9+
See the{" "}
10+
{/* <SmartLink to={"https://www.cursorless.org/docs/"}> */}
11+
full documentation
12+
{/* </SmartLink>{" "} */}
13+
to learn more.
14+
</small>
15+
</h1>
16+
<p className="mb-1 mt-2 text-center text-base xl:mt-4">This is just to get the page working with an initial render before adding any more functionality</p>
17+
</main>
18+
);
19+
};

0 commit comments

Comments
 (0)