From 0beaf3f9d6578aaf548d7edf8bbf4d681fc04fde Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Fri, 1 Nov 2024 10:30:36 -0500
Subject: [PATCH] feat: better homepage
---
.../website/src/pages/tools/embed/_index.tsx | 133 ++++++++++++------
.../website/src/pages/tools/embed/index.astro | 2 +-
2 files changed, 92 insertions(+), 43 deletions(-)
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';
---
-
+