generated from polymech/site-template
nav & dist test
This commit is contained in:
parent
cbb7b83ae5
commit
db87ccbffb
@ -23,7 +23,7 @@
|
||||
"format": "unix-time"
|
||||
}
|
||||
],
|
||||
"default": "2025-03-29T16:05:34.037Z"
|
||||
"default": "2025-03-29T17:52:10.914Z"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -670,7 +670,7 @@
|
||||
},
|
||||
"https://scholarworks.uni.edu/cgi/viewcontent.cgi?article=3680%5C&context=grp": {
|
||||
"isValid": false,
|
||||
"timestamp": 1743264335400
|
||||
"timestamp": 1743270732346
|
||||
},
|
||||
"https://pmc.ncbi.nlm.nih.gov/articles/PMC10489002/": {
|
||||
"isValid": true,
|
||||
@ -754,7 +754,7 @@
|
||||
},
|
||||
"https://journals.plos.org/plosone/article?id=10.1371%252Fjournal.pone.0288696": {
|
||||
"isValid": false,
|
||||
"timestamp": 1743264335845
|
||||
"timestamp": 1743270732835
|
||||
},
|
||||
"https://www.youtube.com/watch?v=_a7usMe_K38": {
|
||||
"isValid": true,
|
||||
@ -841,7 +841,7 @@
|
||||
},
|
||||
"https://www.toraytac.com/media/c3feb206-1398-4e0e-bca6-df7780f11745/tcCurg/TenCate%2520Advanced%2520Composites/Documents/Technical%2520papers/TenCate_chopped_fiber_thermoplastics_compression_molding_technical_paper.pdf": {
|
||||
"isValid": false,
|
||||
"timestamp": 1743264336017
|
||||
"timestamp": 1743270733152
|
||||
},
|
||||
"https://youtu.be/qtZv96cifIU": {
|
||||
"isValid": true,
|
||||
|
||||
BIN
meta/sev-red-colors.png
Normal file
BIN
meta/sev-red-colors.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 238 KiB |
BIN
public/images/home/cta-howtos-2.jpg
Normal file
BIN
public/images/home/cta-howtos-2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
public/images/home/cta-howtos.jpg
Normal file
BIN
public/images/home/cta-howtos.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
BIN
public/images/home/cta-lib-1.jpg
Normal file
BIN
public/images/home/cta-lib-1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 730 KiB |
BIN
public/images/home/cta-lib-2.jpg
Normal file
BIN
public/images/home/cta-lib-2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
BIN
public/images/home/icon-knowledgebase.png
Normal file
BIN
public/images/home/icon-knowledgebase.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
70
src/components/cta/CtaHowtos.astro
Normal file
70
src/components/cta/CtaHowtos.astro
Normal file
@ -0,0 +1,70 @@
|
||||
<section>
|
||||
<div class="py-2">
|
||||
<div
|
||||
class="flex flex-col p-4 text-center py-32 bg-white rounded-xl overflow-hidden relative">
|
||||
<img
|
||||
class="size-96 absolute -left-32 md:scale-150 md:-bottom-32"
|
||||
src="/images/home/cta-howtos.jpg"
|
||||
alt=""
|
||||
/>
|
||||
<img
|
||||
class="size-96 absolute ms:scale-150 md:-bottom-32 -right-32"
|
||||
src="/images/home/cta-howtos-2.jpg"
|
||||
alt=""
|
||||
/>
|
||||
|
||||
<div class="max-w-xl mx-auto relative">
|
||||
<h1
|
||||
class="text-lg text-neutral-600 font-mono tracking-tight text-balance uppercase">
|
||||
Discover hundreds of tutorials
|
||||
</h1>
|
||||
<p class="text-sm text-balance text-neutral-500">
|
||||
Learn how to use our products with our step-by-step tutorials.
|
||||
</p>
|
||||
<div class="flex justify-center mt-12">
|
||||
<a
|
||||
href="/howtos"
|
||||
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 justify-between">
|
||||
<span class="relative uppercase text-xs text-white">Howtos</span>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
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"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
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>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="h-14 flex">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
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>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
69
src/components/cta/CtaLibrary.astro
Normal file
69
src/components/cta/CtaLibrary.astro
Normal file
@ -0,0 +1,69 @@
|
||||
<section>
|
||||
<div class="py-2">
|
||||
<div
|
||||
class="flex flex-col p-4 text-center py-32 bg-white rounded-xl overflow-hidden relative">
|
||||
<img
|
||||
class="size-96 absolute -left-32 md:scale-150 md:-bottom-32"
|
||||
src="/images/home/cta-lib-2.jpg"
|
||||
alt=""
|
||||
/>
|
||||
<img
|
||||
class="size-96 absolute ms:scale-150 md:-bottom-32 -right-32"
|
||||
src="/images/home/cta-lib-1.jpg"
|
||||
alt=""
|
||||
/>
|
||||
|
||||
<div class="max-w-xl mx-auto relative">
|
||||
<h1
|
||||
class="text-lg text-neutral-600 font-mono tracking-tight text-balance uppercase">
|
||||
Library
|
||||
</h1>
|
||||
<p class="text-sm text-balance text-neutral-500">
|
||||
</p>
|
||||
<div class="flex justify-center mt-12">
|
||||
<a
|
||||
href="/howtos"
|
||||
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 justify-between">
|
||||
<span class="relative uppercase text-xs text-white">Howtos</span>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
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"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
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>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="h-14 flex">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
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>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@ -1,13 +1,68 @@
|
||||
---
|
||||
---
|
||||
<section>
|
||||
<div class="py-2">
|
||||
<div
|
||||
class="flex flex-col text-center bg-white rounded-xl overflow-hidden relative shadow-md">
|
||||
class="flex flex-col p-4 text-center py-32 bg-white rounded-xl overflow-hidden relative">
|
||||
<img
|
||||
class="size-96 absolute -left-32 md:scale-150 md:-bottom-32"
|
||||
src="/products/19.png"
|
||||
alt=""
|
||||
/>
|
||||
<img
|
||||
class="size-96 absolute ms:scale-150 md:-bottom-32 -right-32"
|
||||
src="/products/19.png"
|
||||
alt=""
|
||||
/>
|
||||
<div class="max-w-xl mx-auto relative">
|
||||
<h1
|
||||
class="text-lg text-neutral-600 font-mono tracking-tight text-balance uppercase">
|
||||
</h1>
|
||||
class="text-lg text-neutral-600 font-mono tracking-tight text-balance uppercase">
|
||||
Subscribe to our all included bundle, monhtly, quarterly and yearly.
|
||||
</h1>
|
||||
<p class="text-sm text-balance text-neutral-500">
|
||||
Subscribe today and enjor more then 50.000 products in your cart.
|
||||
</p>
|
||||
<div class="flex justify-center mt-12">
|
||||
<a
|
||||
type="submit"
|
||||
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 justify-between">
|
||||
<span class="relative uppercase text-xs text-white">Subscribe today</span>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
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"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
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>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="h-14 flex">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="1.5"
|
||||
stroke="currentColor"
|
||||
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>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,26 +1,28 @@
|
||||
---
|
||||
|
||||
---
|
||||
<section>
|
||||
<div class="py-2">
|
||||
<div
|
||||
class="flex flex-col p-4 pb-32 bg-white rounded-xl overflow-hidden relative">
|
||||
<img
|
||||
class="w-full absolute md:-bottom-96 -left-96 -ml-48"
|
||||
src="/products/19.png"
|
||||
alt=""
|
||||
/>
|
||||
<div class="max-w-xl relative ml-auto">
|
||||
<h1
|
||||
class="text-lg text-neutral-600 font-mono tracking-tight text-balance uppercase">
|
||||
Subscribe to our all included bundle, monhtly, quarterly and yearly.
|
||||
Shop
|
||||
</h1>
|
||||
<p class="text-sm text-balance text-neutral-500">
|
||||
Subscribe today and enjor more then 50.000 products in your cart.
|
||||
</p>
|
||||
<div class="flex mt-12">
|
||||
<a
|
||||
type="submit"
|
||||
href="/en/store"
|
||||
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 justify-between">
|
||||
<span class="relative uppercase text-xs text-white"
|
||||
>Subscribe today</span
|
||||
>Store</span
|
||||
>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
|
||||
@ -26,6 +26,7 @@ import {
|
||||
HOWTO_LOCAL_RESOURCES,
|
||||
HOWTO_ADD_RESOURCES,
|
||||
HOWTO_ADD_REFERENCES,
|
||||
HOWTO_EDIT_URL,
|
||||
} from "config/config.js";
|
||||
import { filter } from "@/base/kbot.js";
|
||||
|
||||
@ -99,6 +100,15 @@ if (HOWTO_LOCAL_RESOURCES && howto.user && howto.user.geo) {
|
||||
|
||||
const Resources = component(howto_resources);
|
||||
const References = component(howto_references);
|
||||
|
||||
/*
|
||||
const EditLink = () => {
|
||||
return (
|
||||
<a href={HOWTO_EDIT_URL(howto.slug, Astro.currentLocale)}>Edit</a>
|
||||
)
|
||||
}
|
||||
*/
|
||||
|
||||
---
|
||||
|
||||
<BaseLayout class="markdown-content bg-gray-100">
|
||||
|
||||
@ -6,9 +6,8 @@ import Wrapper from "@/components/containers/Wrapper.astro";
|
||||
|
||||
const all = await getCollection("howtos");
|
||||
const locale = Astro.currentLocale || "en";
|
||||
const { category = "guides" } = Astro.props;
|
||||
const filtered = all.filter(
|
||||
(item) => item.data.item.category?.label.toLowerCase() === category,
|
||||
const { category } = Astro.props;
|
||||
const filtered = all.filter( (item) => item.data.item.category?.label.toLowerCase() === category,
|
||||
);
|
||||
---
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ export const LOGGING_NAMESPACE = 'polymech-site'
|
||||
export const TRANSLATE_CONTENT = true
|
||||
export const LANGUAGES = ['en', 'es']
|
||||
export const LANGUAGES_SITE = ['en', 'ar', 'de', 'ja', 'es', 'zh', 'fr']
|
||||
export const LANGUAGES_PROD = ['en']
|
||||
export const LANGUAGES_PROD = ['en','es']
|
||||
export const isRTL = (lang) => lang === 'ar'
|
||||
|
||||
// i18n constants
|
||||
@ -23,6 +23,7 @@ export const I18N_ASSET_PATH = "${SRC_DIR}/${SRC_NAME}-${DST_LANG}${SRC_EXT}"
|
||||
|
||||
export const HOWTO_GLOB = '**/config.json'
|
||||
export const FILES_WEB = 'https://files.polymech.io/files/machines/howtos/'
|
||||
export const HOWTO_EDIT_ROOT = 'https://git.polymech.io/osr-plastic/osr-machines/src/branch/master/howtos'
|
||||
export const HOWTO_FILTER_LLM = true
|
||||
export const HOWTO_ANNOTATIONS = false
|
||||
export const HOWTO_ANNOTATIONS_CACHE = false
|
||||
@ -40,6 +41,7 @@ export const HOWTO_ROOT_INTERN = () => path.resolve(resolve("./public/resources/
|
||||
export const HOWTO_ROOT = () => path.resolve(resolve("${OSR_ROOT}/osr-machines/howtos"))
|
||||
export const HOWTO_FILES_ABS = (id) => `${HOWTO_ROOT()}/${id}`
|
||||
export const HOWTO_FILES_WEB = (id: string) => `${FILES_WEB}/${id}`
|
||||
export const HOWTO_EDIT_URL = (id: string, lang: string) => `${HOWTO_EDIT_ROOT}/${id}`
|
||||
|
||||
// Products
|
||||
export const PRODUCT_ROOT = () => path.resolve(resolve("${OSR_ROOT}/products"))
|
||||
|
||||
@ -7,7 +7,7 @@ export const items = async (opts: { locale: string }) => {
|
||||
const _T = async (text: string) => await translate(text, I18N_SOURCE_LANGUAGE, opts.locale)
|
||||
return [
|
||||
{
|
||||
"href": `/${opts.locale}`,
|
||||
"href": `/`,
|
||||
"title": _T("Home"),
|
||||
"ariaLabel": "Home",
|
||||
"class": "hover:text-orange-600"
|
||||
|
||||
@ -2,12 +2,21 @@
|
||||
import BaseLayout from "@/layouts/BaseLayout.astro"
|
||||
import { getCollection } from "astro:content"
|
||||
import StoreEntries from "@/components/store/StoreEntries.astro"
|
||||
import CtaTwo from "@/components/cta/CtaTwo.astro"
|
||||
|
||||
import CtaHowtos from "@/components/cta/CtaHowtos.astro"
|
||||
import CtaLibrary from "@/components/cta/CtaLibrary.astro"
|
||||
|
||||
import Cta1 from "@/components/cta/CtaOne.astro"
|
||||
|
||||
import Cta3 from "@/components/cta/CtaThree.astro"
|
||||
import Cta2 from "@/components/cta/CtaTwo.astro"
|
||||
const allProducts = await getCollection("store")
|
||||
const locale = Astro.currentLocale || "en"
|
||||
---
|
||||
<BaseLayout>
|
||||
<CtaTwo />
|
||||
<CtaHowtos />
|
||||
<CtaLibrary />
|
||||
<Cta3 />
|
||||
<section>
|
||||
<div class="py-2 space-y-2">
|
||||
<div class="grid md:grid-cols-2 lg:grid-cols-2 gap-2 ">
|
||||
|
||||
@ -165,6 +165,28 @@
|
||||
/* Open six */ "cv04" 1, /* Open nine */ "cv01" 1,
|
||||
/* Alternate one */ "cv09", /* Flat-top three */ "cv02" 1; /* Open 4 */
|
||||
/* style code blocks*/
|
||||
/** * Color Palette - Original ***/
|
||||
--color-sevo-black: #1A0C0B;
|
||||
--color-sevo-maroon: #4E1C21;
|
||||
--color-sevo-taupe: #7B5C56;
|
||||
--color-sevo-beige: #D4B8A8;
|
||||
--color-sevo-ice: #B4CFD9;
|
||||
--color-sevo-denim: #4D7B9A;
|
||||
--color-sevo-cobalt: #0C4B74;
|
||||
--color-sevo-navy: #123E52;
|
||||
--color-sevo-midnight: #1F263F;
|
||||
--color-sevo-ink: #354B64;
|
||||
/** * Color Palette - Warm ***/
|
||||
--color-sev-black: #2A1513; /* softened black */
|
||||
--color-sev-maroon: #6A2A2D; /* warmer, lighter maroon */
|
||||
--color-sev-taupe: #916D68; /* slightly rosier taupe */
|
||||
--color-sev-beige: #E2C7B9; /* a creamier beige */
|
||||
--color-sev-ice: #C3DCE5; /* warmer light blue */
|
||||
--color-sev-denim: #6389A5; /* softened denim */
|
||||
--color-sev-cobalt: #216397; /* richer blue, less cold */
|
||||
--color-sev-navy: #2A5368; /* deeper, slightly greener navy */
|
||||
--color-sev-midnight: #35425C; /* mellowed-out midnight */
|
||||
--color-sev-ink: #4A5E76; /* softer ink */
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user