import "./index.css" import { Title, Meta } from "@solidjs/meta" import { Header } from "~/component/header" import { Footer } from "~/component/footer" import { Legal } from "~/component/legal" import { useI18n } from "~/context/i18n" import { LocaleLinks } from "~/component/locale-links" import previewLogoLight from "../../asset/brand/preview-opencode-logo-light.png" import previewLogoDark from "../../asset/brand/preview-opencode-logo-dark.png" import previewLogoLightSquare from "../../asset/brand/preview-opencode-logo-light-square.png" import previewLogoDarkSquare from "../../asset/brand/preview-opencode-logo-dark-square.png" import previewWordmarkLight from "../../asset/brand/preview-opencode-wordmark-light.png" import previewWordmarkDark from "../../asset/brand/preview-opencode-wordmark-dark.png" import previewWordmarkSimpleLight from "../../asset/brand/preview-opencode-wordmark-simple-light.png" import previewWordmarkSimpleDark from "../../asset/brand/preview-opencode-wordmark-simple-dark.png" import logoLightPng from "../../asset/brand/opencode-logo-light.png" import logoDarkPng from "../../asset/brand/opencode-logo-dark.png" import logoLightSquarePng from "../../asset/brand/opencode-logo-light-square.png" import logoDarkSquarePng from "../../asset/brand/opencode-logo-dark-square.png" import wordmarkLightPng from "../../asset/brand/opencode-wordmark-light.png" import wordmarkDarkPng from "../../asset/brand/opencode-wordmark-dark.png" import wordmarkSimpleLightPng from "../../asset/brand/opencode-wordmark-simple-light.png" import wordmarkSimpleDarkPng from "../../asset/brand/opencode-wordmark-simple-dark.png" import logoLightSvg from "../../asset/brand/opencode-logo-light.svg" import logoDarkSvg from "../../asset/brand/opencode-logo-dark.svg" import logoLightSquareSvg from "../../asset/brand/opencode-logo-light-square.svg" import logoDarkSquareSvg from "../../asset/brand/opencode-logo-dark-square.svg" import wordmarkLightSvg from "../../asset/brand/opencode-wordmark-light.svg" import wordmarkDarkSvg from "../../asset/brand/opencode-wordmark-dark.svg" import wordmarkSimpleLightSvg from "../../asset/brand/opencode-wordmark-simple-light.svg" import wordmarkSimpleDarkSvg from "../../asset/brand/opencode-wordmark-simple-dark.svg" const brandAssets = "/opencode-brand-assets.zip" export default function Brand() { const i18n = useI18n() const alt = i18n.t("brand.meta.description") const downloadFile = async (url: string, filename: string) => { try { const response = await fetch(url) const blob = await response.blob() const blobUrl = window.URL.createObjectURL(blob) const link = document.createElement("a") link.href = blobUrl link.download = filename document.body.appendChild(link) link.click() document.body.removeChild(link) window.URL.revokeObjectURL(blobUrl) } catch (error) { console.error("Download failed:", error) const link = document.createElement("a") link.href = url link.target = "_blank" link.rel = "noopener noreferrer" document.body.appendChild(link) link.click() document.body.removeChild(link) } } return (
{i18n.t("brand.title")}

{i18n.t("brand.heading")}

{i18n.t("brand.subtitle")}

{alt}
{alt}
{alt}
{alt}
{alt}
{alt}
{alt}
{alt}
) }