diff --git a/packages/website/src/components/Back/index.module.css b/packages/website/src/components/Back/index.module.css deleted file mode 100644 index 76cd305bd..000000000 --- a/packages/website/src/components/Back/index.module.css +++ /dev/null @@ -1,3 +0,0 @@ -.back { - display: contents; -} diff --git a/packages/website/src/components/Back/index.tsx b/packages/website/src/components/Back/index.tsx deleted file mode 100644 index 4397dcfe0..000000000 --- a/packages/website/src/components/Back/index.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import type { ComponentProps } from "react"; -import { classNames } from "../../ui/classNames"; -import styles from "./index.module.css"; - -interface Props extends ComponentProps<"div"> {} - -export function Back({ className, onClick, ...props }: Props) { - return ( -
{ - console.log("back"); - window.history.back(); - onClick?.(event); - }} - {...props} - /> - ); -} diff --git a/packages/website/src/components/ToolBanner.astro b/packages/website/src/components/ToolBanner.astro index d4a96b15f..40109582a 100644 --- a/packages/website/src/components/ToolBanner.astro +++ b/packages/website/src/components/ToolBanner.astro @@ -1,11 +1,9 @@ --- -import { ArrowLeftIcon } from "@radix-ui/react-icons"; +import { alias } from "@blitzkit/core"; import { api } from "../api/dynamic"; import type { Tool } from "../constants/tools"; import { Logo } from "../icons/Logo"; -import { Back } from "./Back"; import { Heading } from "./Heading"; -import { IconButton } from "./IconButton"; interface Props { locale: string; @@ -20,9 +18,21 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools];
@@ -92,7 +95,9 @@ const toolStrings = strings.tools[tool.id as keyof typeof strings.tools]; >
diff --git a/packages/website/src/constants/tools.ts b/packages/website/src/constants/tools.ts index b4ceb9e38..f9f00cf18 100644 --- a/packages/website/src/constants/tools.ts +++ b/packages/website/src/constants/tools.ts @@ -96,10 +96,12 @@ export const tools: Record = { export enum ToolBannerSize { Thumbnail = "thumbnail", + Poster = "poster", Full = "full", } export const TOOL_BANNER_HEIGHTS: Record = { [ToolBannerSize.Thumbnail]: 128, + [ToolBannerSize.Poster]: 480 * 1.5, [ToolBannerSize.Full]: null, }; diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro index 739bfff1b..71138b479 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/tanks/index.astro @@ -16,7 +16,7 @@ const { locale } = Astro.props; - +