From 24f9be9283bdd1dbbbbff164ba52e0ec59b18c8e Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Fri, 26 May 2023 20:28:51 +0200 Subject: [PATCH] update content --- apps/www/components/CodeBlock/CodeBlock.tsx | 3 +- apps/www/components/Layouts/Default.tsx | 5 +- .../components/Sections/FeaturesSection.tsx | 6 +- .../components/Sections/HighlightCards.tsx | 2 +- .../{TimedTabs.tsx => TimedTabsSection.tsx} | 16 +-- .../components/Sections/UseCasesSection.tsx | 10 +- apps/www/data/products/vector/page.tsx | 80 +++++++------- apps/www/pages/vector/Vector.tsx | 102 +----------------- apps/www/styles/index.css | 2 +- 9 files changed, 73 insertions(+), 153 deletions(-) rename apps/www/components/Sections/{TimedTabs.tsx => TimedTabsSection.tsx} (91%) diff --git a/apps/www/components/CodeBlock/CodeBlock.tsx b/apps/www/components/CodeBlock/CodeBlock.tsx index 732f558354e..99f0cb02169 100644 --- a/apps/www/components/CodeBlock/CodeBlock.tsx +++ b/apps/www/components/CodeBlock/CodeBlock.tsx @@ -17,6 +17,7 @@ export interface CodeBlockProps { className?: string children?: string size?: 'small' | 'medium' | 'large' + background?: string } function CodeBlock(props: CodeBlockProps) { @@ -98,7 +99,7 @@ function CodeBlock(props: CodeBlockProps) { padding: '21px 24px', fontSize: large ? 18 : '0.875rem', lineHeight: large ? 1.6 : 1.4, - background: '#181818', + background: props.background ?? '#1A1A1A', }} showLineNumbers={props.showLineNumbers} lineNumberStyle={{ diff --git a/apps/www/components/Layouts/Default.tsx b/apps/www/components/Layouts/Default.tsx index 134f8243f35..99c1b5d863b 100644 --- a/apps/www/components/Layouts/Default.tsx +++ b/apps/www/components/Layouts/Default.tsx @@ -5,17 +5,18 @@ import Footer from 'components/Footer/index' type Props = { hideHeader?: boolean hideFooter?: boolean + className?: string children: React.ReactNode } const DefaultLayout = (props: Props) => { - const { hideHeader = false, hideFooter = false, children } = props + const { hideHeader = false, hideFooter = false, className = '', children } = props return ( <> {!hideHeader &&