diff --git a/src/components/DefaulBadge/index.jsx b/src/components/DefaulBadge/index.jsx index 8dbaf78..0f8b0fa 100644 --- a/src/components/DefaulBadge/index.jsx +++ b/src/components/DefaulBadge/index.jsx @@ -1,10 +1,9 @@ -import clsx from 'clsx'; import React from 'react'; import styles from './index.module.css'; export default function DefaultBadge() { return ( - + Default ); diff --git a/src/components/HomepageFeatures/index.jsx b/src/components/HomepageFeatures/index.jsx index 443ffef..8211f30 100644 --- a/src/components/HomepageFeatures/index.jsx +++ b/src/components/HomepageFeatures/index.jsx @@ -40,15 +40,15 @@ const FeatureList = [ function Feature({ Svg, title, description }) { return ( -
-
-
+
+
+
- +
-

{title}

-

{description}

+

{title}

+

{description}

@@ -66,7 +66,7 @@ export default function HomepageFeatures() { -
+
{FeatureList.map((props, idx) => ( ))} diff --git a/src/components/PluginParams/index.jsx b/src/components/PluginParams/index.jsx index 583bd10..524e5e9 100644 --- a/src/components/PluginParams/index.jsx +++ b/src/components/PluginParams/index.jsx @@ -1,5 +1,4 @@ import React, { Fragment } from 'react'; -import clsx from 'clsx'; import { useDoc } from '@docusaurus/theme-common/internal'; import styles from './index.module.css'; @@ -21,7 +20,7 @@ export default function PluginParams() {
{param.name}
-
+
))} diff --git a/src/components/SvgDemo/index.jsx b/src/components/SvgDemo/index.jsx index 151d009..12f4f0b 100644 --- a/src/components/SvgDemo/index.jsx +++ b/src/components/SvgDemo/index.jsx @@ -2,7 +2,6 @@ import React, { useState } from "react"; import CodeBlock from "@theme/CodeBlock"; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -import clsx from "clsx"; import styles from "./index.module.css"; export default function SvgPreview(props) { @@ -16,14 +15,14 @@ export default function SvgPreview(props) { return ( -
+
{svg}
-
+
{!error ? ( ) : ( - + SVG can only be rendered inline, not standalone or in an <img> element. )} diff --git a/src/components/SvgoPreview/index.jsx b/src/components/SvgoPreview/index.jsx index c3d5de5..33996d6 100644 --- a/src/components/SvgoPreview/index.jsx +++ b/src/components/SvgoPreview/index.jsx @@ -1,5 +1,4 @@ import React from "react"; -import clsx from "clsx"; import { optimize } from "svgo/dist/svgo.browser.js"; import SvgPreview from '../SvgDemo'; import styles from "./index.module.css"; @@ -21,8 +20,8 @@ export default function SvgoPreview(props) { return ( <> - - {initialUi} {directionUi} {profitUi} = {optimizedUi} + + {initialUi} {directionUi} {profitUi} = {optimizedUi} ); diff --git a/src/pages/index.js b/src/pages/index.js index 151aae1..42a9c2d 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -17,13 +17,13 @@ const onClick = async () => { function HomepageHeader() { return ( -
-
-
-

+

+
+
+

SVG Optimizer for Node.js and CLI

-

+

SVGO and its various integrations will enable you to optimize SVGs and serve your web applications faster.

@@ -34,9 +34,9 @@ function HomepageHeader() { Read the docs
-
+
$ {INSTALL_COMMAND} - + @@ -45,8 +45,8 @@ function HomepageHeader() {
-
- +
+
diff --git a/src/theme/DocItem/Content/index.js b/src/theme/DocItem/Content/index.js index 13d329f..cff77f8 100644 --- a/src/theme/DocItem/Content/index.js +++ b/src/theme/DocItem/Content/index.js @@ -28,10 +28,10 @@ export default function DocItemContent({ children }) { return (
{syntheticTitle && ( -
- {syntheticTitle} +
+ {syntheticTitle} {frontMatter.svgo?.defaultPlugin && ( -
+
)} diff --git a/src/theme/DocItem/Layout/index.js b/src/theme/DocItem/Layout/index.js index 730e58d..94ea2d7 100644 --- a/src/theme/DocItem/Layout/index.js +++ b/src/theme/DocItem/Layout/index.js @@ -9,7 +9,7 @@ import styles from './styles.module.css'; export default function DocItemLayout({children}) { return ( -
+
@@ -20,7 +20,7 @@ export default function DocItemLayout({children}) {
-
+
diff --git a/src/theme/DocRoot/Layout/Main/index.js b/src/theme/DocRoot/Layout/Main/index.js index 3a7331b..6db9e6d 100644 --- a/src/theme/DocRoot/Layout/Main/index.js +++ b/src/theme/DocRoot/Layout/Main/index.js @@ -14,8 +14,8 @@ export default function DocRootLayoutMain({ hiddenSidebarContainer, children }) )}>
{children} diff --git a/src/theme/Footer/Layout/index.js b/src/theme/Footer/Layout/index.js index 0703312..a3dff17 100644 --- a/src/theme/Footer/Layout/index.js +++ b/src/theme/Footer/Layout/index.js @@ -13,8 +13,8 @@ export default function FooterLayout({ links, copyright }) { -