Skip to content

Commit abb4c30

Browse files
authored
Fix landing page styles (#284)
1 parent f7a6579 commit abb4c30

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

docusaurus.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Note: type annotations allow type checking and IDEs autocompletion
33
require('dotenv').config();
44
const a11yEmoji = require('@fec/remark-a11y-emoji');
5+
const { themes } = require('prism-react-renderer');
56

67
/** @type {import('@docusaurus/types').Config} */
78
const config = {
@@ -256,8 +257,8 @@ const config = {
256257
respectPrefersColorScheme: true,
257258
},
258259
prism: {
259-
theme: require('prism-react-renderer/dist/index').themes.vsLight,
260-
darkTheme: require('prism-react-renderer/dist/index').themes.vsDark,
260+
theme: themes.vsLight,
261+
darkTheme: themes.vsDark,
261262
},
262263
}),
263264
};

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"@docusaurus/tsconfig": "^3.0.0",
6161
"@docusaurus/types": "^3.0.0",
6262
"@fec/remark-a11y-emoji": "^4.0.2",
63-
"@tsconfig/docusaurus": "^2.0.2",
6463
"concurrently": "^8.2.2",
6564
"dotenv": "^16.3.1",
6665
"remark-cli": "^12.0.0",

src/pages/index.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Head from '@docusaurus/Head';
2-
import React, { useEffect } from 'react';
2+
import { useEffect } from 'react';
33
import { Benefits } from '../components/landing/Benefits';
44
import { FinalCallToAction } from '../components/landing/FinalCallToAction';
55
import { Footer } from '../components/landing/Footer';
@@ -8,7 +8,6 @@ import { Navbar } from '../components/landing/Navbar';
88
import { Testimonials } from '../components/landing/Testimonials';
99
import '../css/landing-page.css';
1010
import '../css/landing-styles.css';
11-
// import '../css/preflight.css';
1211

1312
export default function Index() {
1413
useEffect(() => {
@@ -27,7 +26,8 @@ export default function Index() {
2726
}, []);
2827

2928
return (
30-
<>
29+
// We need the class name `twp` here to ensure the Tailwind reset gets applied to all children.
30+
<div className="twp">
3131
<Head>
3232
<title>Stately | Your intelligent assistant for robust logic</title>
3333
<meta
@@ -74,19 +74,17 @@ export default function Index() {
7474
></script>
7575
</Head>
7676

77-
{/* We need the class name `twp` here to ensure the Tailwind reset gets applied to all children. */}
78-
<header className="bg-blue-950/20 border-b-white/[0.08] border-b fixed w-full z-10 backdrop-blur-md twp">
77+
<header className="bg-blue-950/20 border-b-white/[0.08] border-b fixed w-full z-10 backdrop-blur-md">
7978
<Navbar />
8079
</header>
8180

82-
{/* We need the class name `twp` here to ensure the Tailwind reset gets applied to all children. */}
83-
<main className="bg-blue-950 twp">
81+
<main className="bg-blue-950">
8482
<Intro />
8583
<Benefits />
8684
<Testimonials />
8785
<FinalCallToAction />
8886
</main>
8987
<Footer />
90-
</>
88+
</div>
9189
);
9290
}

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2581,11 +2581,6 @@
25812581
resolved "https://registry.yarnpkg.com/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad"
25822582
integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==
25832583

2584-
"@tsconfig/docusaurus@^2.0.2":
2585-
version "2.0.2"
2586-
resolved "https://registry.yarnpkg.com/@tsconfig/docusaurus/-/docusaurus-2.0.2.tgz#f96c7453ce9969ef938284eac74441e2d646efd7"
2587-
integrity sha512-12HWfYmgUl4M2o76/TFufGtI68wl2k/b8qPrIrG7ci9YJLrpAtadpy897Bz5v29Mlkr7a1Hq4KHdQTKtU+2rhQ==
2588-
25892584
"@types/acorn@^4.0.0":
25902585
version "4.0.6"
25912586
resolved "https://registry.yarnpkg.com/@types/acorn/-/acorn-4.0.6.tgz#d61ca5480300ac41a7d973dd5b84d0a591154a22"

0 commit comments

Comments
 (0)