diff --git a/public/marketplace/adblock/adblock.png b/public/marketplace/adblock/adblock.png new file mode 100644 index 0000000..ff52039 Binary files /dev/null and b/public/marketplace/adblock/adblock.png differ diff --git a/src/components/UI/Header.astro b/src/components/UI/Header.astro index b6032d8..d835440 100644 --- a/src/components/UI/Header.astro +++ b/src/components/UI/Header.astro @@ -10,6 +10,7 @@ const t = i18n.useTranslations(lang); {t("nav.brand")}
+ Marketplace {t("nav.games")} {t("nav.settings")}
diff --git a/src/components/UI/Input.astro b/src/components/UI/Input.astro index 12d55c6..a5150f1 100644 --- a/src/components/UI/Input.astro +++ b/src/components/UI/Input.astro @@ -6,6 +6,7 @@ const { placeholder, className, defaultStyles = true, + autocomplete = "on", } = Astro.props; const styleList = className ? className.split(" ") : []; @@ -21,6 +22,7 @@ interface Props { placeholder?: string; className?: string; defaultStyles?: boolean; + autocomplete?: string; } --- @@ -31,4 +33,5 @@ interface Props { value={defaultTextContent || ""} type="text" class={styleList.map((style) => style).join(" ")} + autocomplete={autocomplete} /> diff --git a/src/json/marketplace.json b/src/json/marketplace.json new file mode 100644 index 0000000..7eff5bc --- /dev/null +++ b/src/json/marketplace.json @@ -0,0 +1,9 @@ +{ + "adblock": { + "title": "Adblocker", + "version": "0.0.1", + "image": "/marketplace/adblock/adblock.png", + "script": "/marketplace/adblock/adblocker.js", + "slug": "adblock" + } +} \ No newline at end of file diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index f4d8932..29ca13b 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -25,6 +25,7 @@ export function getStaticPaths() { placeholder={t("menu.search")} defaultStyles={false} transition:persist + autocomplete="off" />
Loading...
diff --git a/src/pages/[lang]/marketplace.astro b/src/pages/[lang]/marketplace.astro new file mode 100644 index 0000000..5a7cc03 --- /dev/null +++ b/src/pages/[lang]/marketplace.astro @@ -0,0 +1,76 @@ +--- +import { STATIC_PATHS } from "@i18n/utils"; +import Layout from "src/layouts/Layout.astro" +import marketplace from "../../json/marketplace.json" + +export const getStaticPaths = (() => { + return STATIC_PATHS; +}); + +type MarketplaceItem = { + title: string, + version: string | number, + image: string, + script: string, + slug: string +}; +--- + + +
+

Marketplace

+
+ {Object.keys(marketplace).map((mp_item) => { + const item = (marketplace as {[key: string ]: MarketplaceItem})[mp_item] + return
+ {`${item.title} +
{item.title}
+ +
+ })} +
+
+
+ + + + \ No newline at end of file