diff --git a/website/docs/typescript-support.md b/website/docs/typescript-support.md index 25c36c2c59..8bd87a1f89 100644 --- a/website/docs/typescript-support.md +++ b/website/docs/typescript-support.md @@ -112,11 +112,7 @@ The best IDEs (VS Code, WebStorm, IntelliJ...) will provide a nice auto-completi By default, the Docusaurus TypeScript config does not type-check JavaScript files. -The `// @ts-check` comment ensures the config file is properly type-checked when running: - -```bash npm2yarn -npx tsc -``` +The `// @ts-check` comment ensures the config file is properly type-checked when running `npx tsc`. ::: diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 5c7e1c0dec..ff88fba023 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -59,7 +59,7 @@ const isI18nStaging = process.env.I18N_STAGING === 'true'; const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging; const TwitterSvg = - ''; + ''; /** @type {import('@docusaurus/types').Config} */ const config = { @@ -360,7 +360,7 @@ const config = { }, announcementBar: { id: 'announcementBar-2', // Increment on change - content: `⭐️ If you like Docusaurus, give it a star on GitHub and follow us on Twitter ${TwitterSvg}`, + content: `⭐️ If you like Docusaurus, give it a star on GitHub and follow us on Twitter ${TwitterSvg}`, }, prism: { // We need to load markdown again so that YAML is loaded before MD diff --git a/website/src/components/BrowserWindow/index.tsx b/website/src/components/BrowserWindow/index.tsx index 58d6b74cba..26f315356c 100644 --- a/website/src/components/BrowserWindow/index.tsx +++ b/website/src/components/BrowserWindow/index.tsx @@ -6,6 +6,7 @@ */ import React, {type ReactNode} from 'react'; +import clsx from 'clsx'; import styles from './styles.module.css'; @@ -28,7 +29,9 @@ export default function BrowserWindow({ -
{url}
+
+ {url} +
diff --git a/website/src/components/BrowserWindow/styles.module.css b/website/src/components/BrowserWindow/styles.module.css index 2931c9c20f..9793395e2d 100644 --- a/website/src/components/BrowserWindow/styles.module.css +++ b/website/src/components/BrowserWindow/styles.module.css @@ -7,8 +7,7 @@ .browserWindow { border: 3px solid var(--ifm-color-emphasis-200); - border-top-left-radius: var(--ifm-global-radius); - border-top-right-radius: var(--ifm-global-radius); + border-radius: var(--ifm-global-radius); box-shadow: var(--ifm-global-shadow-lw); margin-bottom: var(--ifm-leading); } @@ -77,5 +76,12 @@ } .browserWindowBody { + background-color: var(--ifm-background-color); + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; padding: 1rem; } + +.browserWindowBody *:last-child { + margin-bottom: 0; +} diff --git a/website/src/components/Tweet/index.tsx b/website/src/components/Tweet/index.tsx index f6feb496fc..415f1e21bf 100644 --- a/website/src/components/Tweet/index.tsx +++ b/website/src/components/Tweet/index.tsx @@ -40,20 +40,20 @@ export default function Tweet({ height="48" loading="lazy" /> -
-
-
- {name}{' '} - @{handle} -
-
-
{content}
- - {date} - +
+ {name} + @{handle}
+ +
{content}
+ +
+ + {date} + +
); } diff --git a/website/src/components/Tweet/styles.module.css b/website/src/components/Tweet/styles.module.css index 3b58e7b81a..b20b2495d0 100644 --- a/website/src/components/Tweet/styles.module.css +++ b/website/src/components/Tweet/styles.module.css @@ -9,7 +9,10 @@ font-size: 15px; } -.tweetMeta, -.tweetMeta:hover { +.tweetMeta { color: var(--ifm-color-emphasis-700); } + +.tweetMeta strong { + color: var(--ifm-font-color-base); +} diff --git a/website/src/data/tweets.tsx b/website/src/data/tweets.tsx index 157bc0fb0e..a449ea40dc 100644 --- a/website/src/data/tweets.tsx +++ b/website/src/data/tweets.tsx @@ -37,7 +37,7 @@ const TWEETS: TweetItem[] = [ name: 'Maël', date: 'Jan 20, 2021', avatar: - 'https://pbs.twimg.com/profile_images/1311259425949261825/7hPZqoJd_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1497225853931040769/5mXZAHFR_400x400.jpg', content: ( <> I've used Docusaurus for two websites this year, and I've been @@ -179,7 +179,7 @@ const TWEETS: TweetItem[] = [ name: 'swyx', date: 'Jul 23, 2021', avatar: - 'https://pbs.twimg.com/profile_images/1456506127961640962/iM2Hf8du_400x400.jpg', + 'https://pbs.twimg.com/profile_images/1510319731466993664/tGoqnzGK_400x400.jpg', content: ( <> Happy to share Temporal's first open source sponsorship — of{' '} diff --git a/website/src/pages/index.tsx b/website/src/pages/index.tsx index 77bb463764..bda99a912f 100644 --- a/website/src/pages/index.tsx +++ b/website/src/pages/index.tsx @@ -54,7 +54,7 @@ function HeroBanner() { Get Started - Playground + Try a Demo