diff --git a/packages/website/src/pages/tools/embed/_index.tsx b/packages/website/src/pages/tools/embed/_index.tsx index 5b7e62f9d..afee15bbf 100644 --- a/packages/website/src/pages/tools/embed/_index.tsx +++ b/packages/website/src/pages/tools/embed/_index.tsx @@ -1,63 +1,112 @@ import { imgur, ImgurSize } from '@blitzkit/core'; -import { Box, Flex, Link, Text } from '@radix-ui/themes'; +import { ExclamationTriangleIcon } from '@radix-ui/react-icons'; +import { Box, Callout, Flex, Link, Text } from '@radix-ui/themes'; import { capitalize } from 'lodash-es'; import { PreviewWrapper } from '../../../components/Embeds/PreviewWrapper'; import { PageWrapper } from '../../../components/PageWrapper'; +import { WargamingLoginButton } from '../../../components/WargamingLoginButton'; import { embedConfigurations, extractEmbedConfigDefaults, } from '../../../constants/embeds'; import { Var } from '../../../core/radix/var'; +import { App } from '../../../stores/app'; import { EmbedState } from '../../../stores/embedState'; export function Page() { return ( - - {Object.entries(embedConfigurations).map(([embed, config]) => ( - - - - - {capitalize(embed)} - + + + + ); +} - state.logins.wargaming, { + token: '', + id: 0, + expires: 0, + }); + + return ( + + {!wargaming && ( + + + + + + + You must log in to generate embeds. + + + + Log in with Wargaming + + )} + + + More embeds coming soon.{' '} + + Suggest ideas + + . + + + + {Object.entries(embedConfigurations).map(([embed, config]) => ( + + + - - - - - - ))} + + {capitalize(embed)} + + + + + + + + + ))} + ); } diff --git a/packages/website/src/pages/tools/embed/index.astro b/packages/website/src/pages/tools/embed/index.astro index 70f7dcf2c..1eb609380 100644 --- a/packages/website/src/pages/tools/embed/index.astro +++ b/packages/website/src/pages/tools/embed/index.astro @@ -5,5 +5,5 @@ import { Page } from './_index'; --- - +