From 78feda8830d192f905074dcc845f8b62875ee8a2 Mon Sep 17 00:00:00 2001 From: Naman Goel Date: Tue, 28 Nov 2023 12:43:15 -0800 Subject: [PATCH] Docs: Minimal Homepage --- apps/docs/src/pages/index.js | 100 +++++++++++++++++------------------ 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/apps/docs/src/pages/index.js b/apps/docs/src/pages/index.js index 54a034834..da32bc678 100644 --- a/apps/docs/src/pages/index.js +++ b/apps/docs/src/pages/index.js @@ -12,68 +12,68 @@ import * as stylex from '@stylexjs/stylex'; import Layout from '@theme/Layout'; import StylexAnimatedLogo from '@site/components/StylexAnimatedLogo'; import Link from '@docusaurus/Link'; -import FeaturePile from '../../components/FeaturePile'; +// import FeaturePile from '../../components/FeaturePile'; import ZStack from '../../components/ZStack'; // import ThinkingInStylex from '../../docs/learn/04-thinking-in-stylex.mdx'; -import CodeBlock from '@theme/CodeBlock'; +// import CodeBlock from '@theme/CodeBlock'; -const STEP_CONFIGURE = `import plugin from '@stylexjs/rollup-plugin'; +// const STEP_CONFIGURE = `import plugin from '@stylexjs/rollup-plugin'; -const config = () => ({ - plugins: [ - plugin({ ...options }) - ] -}) +// const config = () => ({ +// plugins: [ +// plugin({ ...options }) +// ] +// }) -export default config; +// export default config; -`; +// `; -const STEP_CREATE = `import * as stylex from '@stylexjs/stylex'; +// const STEP_CREATE = `import * as stylex from '@stylexjs/stylex'; -const styles = stylex.create({ - hello: { - display: 'flex', - alignItems: 'center', - justifyContent: 'center', - fontSize: '8rem', - } -}); +// const styles = stylex.create({ +// hello: { +// display: 'flex', +// alignItems: 'center', +// justifyContent: 'center', +// fontSize: '8rem', +// } +// }); -`; +// `; -const STEP_USE = `import * as stylex from '@stylexjs/stylex'; +// const STEP_USE = `import * as stylex from '@stylexjs/stylex'; -const HelloWorld = ({style}) => ( -
- 🎉 -
-) +// const HelloWorld = ({style}) => ( +//
+// 🎉 +//
+// ) -`; +// `; -const Card = ({children}) => ( -
{children}
-); +// const Card = ({children}) => ( +//
{children}
+// ); -const CardTitle = ({children}) => ( -

{children}

-); +// const CardTitle = ({children}) => ( +//

{children}

+// ); -const CardDescription = ({children}) => ( -

{children}

-); +// const CardDescription = ({children}) => ( +//

{children}

+// ); -const CodeContainer = ({children}) => ( -
- - {children} - -
-); +// const CodeContainer = ({children}) => ( +//
+// +// {children} +// +//
+// ); export default function Home() { return ( @@ -126,15 +126,15 @@ export default function Home() { -
-
-
+
*/} + {/*

{'Easy as 1, 2, 3'}

@@ -153,7 +153,7 @@ export default function Home() { {STEP_USE}
-
+ */} {/*