- Edit src/App.js
and save to reload.
-
+ {tokens.map((line, i) => ( ++ )} ++ {line.map((token, key) => ( + + ))} ++ ))} +
+ >
+ );
+};
diff --git a/website/src/components/head.js b/website/src/components/head.js
new file mode 100644
index 0000000000..97de5ec6a1
--- /dev/null
+++ b/website/src/components/head.js
@@ -0,0 +1,49 @@
+import React from 'react';
+import { useStaticQuery, graphql } from 'gatsby';
+import { Helmet } from 'react-helmet';
+
+export const Head = ({ lang = 'en', title, description, uri }) => {
+ const data = useStaticQuery(staticQuery);
+ const { gatsby } = data;
+
+ const htmlAttributes = {
+ lang: lang,
+ };
+
+ const siteTitle = gatsby.meta.title;
+ const siteUrl = gatsby.meta.siteUrl;
+ const siteDescription = gatsby.meta.description;
+ const siteIcon = '/favicon.svg';
+ const socialMediaCardImage = '/preview_DRAFT.png';
+
+ return (
+ {children}
;
+};
diff --git a/website/src/components/integrations-demo.js b/website/src/components/integrations-demo.js
new file mode 100644
index 0000000000..850c7c157f
--- /dev/null
+++ b/website/src/components/integrations-demo.js
@@ -0,0 +1,40 @@
+import React from 'react';
+import { useAtom } from 'jotai';
+import { atomWithImmer } from 'jotai/immer';
+
+import { countAtom } from '~atoms';
+import { Button, Code } from '~components';
+
+export const IntegrationsDemo = () => {
+ const [count, setCount] = useAtom(countAtom);
+
+ const increment = () => setCount((c) => (c = c + 1));
+
+ const code = `import { useAtom } from 'jotai'
+import { atomWithImmer } from 'jotai/immer'
+
+// Create a new atom with an immer-based write function
+const countAtom = atomWithImmer(0)
+
+const Counter = () => {
+ const [count] = useAtom(countAtom)
+ return
+ >
+ );
+};
diff --git a/website/src/components/intro.js b/website/src/components/intro.js
new file mode 100644
index 0000000000..ebd7130bf7
--- /dev/null
+++ b/website/src/components/intro.js
@@ -0,0 +1,26 @@
+import React from 'react';
+
+import { Logo, Button } from '~components';
+
+export const Intro = () => {
+ return (
+
+ >
+ );
+};
diff --git a/website/src/index.css b/website/src/index.css
deleted file mode 100644
index ec2585e8c0..0000000000
--- a/website/src/index.css
+++ /dev/null
@@ -1,13 +0,0 @@
-body {
- margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
- sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
- monospace;
-}
diff --git a/website/src/index.js b/website/src/index.js
deleted file mode 100644
index ba3503c6e8..0000000000
--- a/website/src/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import React from 'react'
-import ReactDOM from 'react-dom'
-import './index.css'
-import App from './App'
-import reportWebVitals from './reportWebVitals'
-
-ReactDOM.render(
-