diff --git a/packages/docusaurus-playground/docs/powered-by-waku.mdx b/packages/docusaurus-playground/docs/powered-by-waku.mdx new file mode 100644 index 0000000..cea98e8 --- /dev/null +++ b/packages/docusaurus-playground/docs/powered-by-waku.mdx @@ -0,0 +1,46 @@ +--- +title: Powered by Waku +--- + +Leap into the future with Waku! Revolutionise communication, collaboration, and connectivity. Join us and create something extraordinary! + +import { AppCard, Grid } from '@site/src/components/mdx' + + + + + + + + + + + + + + + diff --git a/packages/docusaurus-playground/static/img/logo_white.svg b/packages/docusaurus-playground/static/img/logo_white.svg new file mode 100644 index 0000000..826be49 --- /dev/null +++ b/packages/docusaurus-playground/static/img/logo_white.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/img/nwaku-compose-dashboard.png b/packages/docusaurus-playground/static/img/nwaku-compose-dashboard.png new file mode 100644 index 0000000..ce852d5 Binary files /dev/null and b/packages/docusaurus-playground/static/img/nwaku-compose-dashboard.png differ diff --git a/packages/docusaurus-playground/static/img/railgun-mark-black.svg b/packages/docusaurus-playground/static/img/railgun-mark-black.svg new file mode 100644 index 0000000..40a9ac6 --- /dev/null +++ b/packages/docusaurus-playground/static/img/railgun-mark-black.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/img/railgun-mark-white.svg b/packages/docusaurus-playground/static/img/railgun-mark-white.svg new file mode 100644 index 0000000..096cd4f --- /dev/null +++ b/packages/docusaurus-playground/static/img/railgun-mark-white.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/img/status-mark-black.svg b/packages/docusaurus-playground/static/img/status-mark-black.svg new file mode 100644 index 0000000..2c90d94 --- /dev/null +++ b/packages/docusaurus-playground/static/img/status-mark-black.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/img/status-mark-white.svg b/packages/docusaurus-playground/static/img/status-mark-white.svg new file mode 100644 index 0000000..62eade2 --- /dev/null +++ b/packages/docusaurus-playground/static/img/status-mark-white.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/img/the-graph-mark-black.svg b/packages/docusaurus-playground/static/img/the-graph-mark-black.svg new file mode 100644 index 0000000..018a500 --- /dev/null +++ b/packages/docusaurus-playground/static/img/the-graph-mark-black.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/img/the-graph-mark-white.svg b/packages/docusaurus-playground/static/img/the-graph-mark-white.svg new file mode 100644 index 0000000..b742361 --- /dev/null +++ b/packages/docusaurus-playground/static/img/the-graph-mark-white.svg @@ -0,0 +1,3 @@ + + + diff --git a/packages/docusaurus-playground/static/img/waku-create-app-demo.gif b/packages/docusaurus-playground/static/img/waku-create-app-demo.gif new file mode 100644 index 0000000..340a6dd Binary files /dev/null and b/packages/docusaurus-playground/static/img/waku-create-app-demo.gif differ diff --git a/packages/docusaurus-playground/static/img/xmtp-mark-black.svg b/packages/docusaurus-playground/static/img/xmtp-mark-black.svg new file mode 100644 index 0000000..0c0ce0c --- /dev/null +++ b/packages/docusaurus-playground/static/img/xmtp-mark-black.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/docusaurus-playground/static/img/xmtp-mark-white.svg b/packages/docusaurus-playground/static/img/xmtp-mark-white.svg new file mode 100644 index 0000000..be6f26b --- /dev/null +++ b/packages/docusaurus-playground/static/img/xmtp-mark-white.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/AppCard.scss b/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/AppCard.scss new file mode 100644 index 0000000..0f35c98 --- /dev/null +++ b/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/AppCard.scss @@ -0,0 +1,41 @@ +@use '../../../css/utils'; +@use '../../../css/lsd'; + +.mdx-app-card { + display: flex; + flex-direction: column; + align-items: flex-start; + padding: 1.5rem 0; +} + +.mdx-app-card__logo { + height: 40px; + width: auto; +} + +.mdx-app-card__name { + margin-top: 1rem; +} + +.mdx-app-card__description { + margin-top: 1.5rem; +} + +.mdx-app-card__link { + margin-top: 1.5rem; + width: 100%; + + button { + width: 100%; + padding: 10px 16px; + + & > span { + display: block; + width: 100%; + display: flex; + flex-direction: row; + justify-content: space-between; + align-items: center; + } + } +} diff --git a/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/AppCard.tsx b/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/AppCard.tsx new file mode 100644 index 0000000..922931e --- /dev/null +++ b/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/AppCard.tsx @@ -0,0 +1,57 @@ +import { Button, PickIcon, Typography } from '@acid-info/lsd-react' +import ThemedImage from '@theme/ThemedImage' +import clsx from 'clsx' +import React from 'react' +import './AppCard.scss' + +export type AppCardProps = React.HTMLProps & { + logoSrc?: string + logoSrcDark?: string + name?: React.ReactNode + description?: React.ReactNode + link?: string + linkLabel?: string +} + +export const AppCard: React.FC = ({ + logoSrc, + logoSrcDark, + name, + description, + link, + linkLabel, + ...props +}) => { + return ( +
+ {(logoSrc || logoSrcDark) && ( + + )} + + {name} + + + {description} + + {link && ( + + + + )} +
+ ) +} diff --git a/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/index.ts b/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/index.ts new file mode 100644 index 0000000..0810965 --- /dev/null +++ b/packages/logos-docusaurus-theme/src/client/components/mdx/AppCard/index.ts @@ -0,0 +1 @@ +export * from './AppCard' diff --git a/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.scss b/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.scss index 6a49772..f90ba6d 100644 --- a/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.scss +++ b/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.scss @@ -2,52 +2,4 @@ @use '../../../css/lsd'; .mdx-powered-by { - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 0 1rem; -} - -.mdx-powered-by__card { - display: flex; - flex-direction: column; - align-items: flex-start; - padding: 1.5rem 0; -} - -.mdx-powered-by__logo { - height: 40px; - width: auto; -} - -.mdx-powered-by__name { - margin-top: 1rem; -} - -.mdx-powered-by__description { - margin-top: 1.5rem; -} - -.mdx-powered-by__link { - margin-top: 1.5rem; - width: 100%; - - button { - width: 100%; - padding: 10px 16px; - - & > span { - display: block; - width: 100%; - display: flex; - flex-direction: row; - justify-content: space-between; - align-items: center; - } - } -} - -@include utils.responsive('lg', 'down') { - .mdx-powered-by { - grid-template-columns: 1fr; - } } diff --git a/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.tsx b/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.tsx index 5a67595..ebe91ff 100644 --- a/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.tsx +++ b/packages/logos-docusaurus-theme/src/client/components/mdx/PoweredBy/PoweredBy.tsx @@ -1,76 +1,29 @@ -import { Button, PickIcon, Typography } from '@acid-info/lsd-react' -import { useColorMode } from '@docusaurus/theme-common' +import clsx from 'clsx' import React from 'react' +import { AppCard, AppCardProps, Grid, GridProps } from '..' import './PoweredBy.scss' -export type PoweredByItem = { - logoSrc?: string - logoSrcDark?: string - name?: React.ReactNode - description?: React.ReactNode - link?: string - linkLabel?: string -} - -export type PoweredByProps = React.HTMLProps & { - items?: PoweredByItem[] +export type PoweredByProps = GridProps & { + items?: AppCardProps[] } export const PoweredBy: React.FC = ({ items = [], + className, ...props }) => { - const { colorMode } = useColorMode() - return ( -
- {items.map((item, index) => { - const logoSrc = item.logoSrc ?? item.logoSrcDark - - return ( -
- {logoSrc && ( - {typeof - )} - - {item.name} - - - {item.description} - - {item.link && ( - - - - )} -
- ) - })} -
+ + {items.map((item, index) => ( + + + + ))} + ) } diff --git a/packages/logos-docusaurus-theme/src/client/components/mdx/index.ts b/packages/logos-docusaurus-theme/src/client/components/mdx/index.ts index 2fbe625..0e8796e 100644 --- a/packages/logos-docusaurus-theme/src/client/components/mdx/index.ts +++ b/packages/logos-docusaurus-theme/src/client/components/mdx/index.ts @@ -1,3 +1,4 @@ +export * from './AppCard' export * from './Box' export * from './CallToActionButton' export * from './CallToActionSection'