generated from polymech/site-template
osrl - profile | config | clear
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
---
|
||||
import path from "path";
|
||||
import { decode } from "html-entities";
|
||||
import { sync as exists } from "@polymech/fs/exists";
|
||||
import { sync as read } from "@polymech/fs/read";
|
||||
import type { MarkdownHeading } from "astro";
|
||||
|
||||
import { IHowto, IStep, asset_local_rel } from "@/model/howto/howto.js";
|
||||
import { translate } from "@polymech/astro-base/base/i18n.js";
|
||||
import Translate from "@polymech/astro-base/components/i18n.astro";
|
||||
@@ -9,13 +13,11 @@ import Sidebar from "@polymech/astro-base/components/sidebar/Sidebar.astro";
|
||||
import MobileToggle from "@polymech/astro-base/components/sidebar/MobileToggle.astro";
|
||||
import Breadcrumb from "@polymech/astro-base/components/Breadcrumb.astro";
|
||||
import { getSidebarConfig } from "@polymech/astro-base/config/sidebar";
|
||||
import type { MarkdownHeading } from "astro";
|
||||
import Wrapper from "@/components/containers/Wrapper.astro";
|
||||
import Wrapper from "@polymech/astro-base/components/containers/Wrapper.astro";
|
||||
|
||||
import GalleryK from "@polymech/astro-base/components/GalleryK.astro";
|
||||
import { files, forward_slash } from "@polymech/commons";
|
||||
import pMap from "p-map";
|
||||
import { sync as exists } from "@polymech/fs/exists";
|
||||
import { sync as read } from "@polymech/fs/read";
|
||||
import { createHTMLComponent, createMarkdownComponent } from "@/base/index.js";
|
||||
|
||||
import { applyFilters, shortenUrl } from "@/base/filters.js";
|
||||
|
||||
@@ -8,6 +8,7 @@ import { loadConfig } from '@polymech/astro-base/app/config-loader.js'
|
||||
|
||||
const config = loadConfig()
|
||||
|
||||
|
||||
const LIBARY_BRANCH = config.retail.library_branch
|
||||
|
||||
const library = defineCollection({
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
import BaseHead from "../components/BaseHead.astro";
|
||||
import Navigation from "@polymech/astro-base/components/global/Navigation.astro";
|
||||
import Footer from "@polymech/astro-base/components/global/Footer.astro";
|
||||
import { isRTL } from "config/config.js";
|
||||
import { isRTL } from "../app/config.js";
|
||||
|
||||
const { item, additionalKeywords, ...rest } = Astro.props;
|
||||
---
|
||||
|
||||
|
||||
+26
-21
@@ -1,15 +1,17 @@
|
||||
---
|
||||
import BaseLayout from "@/layouts/BaseLayout.astro";
|
||||
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||
Astro.redirect("/en/home");
|
||||
---
|
||||
|
||||
<BaseLayout>
|
||||
<section>
|
||||
<div
|
||||
class="flex flex-col gap-12 h-full justify-between p-4 text-center py-20">
|
||||
class="flex flex-col gap-12 h-full justify-between p-4 text-center py-20"
|
||||
>
|
||||
<div class="max-w-xl mx-auto">
|
||||
<h1
|
||||
class="text-lg text-neutral-600 font-mono tracking-tight text-balance">
|
||||
class="text-lg text-neutral-600 font-mono tracking-tight text-balance"
|
||||
>
|
||||
404 Page not found
|
||||
</h1>
|
||||
<p class="text-sm text-balance text-neutral-500">
|
||||
@@ -21,13 +23,15 @@ Astro.redirect("/en/home");
|
||||
href="/"
|
||||
title="link to your page"
|
||||
aria-label="your label"
|
||||
class="relative group overflow-hidden pl-4 font-mono h-14 flex space-x-6 items-center bg-white hover:bg-neutral-200 duration-300 rounded-xl w-full justify-between">
|
||||
class="relative group overflow-hidden pl-4 font-mono h-14 flex space-x-6 items-center bg-white hover:bg-neutral-200 duration-300 rounded-xl w-full justify-between"
|
||||
>
|
||||
<span class="relative uppercase text-xs text-orange-600"
|
||||
>Go home</span
|
||||
>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
class="w-12 text-orange-600 transition duration-300 -translate-y-7 group-hover:translate-y-7">
|
||||
class="w-12 text-orange-600 transition duration-300 -translate-y-7 group-hover:translate-y-7"
|
||||
>
|
||||
<div class="h-14 flex">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -35,12 +39,12 @@ Astro.redirect("/en/home");
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="size-6 m-auto fill-white">
|
||||
class="size-6 m-auto fill-white"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"
|
||||
></path>
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="h-14 flex">
|
||||
@@ -50,12 +54,12 @@ Astro.redirect("/en/home");
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="size-6 m-auto fill-white">
|
||||
class="size-6 m-auto fill-white"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"
|
||||
></path>
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
@@ -64,13 +68,14 @@ Astro.redirect("/en/home");
|
||||
href="/forms/contact"
|
||||
title="link to your page"
|
||||
aria-label="your label"
|
||||
class="relative group overflow-hidden pl-4 font-mono h-14 flex space-x-6 items-center bg-orange-500 hover:bg-black duration-300 rounded-xl w-full justify-between">
|
||||
<span class="relative uppercase text-xs text-white"
|
||||
>Contact us</span
|
||||
class="relative group overflow-hidden pl-4 font-mono h-14 flex space-x-6 items-center bg-orange-500 hover:bg-black duration-300 rounded-xl w-full justify-between"
|
||||
>
|
||||
<span class="relative uppercase text-xs text-white">Contact us</span
|
||||
>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
class="w-12 text-white transition duration-300 -translate-y-7 group-hover:translate-y-7">
|
||||
class="w-12 text-white transition duration-300 -translate-y-7 group-hover:translate-y-7"
|
||||
>
|
||||
<div class="h-14 flex">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
@@ -78,12 +83,12 @@ Astro.redirect("/en/home");
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="size-6 m-auto fill-white">
|
||||
class="size-6 m-auto fill-white"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"
|
||||
></path>
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="h-14 flex">
|
||||
@@ -93,12 +98,12 @@ Astro.redirect("/en/home");
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
class="size-6 m-auto fill-white">
|
||||
class="size-6 m-auto fill-white"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"
|
||||
></path>
|
||||
d="M17.25 8.25 21 12m0 0-3.75 3.75M21 12H3"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user