init
This commit is contained in:
236 files changed
+24692
No files matched your search
@@ -0,0 +1,223 @@
|
||||
:root {
|
||||
font-family: Vazirmatn, sans-serif;
|
||||
color: #211b1d;
|
||||
background: #f8f2e9;
|
||||
--paper: #f8f2e9;
|
||||
--ink: #211b1d;
|
||||
--ink-deep: #191316;
|
||||
--cream: #fff7eb;
|
||||
--line: #d9cabd;
|
||||
--muted: #625650;
|
||||
--red: #a91d38;
|
||||
--hot: #ff8793;
|
||||
--gutter: clamp(1.2rem, 4.5vw, 4rem);
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
[hidden] { display: none !important; }
|
||||
body { margin: 0; line-height: 1.7; }
|
||||
img { display: block; max-inline-size: 100%; }
|
||||
a { color: inherit; text-decoration: none; }
|
||||
button, select { font: inherit; }
|
||||
button { cursor: pointer; }
|
||||
h1, h2, h3, p, figure { margin: 0; }
|
||||
h1, h2, h3 { line-height: 1.24; }
|
||||
h2 { font-size: clamp(1.75rem, 3.8vw, 3rem); font-weight: 850; }
|
||||
:focus-visible { outline: 3px solid #d3435e; outline-offset: 5px; }
|
||||
|
||||
.shell { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
|
||||
.site-header { background: var(--paper); border-block-start: 3px solid var(--red); }
|
||||
.masthead { display: flex; align-items: center; min-height: 82px; gap: clamp(1rem, 4vw, 3.5rem); }
|
||||
.brand { font-size: clamp(1.6rem, 3vw, 2.2rem); }
|
||||
.masthead nav { display: flex; gap: clamp(.85rem, 3.5vw, 2.6rem); font-size: .94rem; font-weight: 680; }
|
||||
.masthead nav a { padding-block: .5rem; white-space: nowrap; }
|
||||
.masthead nav a:hover, .text-link:hover { color: var(--red); }
|
||||
.language { margin-inline-start: auto; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .86rem; font-weight: 690; white-space: nowrap; }
|
||||
.language:hover { border-color: var(--red); }
|
||||
.skip-link { position: absolute; z-index: 4; top: 0; inset-inline-start: 1rem; background: var(--cream); padding: .6rem; transform: translateY(-130%); }
|
||||
.skip-link:focus { transform: none; }
|
||||
|
||||
.hero { background: var(--ink-deep); color: var(--cream); position: relative; isolation: isolate; overflow: hidden; }
|
||||
.hero-media { position: absolute; inset: 0 auto 0 0; width: 68%; z-index: -1; }
|
||||
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
|
||||
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, transparent 56%, #19131626 70%, var(--ink-deep) 100%); }
|
||||
.hero-inner { display: grid; grid-template-columns: 53% 47%; direction: ltr; align-items: center; min-height: min(650px, 58vw); position: relative; }
|
||||
.hero-copy { grid-column: 2; padding-block: clamp(2rem, 5.6vw, 5.3rem); }
|
||||
[lang="fa"] .hero-copy { direction: rtl; }
|
||||
.hero-copy .eyebrow { color: var(--hot); display: inline-flex; gap: .7rem; align-items: center; font-weight: 720; }
|
||||
.eyebrow span { width: 1.8rem; height: 1px; background: currentColor; }
|
||||
.hero h1 { font-size: clamp(2.5rem, 5.85vw, 6.45rem); font-weight: 900; letter-spacing: -.04em; margin-block: .55rem .9rem; line-height: 1.14; }
|
||||
.hero h1 em { color: #ffb1b7; font-style: normal; }
|
||||
.hero-copy > p:not(.eyebrow) { color: #f0ded9; max-inline-size: 31rem; font-size: clamp(.98rem, 1.35vw, 1.13rem); }
|
||||
.hero-caption { position: absolute; left: 0; bottom: 1.2rem; font-size: .78rem; padding: .25rem .6rem; background: #191316d9; border: 1px solid #f8f2e94d; border-radius: .15rem; }
|
||||
|
||||
.button-group { display: flex; flex-wrap: wrap; gap: .65rem; margin-block-start: 1.35rem; }
|
||||
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: .62em 1.3em; border: 1px solid transparent; border-radius: .3rem; font-size: .95rem; line-height: 1.5; font-weight: 780; transition: background-color .18s, border-color .18s, color .18s; }
|
||||
.button-primary { color: #fff8ef; background: #b82746; }
|
||||
.button-primary:hover { background: #d13857; }
|
||||
.button-ghost { color: var(--cream); border-color: #f8f2e969; background: transparent; }
|
||||
.button-ghost:hover { background: #f8f2e91f; border-color: var(--cream); }
|
||||
.button-ink { color: var(--cream); background: var(--ink); }
|
||||
.button-ink:hover { background: var(--red); }
|
||||
.button-outline { background: transparent; border-color: var(--line); color: var(--ink); }
|
||||
.button-outline:hover, .button-outline[aria-pressed="true"] { border-color: var(--red); color: var(--red); }
|
||||
.text-link { font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .23em; }
|
||||
|
||||
.shelf { padding-block: clamp(3rem, 6.25vw, 5.5rem); }
|
||||
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; margin-block-end: 1.35rem; }
|
||||
.section-heading h1 { font-size: clamp(2.15rem, 5vw, 4.7rem); }
|
||||
.collection-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(.8rem, 2vw, 1.7rem); }
|
||||
.collection-card { display: grid; position: relative; isolation: isolate; overflow: hidden; align-content: center; min-height: clamp(220px, 29vw, 360px); padding: clamp(1.15rem, 3.4vw, 2.75rem); border-radius: .4rem; }
|
||||
.collection-rose { background: #8d1c35; color: var(--cream); }
|
||||
.collection-sound { background: #e9ddd0; color: var(--ink); }
|
||||
.collection-copy { max-inline-size: 52%; z-index: 1; }
|
||||
.collection-card h3 { font-size: clamp(1.6rem, 3.65vw, 3.5rem); font-weight: 850; }
|
||||
.collection-card p { margin-block: .55rem 1.15rem; line-height: 1.65; }
|
||||
.card-link { display: inline-block; border-block-end: 1px solid currentColor; font-size: .89rem; font-weight: 740; }
|
||||
.collection-card img { position: absolute; inset-inline-end: 1%; top: -4%; width: 49%; height: auto; transform: rotate(10deg); border: .25rem solid #f7f0e9; box-shadow: 0 13px 27px #32141b55; transition: transform .25s ease; }
|
||||
.collection-rose img { transform: rotate(-9deg); inset-inline-end: 2%; }
|
||||
.collection-card:hover img { transform: rotate(2deg) translateY(-3px); }
|
||||
|
||||
.preview-promo { display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; background: #f0e4d9; border-radius: .4rem; overflow: hidden; }
|
||||
.preview-promo-copy { padding: clamp(1.25rem, 4vw, 3.2rem); }
|
||||
.preview-promo-copy p { margin-block: .7rem 1.1rem; max-inline-size: 25rem; color: var(--muted); }
|
||||
.preview-promo figure { position: relative; }
|
||||
.preview-promo img { width: 100%; height: auto; }
|
||||
.preview-promo figcaption { position: absolute; inset-inline-start: .6rem; bottom: .55rem; font-size: .75rem; padding: .15rem .5rem; color: var(--cream); background: var(--ink); border-radius: .15rem; }
|
||||
.guide-promo { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; background: var(--ink-deep); color: var(--cream); padding: clamp(1.15rem, 3vw, 2.6rem); border-inline-start: 4px solid #b82746; border-radius: .35rem; margin-block: clamp(2rem, 5vw, 4.25rem); }
|
||||
.guide-promo h2 { font-size: clamp(1.45rem, 3.15vw, 2.55rem); }
|
||||
.guide-promo p { color: #eadbd7; margin-block-start: .4rem; }
|
||||
.site-footer { border-block-start: 3px solid var(--red); background: var(--ink-deep); color: var(--cream); }
|
||||
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.65rem clamp(1.25rem, 4vw, 3.5rem); padding-block: clamp(2rem, 4.5vw, 4rem); }
|
||||
.site-footer .brand { --porint-wordmark-accent: var(--hot); font-size: clamp(2rem, 4vw, 3.1rem); }
|
||||
.footer-identity > p, .footer-copy { color: #eddfda; }
|
||||
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-block-start: .65rem; font-size: .95rem; }
|
||||
.footer-section h2, .footer-licensing h2 { font-size: 1rem; font-weight: 800; color: var(--hot); }
|
||||
.footer-section h2 { margin-block-end: .6rem; }
|
||||
.site-footer address { font-style: normal; }
|
||||
.footer-contact { display: grid; justify-items: start; gap: .32rem; }
|
||||
.footer-copy { white-space: pre-line; overflow-wrap: anywhere; }
|
||||
.footer-postal { margin-block-start: .3rem; }
|
||||
.footer-postal bdi { margin-inline-start: .35rem; overflow-wrap: anywhere; }
|
||||
.footer-nav a, .footer-contact a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: #fff7eb73; overflow-wrap: anywhere; }
|
||||
.site-footer a:hover { color: var(--hot); text-decoration-color: currentColor; }
|
||||
.footer-licensing { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.35rem; border-block-start: 1px solid #fff7eb38; padding-block: 1.1rem 1.35rem; font-size: .91rem; }
|
||||
.footer-licensing p { flex: 1 1 26rem; }
|
||||
|
||||
.inner-page { padding-block: clamp(2rem, 5.1vw, 4.5rem); min-height: 60vh; }
|
||||
.collection-feature { display: grid; grid-template-columns: 1fr minmax(180px, 34%); align-items: center; gap: 1.5rem; background: #ebddcf; padding: clamp(1.15rem, 5vw, 4rem); margin-block: 1rem 2rem; border-radius: .4rem; }
|
||||
.collection-feature h1, .design-intro h1, .guide-article h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; }
|
||||
.collection-feature p { margin-block-start: .65rem; color: var(--muted); }
|
||||
.collection-feature img { max-height: 290px; width: auto; margin-inline: auto; transform: rotate(-4deg); filter: drop-shadow(0 14px 12px #42262938); }
|
||||
.empty-note { max-inline-size: 45rem; color: var(--muted); }
|
||||
.motif-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 270px), 375px)); gap: 1rem; margin-block-start: 1rem; }
|
||||
.motif { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; align-items: center; background: #efe3d8; border-radius: .35rem; padding: 1.1rem; }
|
||||
.motif img { inline-size: 90px; block-size: 106px; object-fit: contain; }
|
||||
.motif h3 { font-size: 1.45rem; }
|
||||
.motif span { color: var(--red); font-size: .9rem; }
|
||||
.guide-hero { background: var(--ink-deep); color: var(--cream); }
|
||||
.guide-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 4vw, 4.5rem); padding-block: clamp(2rem, 5vw, 4.5rem); }
|
||||
.guide-kicker { color: var(--hot); font-weight: 760; margin-block-end: .6rem; }
|
||||
.guide-hero h1 { font-size: clamp(2rem, 4.5vw, 4.35rem); font-weight: 900; text-wrap: balance; }
|
||||
.guide-deck { color: #eeded9; max-inline-size: 41rem; margin-block-start: .95rem; }
|
||||
.guide-hero-inner img { border-radius: .45rem; width: 100%; height: auto; }
|
||||
.guide-hero-inner figcaption { color: #eeded9; font-size: .875rem; margin-block-start: .45rem; }
|
||||
.guide-content { padding-block: clamp(2rem, 5vw, 4.25rem); }
|
||||
.guide-workflow { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(15rem, 1fr); grid-template-areas: "steps prep"; align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
|
||||
.guide-workflow #apply { grid-area: steps; }
|
||||
.guide-checklist { grid-area: prep; background: #efe3d6; border-block-start: 4px solid var(--red); padding: clamp(1rem, 3vw, 2rem); border-radius: .35rem; }
|
||||
.guide-checklist h2 { font-size: 1.55rem; }
|
||||
.guide-checklist ul { margin-block: .7rem 1.2rem; padding-inline-start: 1.15rem; }
|
||||
.guide-checklist li + li { margin-block-start: .4rem; }
|
||||
.guide-checklist h3 { font-size: 1.1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--line); }
|
||||
.guide-checklist p, .guide-steps p, .guide-care p, .guide-faq details p { color: var(--muted); margin-block-start: .45rem; }
|
||||
.guide-section { scroll-margin-block-start: 1.5rem; }
|
||||
.guide-section > h2 { margin-block-end: 1rem; }
|
||||
.guide-content > .guide-section { margin-block-start: clamp(2.25rem, 6vw, 5rem); }
|
||||
.guide-steps { counter-reset: guide-step; margin: 0; padding: 0; list-style: none; }
|
||||
.guide-steps li { position: relative; counter-increment: guide-step; background: #fff9f1; border: 1px solid var(--line); border-radius: .35rem; padding: 1.1rem; padding-inline-start: 3.7rem; }
|
||||
.guide-steps li + li { margin-block-start: .7rem; }
|
||||
.guide-steps li::before { content: counter(guide-step); display: grid; place-items: center; position: absolute; inset-block-start: 1.03rem; inset-inline-start: 1rem; width: 1.95rem; height: 1.95rem; background: var(--red); color: var(--cream); border-radius: 50%; font-weight: 790; }
|
||||
[lang="fa"] .guide-steps li::before { content: counter(guide-step, persian); }
|
||||
.guide-care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
|
||||
.guide-care > div { background: #efe3d6; border-radius: .35rem; padding: clamp(1rem, 2.5vw, 1.65rem); }
|
||||
.guide-faq details { border-block-start: 1px solid var(--line); padding-block: .85rem; }
|
||||
.guide-faq details:last-child { border-block-end: 1px solid var(--line); }
|
||||
.guide-faq summary { cursor: pointer; font-weight: 750; min-height: 2rem; }
|
||||
.guide-faq summary::marker { color: var(--red); }
|
||||
.guide-faq details p { max-inline-size: 52rem; }
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.guide-hero-inner { grid-template-columns: 1fr; }
|
||||
.guide-workflow { grid-template-columns: 1fr; grid-template-areas: "prep" "steps"; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.guide-care { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.design-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-block: .7rem 1.6rem; }
|
||||
.design-intro p:not(.size) { margin-block-start: .55rem; color: var(--muted); max-inline-size: 42rem; }
|
||||
.size { flex: none; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: .35rem; display: grid; min-inline-size: 10rem; }
|
||||
.size span { color: var(--muted); font-size: .83rem; }
|
||||
.size strong { font-size: 1.13rem; }
|
||||
.try-on { border-block-start: 1px solid var(--line); padding-block-start: 1.45rem; }
|
||||
.preview-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem 1rem; margin-block-end: .95rem; }
|
||||
.is-compare .fitting-room { max-inline-size: 1040px; margin-inline: auto; }
|
||||
.fitting-slot { display: grid; gap: 1rem; min-width: 0; }
|
||||
.fitting-slot:first-child { grid-template-columns: minmax(0, 1.55fr) minmax(240px, .8fr); }
|
||||
.garment-display { overflow: hidden; border-radius: .45rem; background: #e8ded2; }
|
||||
.garment-frame { position: relative; background: #d8d0c8; aspect-ratio: 1; max-inline-size: 590px; margin-inline: auto; }
|
||||
.garment-frame > img:first-child { width: 100%; height: 100%; }
|
||||
.garment-print { position: absolute; left: var(--print-x); top: var(--print-y); width: var(--print-width); height: auto; transform: translate(-50%, -50%); }
|
||||
.garment-display figcaption { padding: .65rem .9rem; font-weight: 730; text-align: center; }
|
||||
.fitting-controls { display: grid; gap: .75rem; align-content: start; align-self: start; border: 1px solid var(--line); background: #fff9f1; border-radius: .45rem; padding: clamp(.85rem, 2.2vw, 1.65rem); }
|
||||
.fitting-controls label { display: grid; gap: .25rem; font-weight: 690; font-size: .94rem; }
|
||||
.fitting-controls select { min-width: 0; min-height: 44px; width: 100%; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: .3rem; padding-inline: .55rem; }
|
||||
.fitting-controls select:disabled { opacity: .8; }
|
||||
.is-compare .fitting-room { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2.2vw, 1.5rem); }
|
||||
.is-compare .fitting-slot { grid-template-columns: 1fr; align-content: start; }
|
||||
.is-compare .fitting-controls { grid-template-columns: 1fr 1fr; }
|
||||
.slot-name { grid-column: 1 / -1; color: var(--red); font-weight: 800; }
|
||||
.preview-note { color: var(--muted); font-size: .88rem; margin-block-start: .65rem; }
|
||||
.design-page .guide-promo { margin-block-end: 0; }
|
||||
.empty-preview { display: grid; justify-items: start; gap: .7rem; padding: 1rem; background: #eee2d5; }
|
||||
.empty-preview img { max-height: 260px; }
|
||||
.draft-label { color: var(--red); font-weight: 740; }
|
||||
.draft-label a { text-decoration: underline; }
|
||||
|
||||
@media (max-width: 880px) {
|
||||
.hero-inner { min-height: 520px; grid-template-columns: 49% 51%; }
|
||||
.hero-media { width: 71%; }
|
||||
.collection-grid { grid-template-columns: 1fr 1fr; }
|
||||
.collection-copy { max-inline-size: 60%; }
|
||||
.collection-card img { width: 47%; top: 3%; inset-inline-end: -5%; }
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.masthead { gap: .7rem; min-height: 66px; }
|
||||
.masthead nav { gap: .65rem; font-size: .79rem; }
|
||||
.language { padding-inline: .5rem; font-size: .73rem; }
|
||||
.hero-media { width: 100%; height: auto; position: relative; display: block; }
|
||||
.hero-media img { width: 100%; height: min(75vw, 365px); object-position: 20% 42%; }
|
||||
.hero-media::after { background: linear-gradient(to bottom, transparent 64%, #191316a6 90%, var(--ink-deep)); }
|
||||
.hero-inner { min-height: auto; display: block; margin-top: -1.15rem; }
|
||||
.hero-copy { padding-block: 0 2.15rem; }
|
||||
.hero h1 { font-size: clamp(2.5rem, 10.3vw, 4rem); }
|
||||
.hero-caption { bottom: auto; top: -2.2rem; font-size: .66rem; }
|
||||
.collection-grid { grid-template-columns: 1fr; }
|
||||
.collection-card { min-height: 210px; }
|
||||
.collection-card img { width: 43%; inset-inline-end: 5%; top: -4%; }
|
||||
.preview-promo { grid-template-columns: 1fr; }
|
||||
.preview-promo figure { order: -1; }
|
||||
.collection-feature { grid-template-columns: 1fr 39%; }
|
||||
.design-intro { align-items: flex-start; flex-direction: column; }
|
||||
.fitting-slot:first-child { grid-template-columns: 1fr; }
|
||||
.is-compare .fitting-controls { grid-template-columns: 1fr; padding: .65rem; }
|
||||
.is-compare .fitting-slot { gap: .55rem; }
|
||||
.is-compare .garment-display figcaption { font-size: .84rem; padding-inline: .35rem; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
const templateFields = ['garment', 'color'] as const;
|
||||
const fields = [...templateFields, 'placement'] as const;
|
||||
type Field = typeof fields[number];
|
||||
type PreviewSelection = Record<Field, string>;
|
||||
|
||||
type Template = {
|
||||
name: string;
|
||||
garment: string;
|
||||
color: string;
|
||||
side: string;
|
||||
photo: string;
|
||||
width: number;
|
||||
placements: Record<string, { x: number; y: number }>;
|
||||
};
|
||||
|
||||
type PreviewData = {
|
||||
templates: Template[];
|
||||
labels: Record<Field, Record<string, string>>;
|
||||
};
|
||||
|
||||
function mountPreview(root: HTMLElement) {
|
||||
const dataNode = root.querySelector('[data-preview-data]');
|
||||
if (!dataNode?.textContent) return;
|
||||
const { templates, labels }: PreviewData = JSON.parse(dataNode.textContent);
|
||||
if (!templates.length) return;
|
||||
|
||||
const slots = Array.from(root.querySelectorAll<HTMLElement>('[data-slot]'));
|
||||
const button = root.querySelector<HTMLButtonElement>('[data-compare]');
|
||||
const second = templates.find((template) => template.garment !== templates[0].garment) ?? templates[1];
|
||||
|
||||
function bindSlot(slot: HTMLElement, initial: Template) {
|
||||
const photo = slot.querySelector<HTMLImageElement>('[data-garment-photo]')!;
|
||||
const print = slot.querySelector<HTMLImageElement>('[data-print]')!;
|
||||
const caption = slot.querySelector<HTMLElement>('[data-garment-caption]')!;
|
||||
const controls = slot.querySelector<HTMLElement>('[data-controls]')!;
|
||||
const state: PreviewSelection = {
|
||||
garment: initial.garment,
|
||||
color: initial.color,
|
||||
placement: initial.side + ':' + Object.keys(initial.placements)[0],
|
||||
};
|
||||
|
||||
function setChoices(field: Field, choices: string[], labelFor = (value: string) => labels[field][value] ?? value) {
|
||||
const select = controls.querySelector<HTMLSelectElement>('[data-selection="' + field + '"]')!;
|
||||
if (!choices.includes(state[field])) state[field] = choices[0];
|
||||
|
||||
const options = choices.map((value) => new Option(labelFor(value), value, false, value === state[field]));
|
||||
select.replaceChildren(...options);
|
||||
select.disabled = choices.length === 1;
|
||||
}
|
||||
|
||||
function render() {
|
||||
let matches = templates;
|
||||
for (const field of templateFields) {
|
||||
setChoices(field, [...new Set(matches.map((template) => template[field]))]);
|
||||
matches = matches.filter((template) => template[field] === state[field]);
|
||||
}
|
||||
const placements = new Map(matches.flatMap((template) =>
|
||||
Object.entries(template.placements).map(([name, position]) =>
|
||||
[template.side + ':' + name, { name, template, position }] as const),
|
||||
));
|
||||
setChoices('placement', [...placements.keys()], (value) => {
|
||||
const name = placements.get(value)!.name;
|
||||
return labels.placement[name] ?? name;
|
||||
});
|
||||
const { template, position } = placements.get(state.placement)!;
|
||||
if (photo.getAttribute('src') !== template.photo) photo.src = template.photo;
|
||||
photo.alt = template.name;
|
||||
caption.textContent = template.name;
|
||||
print.style.setProperty('--print-width', template.width + '%');
|
||||
print.style.setProperty('--print-x', position.x + '%');
|
||||
print.style.setProperty('--print-y', position.y + '%');
|
||||
}
|
||||
|
||||
controls.addEventListener('change', (event) => {
|
||||
if (!(event.target instanceof HTMLSelectElement)) return;
|
||||
const field = event.target.dataset.selection as Field;
|
||||
state[field] = event.target.value;
|
||||
render();
|
||||
});
|
||||
controls.hidden = false;
|
||||
render();
|
||||
}
|
||||
|
||||
if (slots[0]) bindSlot(slots[0], templates[0]);
|
||||
if (button && slots[1] && second) {
|
||||
bindSlot(slots[1], second);
|
||||
button.hidden = false;
|
||||
button.addEventListener('click', () => {
|
||||
const comparing = slots[1].hidden === true;
|
||||
slots[1].hidden = !comparing;
|
||||
root.classList.toggle('is-compare', comparing);
|
||||
button.setAttribute('aria-pressed', String(comparing));
|
||||
button.textContent = (comparing ? button.dataset.single : button.dataset.dual) ?? '';
|
||||
slots.forEach((slot) => {
|
||||
const name = slot.querySelector<HTMLElement>('[data-slot-name]');
|
||||
if (name) name.hidden = !comparing;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelectorAll<HTMLElement>('[data-preview]').forEach(mountPreview);
|
||||
@@ -0,0 +1,57 @@
|
||||
<link rel="preload" href="{{ asset('fonts/vazirmatn.woff2') }}" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
<style>
|
||||
.fi-panel-studio .fi-wi-chart .fi-wi-chart-text-color {
|
||||
color: #574c53;
|
||||
}
|
||||
|
||||
.dark .fi-panel-studio .fi-wi-chart .fi-wi-chart-text-color {
|
||||
color: #d0c7ce;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
const family = 'Vazirmatn, sans-serif';
|
||||
const font = '500 13px Vazirmatn';
|
||||
const sample = 'آذر ۱۲۳۴۵۶۷۸۹۰';
|
||||
const labelFont = ({ chart }) => chart.options.font;
|
||||
const labelColor = ({ chart }) => chart.options.color;
|
||||
|
||||
window.filamentChartJsPlugins ??= [];
|
||||
window.filamentChartJsPlugins.push({
|
||||
id: 'porint-dashboard-typography',
|
||||
beforeInit(chart) {
|
||||
const options = chart.config.options;
|
||||
const needsFont = document.fonts && !document.fonts.check(font, sample);
|
||||
|
||||
options.font = { ...options.font, family: needsFont ? 'sans-serif' : family, size: 13, weight: 500 };
|
||||
|
||||
for (const scale of Object.values(options.scales ?? {})) {
|
||||
scale.ticks = { ...scale.ticks, font: labelFont, color: labelColor, padding: 7 };
|
||||
}
|
||||
|
||||
const legend = options.plugins?.legend;
|
||||
if (legend && legend.display !== false) {
|
||||
legend.labels = { ...legend.labels, font: labelFont, color: labelColor, padding: 16 };
|
||||
}
|
||||
|
||||
const tooltip = options.plugins?.tooltip;
|
||||
if (tooltip) {
|
||||
tooltip.bodyFont = labelFont;
|
||||
tooltip.titleFont = ({ chart }) => ({ ...chart.options.font, size: 14, weight: 650 });
|
||||
}
|
||||
|
||||
if (needsFont) {
|
||||
// A different family invalidates widths measured before the webfont loaded.
|
||||
document.fonts.load(font, sample).then((faces) => {
|
||||
if (!chart.canvas || !faces.length) return;
|
||||
|
||||
options.font.family = family;
|
||||
chart.update('resize');
|
||||
}).catch(() => {});
|
||||
}
|
||||
},
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
@@ -0,0 +1,11 @@
|
||||
<x-filament-panels::page>
|
||||
<form class="fi-sc-form" wire:submit="save">
|
||||
{{ $this->form }}
|
||||
|
||||
<div>
|
||||
<x-filament::button type="submit">
|
||||
{{ __('admin.footer.save') }}
|
||||
</x-filament::button>
|
||||
</div>
|
||||
</form>
|
||||
</x-filament-panels::page>
|
||||
@@ -0,0 +1,24 @@
|
||||
<script>
|
||||
document.addEventListener('livewire:init', () => {
|
||||
let expirationShown = false;
|
||||
|
||||
Livewire.interceptRequest(({ onError }) => {
|
||||
onError(({ response, body, preventDefault }) => {
|
||||
const expired = response.status === 419;
|
||||
const emptyResponse = response.ok && body.trim() === '';
|
||||
|
||||
if (!expired && !emptyResponse) return;
|
||||
|
||||
preventDefault();
|
||||
if (expired && expirationShown) return;
|
||||
expirationShown ||= expired;
|
||||
|
||||
const message = expired
|
||||
? @js(__('admin.livewire.expired'))
|
||||
: @js(__('admin.livewire.empty_response'));
|
||||
|
||||
if (window.confirm(message)) window.location.reload();
|
||||
});
|
||||
});
|
||||
}, { once: true });
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
<span class="porint-wordmark" dir="ltr" role="img" aria-label="{{ filament()->getBrandName() }}">PORINT</span>
|
||||
@@ -0,0 +1,7 @@
|
||||
@extends('studio.layout')
|
||||
@section('content')
|
||||
<section class="shell inner-page">
|
||||
<div class="section-heading"><h1>{{ __('studio.titles.catalog') }}</h1></div>
|
||||
@include('studio.collection-grid')
|
||||
</section>
|
||||
@endsection
|
||||
@@ -0,0 +1,14 @@
|
||||
<div class="collection-grid">
|
||||
@foreach ($collections as $collection)
|
||||
<a class="collection-card {{ $loop->even ? 'collection-sound' : 'collection-rose' }}" href="{{ route($locale.'.collection', $collection->text('slug')) }}">
|
||||
<div class="collection-copy">
|
||||
<h3>{{ $collection->text('name') }}</h3>
|
||||
<p>{{ $collection->text('description') }}</p>
|
||||
<span class="card-link">{{ __('studio.open_collection') }}</span>
|
||||
</div>
|
||||
@if ($collection->cover)
|
||||
<img src="{{ $collection->coverUrl() }}" alt="" width="572" height="740" loading="lazy">
|
||||
@endif
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
@extends('studio.layout')
|
||||
@section('content')
|
||||
<section class="shell inner-page">
|
||||
<a class="text-link" href="{{ route($locale.'.catalog') }}">{{ __('studio.back_collections') }}</a>
|
||||
<div class="collection-feature">
|
||||
<div><h1>{{ $title }}</h1><p>{{ $description }}</p></div>
|
||||
@if ($collection->cover)
|
||||
<img src="{{ $collection->coverUrl() }}" alt="{{ $title }}" width="572" height="740">
|
||||
@endif
|
||||
</div>
|
||||
@if ($designs->isEmpty())
|
||||
<p class="empty-note">{{ __('studio.loading_empty') }}</p>
|
||||
@else
|
||||
<h2>{{ __('studio.designs') }}</h2>
|
||||
<div class="motif-grid">
|
||||
@foreach ($designs as $design)
|
||||
<a class="motif" href="{{ route($locale.'.design', $design->text('slug')) }}">
|
||||
<img src="{{ route('artwork', ['id' => $design->id, 'file' => basename($design->artwork_path)]) }}" alt="" loading="lazy">
|
||||
<div><h3>{{ $design->text('name') }}</h3><span class="text-link">{{ __('studio.try') }}</span></div>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
@endsection
|
||||
@@ -0,0 +1,71 @@
|
||||
@extends('studio.layout')
|
||||
@section('content')
|
||||
@php
|
||||
$staffPreview = $draft ?? false;
|
||||
$art = route($staffPreview ? 'studio.preview-art' : 'artwork', ['id' => $design->id, 'file' => basename($design->artwork_path ?? '') ?: 'unavailable.webp']);
|
||||
$number = new \NumberFormatter($locale, \NumberFormatter::DECIMAL);
|
||||
$sizeLabel = $number->format((float) $design->width_cm).' × '.$number->format((float) $design->height_cm);
|
||||
$labels = [
|
||||
'garment' => __('studio.garment_labels'),
|
||||
'color' => __('studio.color_labels'),
|
||||
'placement' => __('studio.placement_labels'),
|
||||
];
|
||||
@endphp
|
||||
<section class="shell inner-page design-page">
|
||||
@if ($staffPreview)
|
||||
<p class="draft-label">{{ __('studio.draft') }} · <a href="{{ \App\Filament\Resources\Designs\DesignResource::getUrl('view', ['record' => $design], panel: 'studio') }}">{{ __('studio.return_admin') }}</a></p>
|
||||
@else
|
||||
<a class="text-link" href="{{ route($locale.'.collection', $design->collection->text('slug')) }}">{{ $design->collection->text('name') }}</a>
|
||||
@endif
|
||||
<div class="design-intro">
|
||||
<div><h1>{{ $title }}</h1><p>{{ $description }}</p></div>
|
||||
<p class="size">
|
||||
<span>{{ __('studio.dimensions') }}</span>
|
||||
<strong><bdi dir="ltr">{{ $sizeLabel }}</bdi> {{ __('studio.centimeters') }}</strong>
|
||||
</p>
|
||||
</div>
|
||||
@if ($templates && $design->artwork_path)
|
||||
@php($first = $templates[0])
|
||||
@php($anchor = reset($first['placements']))
|
||||
<section class="try-on" data-preview>
|
||||
<script type="application/json" data-preview-data>@json(['templates' => $templates, 'labels' => $labels])</script>
|
||||
<div class="preview-heading">
|
||||
<h2>{{ __('studio.preview_heading') }}</h2>
|
||||
@if (count($templates) > 1)
|
||||
<button type="button" class="button button-outline compare-button" data-compare aria-pressed="false" data-single="{{ __('studio.single') }}" data-dual="{{ __('studio.compare') }}" hidden>{{ __('studio.compare') }}</button>
|
||||
@endif
|
||||
</div>
|
||||
<div class="fitting-room">
|
||||
@for ($slot = 0; $slot < 2; $slot++)
|
||||
<div class="fitting-slot" data-slot @if ($slot === 1) hidden @endif>
|
||||
<figure class="garment-display">
|
||||
<div class="garment-frame">
|
||||
<img src="{{ $first['photo'] }}" alt="{{ $first['name'] }}" width="627" height="627" data-garment-photo>
|
||||
<img src="{{ $art }}" class="garment-print" alt="{{ $title }}" data-print style="--print-width: {{ $first['width'] }}%; --print-x: {{ $anchor['x'] }}%; --print-y: {{ $anchor['y'] }}%">
|
||||
</div>
|
||||
<figcaption data-garment-caption aria-live="polite">{{ $first['name'] }}</figcaption>
|
||||
</figure>
|
||||
<div class="fitting-controls" data-controls hidden>
|
||||
<p class="slot-name" data-slot-name hidden>{{ __('studio.'.($slot === 0 ? 'first_slot' : 'second_slot')) }}</p>
|
||||
@foreach (['garment' => 'choose_garment', 'color' => 'choose_color', 'placement' => 'choose_placement'] as $field => $label)
|
||||
<label>{{ __("studio.$label") }}<select data-selection="{{ $field }}"></select></label>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endfor
|
||||
</div>
|
||||
<p class="preview-note">{{ $design->illustrative || collect($templates)->contains('illustrative', true) ? __('studio.illustrative') : __('studio.preview_note') }}</p>
|
||||
</section>
|
||||
@else
|
||||
<div class="empty-preview">
|
||||
@if ($design->artwork_path)
|
||||
<img src="{{ $art }}" alt="{{ $title }}">
|
||||
@endif
|
||||
<p>{{ __('studio.no_preview') }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<aside class="guide-promo"><div><h2>{{ __('studio.guide_call') }}</h2><p>{{ __('studio.guide_copy') }}</p></div>
|
||||
<a class="button button-ghost" href="{{ route($locale.'.guides') }}">{{ __('studio.guide_link') }}</a>
|
||||
</aside>
|
||||
</section>
|
||||
@endsection
|
||||
@@ -0,0 +1,63 @@
|
||||
@php
|
||||
$phoneNumbers = $studioInformation['phone_numbers'] ?? [];
|
||||
$email = $studioInformation['email'] ?? null;
|
||||
$postalCode = $studioInformation['postal_code'] ?? null;
|
||||
$address = $studioInformation["address_$locale"] ?? null;
|
||||
$contactNote = $studioInformation["contact_note_$locale"] ?? null;
|
||||
$licensing = $studioInformation["licensing_$locale"] ?? null;
|
||||
@endphp
|
||||
|
||||
<footer class="site-footer">
|
||||
<div class="shell">
|
||||
<div class="footer-main">
|
||||
<div class="footer-identity">
|
||||
<a class="brand porint-wordmark" href="{{ route($locale.'.home') }}" aria-label="PORINT · {{ __('studio.home') }}">PORINT</a>
|
||||
<p>{{ __('studio.print_studio') }}</p>
|
||||
<nav class="footer-nav" aria-label="{{ __('studio.footer.navigation') }}">
|
||||
<a href="{{ route($locale.'.catalog') }}">{{ __('studio.catalog') }}</a>
|
||||
<a href="{{ route($locale.'.guides') }}">{{ __('studio.guides') }}</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@if ($phoneNumbers || filled($email) || filled($contactNote))
|
||||
<section class="footer-section">
|
||||
<h2>{{ __('studio.footer.contact') }}</h2>
|
||||
<address class="footer-contact">
|
||||
@foreach ($phoneNumbers as $number)
|
||||
<a href="tel:{{ \App\Support\PhoneNumber::dialString($number) }}" dir="ltr">{{ $number }}</a>
|
||||
@endforeach
|
||||
|
||||
@if (filled($email))
|
||||
<a href="mailto:{{ str_replace('%40', '@', rawurlencode($email)) }}" dir="ltr">{{ $email }}</a>
|
||||
@endif
|
||||
|
||||
@if (filled($contactNote))
|
||||
<p class="footer-copy">{{ $contactNote }}</p>
|
||||
@endif
|
||||
</address>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
@if (filled($address) || filled($postalCode))
|
||||
<section class="footer-section">
|
||||
<h2>{{ __('studio.footer.address') }}</h2>
|
||||
@if (filled($address))
|
||||
<address class="footer-copy">{{ $address }}</address>
|
||||
@endif
|
||||
@if (filled($postalCode))
|
||||
<p class="footer-postal">
|
||||
{{ __('studio.footer.postal_code') }} <bdi dir="ltr">{{ $postalCode }}</bdi>
|
||||
</p>
|
||||
@endif
|
||||
</section>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if (filled($licensing))
|
||||
<section class="footer-licensing">
|
||||
<h2>{{ __('studio.footer.licensing') }}</h2>
|
||||
<p class="footer-copy">{{ $licensing }}</p>
|
||||
</section>
|
||||
@endif
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,82 @@
|
||||
@extends('studio.layout')
|
||||
|
||||
@push('head')
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:title" content="{{ $title }} · PORINT">
|
||||
<meta property="og:description" content="{{ $description }}">
|
||||
<meta property="og:url" content="{{ $alternates[$locale] }}">
|
||||
<meta property="og:image" content="{{ asset('porint/guide-workbench.webp') }}">
|
||||
<meta property="og:image:alt" content="{{ __('guide.hero_alt') }}">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<article class="print-guide">
|
||||
<header class="guide-hero">
|
||||
<div class="shell guide-hero-inner">
|
||||
<div>
|
||||
<p class="guide-kicker">{{ __('guide.hero_label') }}</p>
|
||||
<h1>{{ $title }}</h1>
|
||||
<p class="guide-deck">{{ $description }}</p>
|
||||
<nav class="button-group" aria-label="{{ __('guide.jump_label') }}">
|
||||
<a class="button button-primary" href="#apply">{{ __('guide.apply') }}</a>
|
||||
<a class="button button-ghost" href="#care">{{ __('guide.care') }}</a>
|
||||
<a class="button button-ghost" href="#questions">{{ __('guide.questions') }}</a>
|
||||
</nav>
|
||||
</div>
|
||||
<figure>
|
||||
<img src="{{ asset('porint/guide-workbench.webp') }}" alt="{{ __('guide.hero_alt') }}" width="1200" height="800" fetchpriority="high">
|
||||
<figcaption>{{ __('guide.hero_caption') }}</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="shell guide-content">
|
||||
<div class="guide-workflow">
|
||||
<aside class="guide-checklist" aria-labelledby="guide-checklist-title">
|
||||
<h2 id="guide-checklist-title">{{ __('guide.checklist_title') }}</h2>
|
||||
<ul>
|
||||
@foreach (__('guide.checklist') as $item)
|
||||
<li>{{ $item }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<h3>{{ __('guide.press_note_title') }}</h3>
|
||||
<p>{{ __('guide.press_note') }}</p>
|
||||
</aside>
|
||||
|
||||
<section class="guide-section" id="apply">
|
||||
<h2>{{ __('guide.application_title') }}</h2>
|
||||
<ol class="guide-steps" role="list">
|
||||
@foreach (__('guide.steps') as [$heading, $body])
|
||||
<li>
|
||||
<h3>{{ $heading }}</h3>
|
||||
<p>{{ $body }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ol>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<section class="guide-section" id="care">
|
||||
<h2>{{ __('guide.care_title') }}</h2>
|
||||
<div class="guide-care">
|
||||
@foreach (__('guide.care_items') as [$heading, $body])
|
||||
<div>
|
||||
<h3>{{ $heading }}</h3>
|
||||
<p>{{ $body }}</p>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="guide-section guide-faq" id="questions">
|
||||
<h2>{{ __('guide.questions') }}</h2>
|
||||
@foreach (__('guide.faq') as [$question, $answer])
|
||||
<details>
|
||||
<summary>{{ $question }}</summary>
|
||||
<p>{{ $answer }}</p>
|
||||
</details>
|
||||
@endforeach
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
@endsection
|
||||
@@ -0,0 +1,47 @@
|
||||
@extends('studio.layout')
|
||||
@section('content')
|
||||
<section class="hero">
|
||||
<picture class="hero-media">
|
||||
<img src="{{ asset('porint/hero.webp') }}" alt="{{ __('studio.hero_alt') }}" fetchpriority="high" width="1448" height="1086">
|
||||
</picture>
|
||||
<div class="shell hero-inner">
|
||||
<div class="hero-copy">
|
||||
<p class="eyebrow"><span></span>{{ __('studio.product') }}</p>
|
||||
<h1>{{ __('studio.hero_first') }}<br><em>{{ __('studio.hero_second') }}</em></h1>
|
||||
<p>{{ __('studio.hero_copy') }}</p>
|
||||
<div class="button-group">
|
||||
<a class="button button-primary" href="#collections">{{ __('studio.see_collection') }}</a>
|
||||
<a class="button button-ghost" href="{{ route($locale.'.guides') }}">{{ __('studio.guides') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<span class="hero-caption" dir="{{ $locale === 'fa' ? 'rtl' : 'ltr' }}">{{ __('studio.hero_mockup') }}</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="shell shelf" id="collections">
|
||||
<div class="section-heading">
|
||||
<h2>{{ __('studio.collection_heading') }}</h2>
|
||||
<a class="text-link" href="{{ route($locale.'.catalog') }}">{{ __('studio.back_collections') }}</a>
|
||||
</div>
|
||||
@include('studio.collection-grid')
|
||||
</section>
|
||||
|
||||
@if ($featured)
|
||||
<section class="shell preview-promo">
|
||||
<div class="preview-promo-copy">
|
||||
<h2>{{ __('studio.preview_heading') }}</h2>
|
||||
<p>{{ __('studio.preview_copy') }}</p>
|
||||
<a class="button button-ink" href="{{ route($locale.'.design', $featured->text('slug')) }}">{{ __('studio.try') }}</a>
|
||||
</div>
|
||||
<figure>
|
||||
<img src="{{ asset('porint/compare.webp') }}" width="1254" height="627" alt="{{ $locale === 'fa' ? 'یک طرح روی تیشرت و هودی' : 'The same print on a T-shirt and a hoodie' }}" loading="lazy">
|
||||
<figcaption>{{ __('studio.closeup') }}</figcaption>
|
||||
</figure>
|
||||
</section>
|
||||
@endif
|
||||
|
||||
<section class="shell guide-promo">
|
||||
<div><h2>{{ __('studio.guide_call') }}</h2><p>{{ __('studio.guide_copy') }}</p></div>
|
||||
<a class="button button-ghost" href="{{ route($locale.'.guides') }}">{{ __('studio.guide_link') }}</a>
|
||||
</section>
|
||||
@endsection
|
||||
@@ -0,0 +1,40 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ $locale }}" dir="{{ $locale === 'fa' ? 'rtl' : 'ltr' }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ $title }} · PORINT</title>
|
||||
<meta name="description" content="{{ $description }}">
|
||||
@if ($draft ?? false)
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
@else
|
||||
<link rel="canonical" href="{{ $alternates[$locale] }}">
|
||||
@foreach ($alternates as $language => $url)
|
||||
<link rel="alternate" hreflang="{{ $language }}" href="{{ $url }}">
|
||||
@endforeach
|
||||
@endif
|
||||
@stack('head')
|
||||
<link rel="preload" href="{{ asset('fonts/vazirmatn.woff2') }}" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="stylesheet" href="{{ asset('fonts/studio-font.css') }}">
|
||||
<link rel="stylesheet" href="{{ asset('porint/wordmark.css') }}">
|
||||
<link rel="icon" href="{{ asset('porint/favicon.png') }}" type="image/png">
|
||||
@vite(['resources/css/studio.css', 'resources/js/preview.ts'])
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#content">{{ $locale === 'fa' ? 'رفتن به محتوا' : 'Skip to content' }}</a>
|
||||
<header class="site-header">
|
||||
<div class="shell masthead">
|
||||
<a class="brand porint-wordmark" href="{{ route($locale.'.home') }}" aria-label="PORINT · {{ __('studio.home') }}">PORINT</a>
|
||||
<nav aria-label="{{ $locale === 'fa' ? 'منوی اصلی' : 'Main menu' }}">
|
||||
<a href="{{ route($locale.'.catalog') }}">{{ __('studio.catalog') }}</a>
|
||||
<a href="{{ route($locale.'.guides') }}">{{ __('studio.guides') }}</a>
|
||||
</nav>
|
||||
<a class="language" lang="{{ $alternateLocale }}" hreflang="{{ $alternateLocale }}" href="{{ $alternates[$alternateLocale] }}">{{ __('studio.language') }}</a>
|
||||
</div>
|
||||
</header>
|
||||
<main id="content">
|
||||
@yield('content')
|
||||
</main>
|
||||
@include('studio.footer')
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user