Skip to content

Commit 14da9d8

Browse files
cirephemellsonNicklaurakalbag
authored
Stately 2.0 landing page (#266)
* init * WIP * WIP * WIP * Move to components dir * WIP * some ts fixes * fix headlessui import * fix preview build * fix ssr * Fix pricing page and add crisp chat bot * make logo link relative * add head data * test removing full url * revert * remove old landing page css * Minor improvements * Improve accessibility on landing page (#260) * Add alt text and alt text placeholders for accessibility * Make HRs into LIs with aria-role=none to hide from assistive tech * Make nested lists into nested ULs and LIs * Make example box list more semantic to improve accessibility * Use semantic heading levels and finish alt text for accessibility * Add first pass images to landing page (#262) * Replace example image with new UI and room readings machine * Add initial pass at event schema image * Add initial pass image for generate flow * More image updates * Add design and simulate image * Improve crop on image * More rounded img corners to match browser style and auto height imgs * Auto height on all content images * Add VSCode image * fix ssr * Fix pricing page and add crisp chat bot * make logo link relative * add head data * test removing full url * revert * Finish adding first pass images * Add initial height and width to images to improve browser perf * remove old landing page css * add rounding --------- Co-authored-by: Anders Bech Mellson <[email protected]> --------- Co-authored-by: Anders Bech Mellson <[email protected]> * Add new open graph image to fit landing page design * Update meta description to match new subtitle * Images WIP * Update some Sky wording * New images and asset section * fixes and additions * image changes * Fix docusaurus plugins * Last fixes --------- Co-authored-by: Anders Bech Mellson <[email protected]> Co-authored-by: Nick <[email protected]> Co-authored-by: Laura Kalbag <[email protected]>
1 parent e1208d7 commit 14da9d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2801
-826
lines changed

docusaurus.config.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const config = {
1111
url: 'https://stately.ai',
1212
baseUrl: '/',
1313
baseUrlIssueBanner: false,
14-
onBrokenLinks: 'throw',
15-
onBrokenMarkdownLinks: 'throw',
14+
onBrokenLinks: 'warn',
15+
onBrokenMarkdownLinks: 'warn',
1616
favicon: 'icon.svg',
1717
staticDirectories: ['static'],
1818

@@ -138,6 +138,17 @@ const config = {
138138
},
139139
},
140140
],
141+
async function tailwindPlugin(context, options) {
142+
return {
143+
name: 'docusaurus-tailwindcss',
144+
configurePostCss(postcssOptions) {
145+
// Appends TailwindCSS and AutoPrefixer.
146+
postcssOptions.plugins.push(require('tailwindcss'));
147+
postcssOptions.plugins.push(require('autoprefixer'));
148+
return postcssOptions;
149+
},
150+
};
151+
},
141152
],
142153

143154
themeConfig:

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"docusaurus": "docusaurus",
77
"remark:once": "yarn remark --quiet --frail docs/**/* versioned_docs/**/*",
88
"remark:watch": "yarn remark --quiet --frail --watch docs/**/* versioned_docs/**/*",
9+
"dev": "docusaurus start",
910
"start": "concurrently \"yarn remark:watch\" \"yarn typecheck:watch\" \"docusaurus start\"",
1011
"check-links": "yarn remark:once && yarn typecheck",
1112
"build": "docusaurus build",
@@ -32,18 +33,23 @@
3233
"@docusaurus/plugin-client-redirects": "^2.4.3",
3334
"@docusaurus/preset-classic": "^2.4.3",
3435
"@docusaurus/remark-plugin-npm2yarn": "^2.4.3",
36+
"@headlessui/react": "^1.7.17",
3537
"@mdx-js/react": "^1.6.22",
3638
"@microsoft/api-extractor": "^7.35.1",
3739
"@xstate/inspect": "^0.8.0",
3840
"@xstate/machine-extractor": "^0.9.2",
3941
"@xstate/react": "^3.2.2",
42+
"autoprefixer": "^10.4.16",
4043
"clsx": "^1.2.1",
4144
"docusaurus-plugin-api-extractor": "^2.0.4",
42-
"lucide-react": "^0.129.0",
45+
"headlessui": "^0.0.0",
46+
"lucide-react": "^0.284.0",
4347
"mdx-embed": "^1.1.2",
48+
"postcss": "^8.4.31",
4449
"prism-react-renderer": "^1.3.5",
4550
"react": "^18.2.0",
4651
"react-dom": "^18.2.0",
52+
"tailwindcss": "^3.3.3",
4753
"typecheck": "^0.1.2",
4854
"xstate": "^4.37.2"
4955
},

src/components/HomepageFeatures/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function Feature({title, Svg, description}: FeatureItem) {
4848
<Svg className={styles.featureSvg} role="img" />
4949
</div>
5050
<div className="text--center padding-horiz--md">
51-
<h3>{title}</h3>
51+
<h2>{title}</h2>
5252
<p>{description}</p>
5353
</div>
5454
</div>

0 commit comments

Comments
 (0)