@krizaka/ui 3.67.1 → 3.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/chunk-E4FMPPDL.js +134 -0
- package/dist/chunk-E4FMPPDL.js.map +1 -0
- package/dist/{chunk-E4X3V7QX.js → chunk-GRVIZTT2.js} +2 -2
- package/dist/chunk-PZ4FJOD5.js +44 -0
- package/dist/chunk-PZ4FJOD5.js.map +1 -0
- package/dist/{chunk-PFPOBIHL.js → chunk-T5NZSKWT.js} +15 -12
- package/dist/{chunk-PFPOBIHL.js.map → chunk-T5NZSKWT.js.map} +1 -1
- package/dist/{chunk-6BMKLAZ7.js → chunk-Z47KIPCT.js} +7 -2
- package/dist/{chunk-6BMKLAZ7.js.map → chunk-Z47KIPCT.js.map} +1 -1
- package/dist/copy-button.d.ts +29 -0
- package/dist/copy-button.js +56 -0
- package/dist/copy-button.js.map +1 -0
- package/dist/data-table.js +3 -3
- package/dist/date-picker.d.ts +15 -15
- package/dist/filter-bar.d.ts +3 -3
- package/dist/filter-bar.js +1 -1
- package/dist/genui.js +3 -3
- package/dist/index.js +3 -3
- package/dist/kind-config-editor.js +106 -129
- package/dist/kind-config-editor.js.map +1 -1
- package/dist/lightbox-D5NAHFEA.js +95 -0
- package/dist/lightbox-D5NAHFEA.js.map +1 -0
- package/dist/match-dialog.js +17 -140
- package/dist/match-dialog.js.map +1 -1
- package/dist/money-input.d.ts +29 -0
- package/dist/money-input.js +78 -0
- package/dist/money-input.js.map +1 -0
- package/dist/nav-bar.d.ts +28 -4
- package/dist/nav-bar.js +20 -10
- package/dist/nav-bar.js.map +1 -1
- package/dist/promo-code-field.d.ts +38 -0
- package/dist/promo-code-field.js +94 -0
- package/dist/promo-code-field.js.map +1 -0
- package/dist/radio-group.js +1 -1
- package/dist/retro-tv.d.ts +39 -4
- package/dist/retro-tv.js +217 -40
- package/dist/retro-tv.js.map +1 -1
- package/dist/shop/booking.d.ts +22 -3
- package/dist/shop/booking.js +33 -1
- package/dist/shop/booking.js.map +1 -1
- package/dist/shop-composer.d.ts +1 -1
- package/dist/shop-composer.js +109 -85
- package/dist/shop-composer.js.map +1 -1
- package/dist/shop-gallery.d.ts +47 -0
- package/dist/shop-gallery.js +121 -0
- package/dist/shop-gallery.js.map +1 -0
- package/dist/shop.d.ts +1 -1
- package/dist/shop.js +1 -1
- package/dist/shop.js.map +1 -1
- package/dist/status-chip.js +1 -1
- package/dist/tag-selector.js +5 -5
- package/dist/tag-selector.js.map +1 -1
- package/dist/terminal-replay.js +1 -1
- package/dist/virtual.d.ts +3 -3
- package/package.json +63 -5
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/analysis-report.json +1 -1
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-frame.json +2 -2
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +1 -1
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +1 -1
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/collection-switcher.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/copy-button.json +382 -0
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +1 -1
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/desktop-window.json +1 -1
- package/registry/detail-layout.json +1 -1
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +2 -2
- package/registry/embed-facade.json +1 -1
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/entity-header.json +1 -1
- package/registry/environment-notice.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/examples/copy-button/default.d.ts +4 -0
- package/registry/examples/copy-button/default.js +11 -0
- package/registry/examples/copy-button/default.tsx +7 -0
- package/registry/examples/copy-button/icon-only.d.ts +4 -0
- package/registry/examples/copy-button/icon-only.js +11 -0
- package/registry/examples/copy-button/icon-only.tsx +7 -0
- package/registry/examples/money-input/currencies.d.ts +4 -0
- package/registry/examples/money-input/currencies.js +18 -0
- package/registry/examples/money-input/currencies.tsx +16 -0
- package/registry/examples/money-input/default.d.ts +4 -0
- package/registry/examples/money-input/default.js +18 -0
- package/registry/examples/money-input/default.tsx +16 -0
- package/registry/examples/promo-code-field/applied.d.ts +4 -0
- package/registry/examples/promo-code-field/applied.js +11 -0
- package/registry/examples/promo-code-field/applied.tsx +7 -0
- package/registry/examples/promo-code-field/default.d.ts +4 -0
- package/registry/examples/promo-code-field/default.js +19 -0
- package/registry/examples/promo-code-field/default.tsx +14 -0
- package/registry/examples/promo-code-field/expired.d.ts +4 -0
- package/registry/examples/promo-code-field/expired.js +11 -0
- package/registry/examples/promo-code-field/expired.tsx +7 -0
- package/registry/examples/retro-tv/playlist-channel.d.ts +4 -0
- package/registry/examples/retro-tv/playlist-channel.js +15 -0
- package/registry/examples/retro-tv/playlist-channel.tsx +10 -0
- package/registry/examples/retro-tv/playlist-crossfade.d.ts +4 -0
- package/registry/examples/retro-tv/playlist-crossfade.js +15 -0
- package/registry/examples/retro-tv/playlist-crossfade.tsx +10 -0
- package/registry/examples/retro-tv/playlist-slide.d.ts +4 -0
- package/registry/examples/retro-tv/playlist-slide.js +15 -0
- package/registry/examples/retro-tv/playlist-slide.tsx +10 -0
- package/registry/examples/shop/booking-closing-closed.d.ts +4 -0
- package/registry/examples/shop/booking-closing-closed.js +26 -0
- package/registry/examples/shop/booking-closing-closed.tsx +22 -0
- package/registry/examples/shop/booking-closing-mark.d.ts +4 -0
- package/registry/examples/shop/booking-closing-mark.js +13 -0
- package/registry/examples/shop/booking-closing-mark.tsx +12 -0
- package/registry/examples/shop/booking-closing.d.ts +4 -0
- package/registry/examples/shop/booking-closing.js +27 -0
- package/registry/examples/shop/booking-closing.tsx +23 -0
- package/registry/examples/shop-gallery/five.d.ts +4 -0
- package/registry/examples/shop-gallery/five.js +14 -0
- package/registry/examples/shop-gallery/five.tsx +10 -0
- package/registry/examples/shop-gallery/three.d.ts +4 -0
- package/registry/examples/shop-gallery/three.js +14 -0
- package/registry/examples/shop-gallery/three.tsx +10 -0
- package/registry/examples/shop-gallery/twelve.d.ts +4 -0
- package/registry/examples/shop-gallery/twelve.js +14 -0
- package/registry/examples/shop-gallery/twelve.tsx +10 -0
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +2 -2
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +142 -10
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/margin-layout.json +1 -1
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +1 -1
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/money-input.json +236 -0
- package/registry/nav-bar.json +22 -8
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +1 -1
- package/registry/pagination.json +1 -1
- package/registry/photo-grid.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/promo-code-field.json +258 -0
- package/registry/qr-code.json +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +2 -2
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +120 -8
- package/registry/reviews.json +1 -1
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/shop-composer.json +1 -1
- package/registry/shop-gallery.json +209 -0
- package/registry/shop.json +30 -6
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +2 -2
- package/registry/sites.json +1 -1
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +1 -1
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +2 -2
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/usage.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +1 -1
- package/registry/virtual.json +1 -1
- package/registry/wall.json +1 -1
- package/registry/waveform.json +1 -1
- /package/dist/{chunk-E4X3V7QX.js.map → chunk-GRVIZTT2.js.map} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/money-input/currencies.tsx
|
|
4
|
+
import { Field } from "@krizaka/ui/field";
|
|
5
|
+
import { MoneyInput } from "@krizaka/ui/money-input";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function MoneyInputCurrencies() {
|
|
9
|
+
const [cents, setCents] = useState(129900);
|
|
10
|
+
const [currency, setCurrency] = useState("CAD");
|
|
11
|
+
return /* @__PURE__ */ jsxs(Field.Root, { children: [
|
|
12
|
+
/* @__PURE__ */ jsx(Field.Label, { htmlFor: "amount", children: "Montant" }),
|
|
13
|
+
/* @__PURE__ */ jsx(MoneyInput, { id: "amount", value: cents, onValueChange: setCents, currency, onCurrencyChange: setCurrency, currencies: ["CAD", "USD", "EUR", "JPY"], currencyLabel: "Devise", locale: "fr-CA" })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
MoneyInputCurrencies as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Field } from "@krizaka/ui/field";
|
|
4
|
+
import { MoneyInput } from "@krizaka/ui/money-input";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
|
|
7
|
+
export default function MoneyInputCurrencies() {
|
|
8
|
+
const [cents, setCents] = useState<number | null>(129900);
|
|
9
|
+
const [currency, setCurrency] = useState("CAD");
|
|
10
|
+
return (
|
|
11
|
+
<Field.Root>
|
|
12
|
+
<Field.Label htmlFor="amount">Montant</Field.Label>
|
|
13
|
+
<MoneyInput id="amount" value={cents} onValueChange={setCents} currency={currency} onCurrencyChange={setCurrency} currencies={["CAD", "USD", "EUR", "JPY"]} currencyLabel="Devise" locale="fr-CA" />
|
|
14
|
+
</Field.Root>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/money-input/default.tsx
|
|
4
|
+
import { Field } from "@krizaka/ui/field";
|
|
5
|
+
import { MoneyInput } from "@krizaka/ui/money-input";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function MoneyInputDefault() {
|
|
9
|
+
const [cents, setCents] = useState(3900);
|
|
10
|
+
return /* @__PURE__ */ jsxs(Field.Root, { children: [
|
|
11
|
+
/* @__PURE__ */ jsx(Field.Label, { htmlFor: "price", children: "Price" }),
|
|
12
|
+
/* @__PURE__ */ jsx(MoneyInput, { id: "price", value: cents, onValueChange: setCents, currency: "CAD", locale: "en-CA" }),
|
|
13
|
+
/* @__PURE__ */ jsx(Field.Hint, { children: cents === null ? "Empty" : `${cents} cents` })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
MoneyInputDefault as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Field } from "@krizaka/ui/field";
|
|
4
|
+
import { MoneyInput } from "@krizaka/ui/money-input";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
|
|
7
|
+
export default function MoneyInputDefault() {
|
|
8
|
+
const [cents, setCents] = useState<number | null>(3900);
|
|
9
|
+
return (
|
|
10
|
+
<Field.Root>
|
|
11
|
+
<Field.Label htmlFor="price">Price</Field.Label>
|
|
12
|
+
<MoneyInput id="price" value={cents} onValueChange={setCents} currency="CAD" locale="en-CA" />
|
|
13
|
+
<Field.Hint>{cents === null ? "Empty" : `${cents} cents`}</Field.Hint>
|
|
14
|
+
</Field.Root>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/promo-code-field/applied.tsx
|
|
4
|
+
import { PromoCodeField } from "@krizaka/ui/promo-code-field";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function PromoCodeFieldApplied() {
|
|
7
|
+
return /* @__PURE__ */ jsx(PromoCodeField, { label: "Code promo", applyLabel: "Appliquer", removeLabel: "Retirer", applied: { code: "FOUNDER", effect: "39 $ la premi\xE8re ann\xE9e" }, onApply: async () => ({ ok: false, message: "Code expir\xE9." }) });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
PromoCodeFieldApplied as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { PromoCodeField } from "@krizaka/ui/promo-code-field";
|
|
4
|
+
|
|
5
|
+
export default function PromoCodeFieldApplied() {
|
|
6
|
+
return <PromoCodeField label="Code promo" applyLabel="Appliquer" removeLabel="Retirer" applied={{ code: "FOUNDER", effect: "39 $ la première année" }} onApply={async () => ({ ok: false, message: "Code expiré." })} />;
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/promo-code-field/default.tsx
|
|
4
|
+
import { PromoCodeField } from "@krizaka/ui/promo-code-field";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function PromoCodeFieldDefault() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
PromoCodeField,
|
|
9
|
+
{
|
|
10
|
+
label: "Promo code",
|
|
11
|
+
applyLabel: "Apply",
|
|
12
|
+
removeLabel: "Remove",
|
|
13
|
+
onApply: async (code) => code.toUpperCase() === "FOUNDER" ? { ok: true, effect: "39 $ for the first year" } : { ok: false, message: "This code does not exist." }
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
PromoCodeFieldDefault as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { PromoCodeField } from "@krizaka/ui/promo-code-field";
|
|
4
|
+
|
|
5
|
+
export default function PromoCodeFieldDefault() {
|
|
6
|
+
return (
|
|
7
|
+
<PromoCodeField
|
|
8
|
+
label="Promo code"
|
|
9
|
+
applyLabel="Apply"
|
|
10
|
+
removeLabel="Remove"
|
|
11
|
+
onApply={async (code) => (code.toUpperCase() === "FOUNDER" ? { ok: true, effect: "39 $ for the first year" } : { ok: false, message: "This code does not exist." })}
|
|
12
|
+
/>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/promo-code-field/expired.tsx
|
|
4
|
+
import { PromoCodeField } from "@krizaka/ui/promo-code-field";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function PromoCodeFieldExpired() {
|
|
7
|
+
return /* @__PURE__ */ jsx(PromoCodeField, { label: "Promo code", applyLabel: "Apply", removeLabel: "Remove", onApply: async () => ({ ok: false, message: "This code expired on 31 October.", expired: true }) });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
PromoCodeFieldExpired as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { PromoCodeField } from "@krizaka/ui/promo-code-field";
|
|
4
|
+
|
|
5
|
+
export default function PromoCodeFieldExpired() {
|
|
6
|
+
return <PromoCodeField label="Promo code" applyLabel="Apply" removeLabel="Remove" onApply={async () => ({ ok: false, message: "This code expired on 31 October.", expired: true })} />;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/retro-tv/playlist-channel.tsx
|
|
4
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var playlist = [
|
|
7
|
+
{ id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
8
|
+
{ id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" }
|
|
9
|
+
];
|
|
10
|
+
function RetroTvPlaylistChannel() {
|
|
11
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-4xl", children: /* @__PURE__ */ jsx(RetroTv, { title: "Short videos", playlist, transition: "channel", channel: "CH 3 \xB7 Plateau" }) });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
RetroTvPlaylistChannel as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
2
|
+
|
|
3
|
+
const playlist = [
|
|
4
|
+
{ id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
5
|
+
{ id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export default function RetroTvPlaylistChannel() {
|
|
9
|
+
return <div className="w-full max-w-4xl"><RetroTv title="Short videos" playlist={playlist} transition="channel" channel="CH 3 · Plateau" /></div>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/retro-tv/playlist-crossfade.tsx
|
|
4
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var playlist = [
|
|
7
|
+
{ id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
8
|
+
{ id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" }
|
|
9
|
+
];
|
|
10
|
+
function RetroTvPlaylistCrossfade() {
|
|
11
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-4xl", children: /* @__PURE__ */ jsx(RetroTv, { title: "Short videos", playlist, transition: "crossfade", channel: "CH 3 \xB7 Plateau" }) });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
RetroTvPlaylistCrossfade as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
2
|
+
|
|
3
|
+
const playlist = [
|
|
4
|
+
{ id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
5
|
+
{ id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export default function RetroTvPlaylistCrossfade() {
|
|
9
|
+
return <div className="w-full max-w-4xl"><RetroTv title="Short videos" playlist={playlist} transition="crossfade" channel="CH 3 · Plateau" /></div>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/retro-tv/playlist-slide.tsx
|
|
4
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var playlist = [
|
|
7
|
+
{ id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
8
|
+
{ id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" }
|
|
9
|
+
];
|
|
10
|
+
function RetroTvPlaylistSlide() {
|
|
11
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-4xl", children: /* @__PURE__ */ jsx(RetroTv, { title: "Short videos", playlist, transition: "slide", channel: "CH 3 \xB7 Plateau" }) });
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
RetroTvPlaylistSlide as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RetroTv } from "@krizaka/ui/retro-tv";
|
|
2
|
+
|
|
3
|
+
const playlist = [
|
|
4
|
+
{ id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
5
|
+
{ id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
|
|
6
|
+
];
|
|
7
|
+
|
|
8
|
+
export default function RetroTvPlaylistSlide() {
|
|
9
|
+
return <div className="w-full max-w-4xl"><RetroTv title="Short videos" playlist={playlist} transition="slide" channel="CH 3 · Plateau" /></div>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/shop/booking-closing-closed.tsx
|
|
4
|
+
import { ShopFrame } from "@krizaka/ui/shop";
|
|
5
|
+
import { BookingSection } from "@krizaka/ui/shop/booking";
|
|
6
|
+
import { demoPhoto } from "@krizaka/ui/shop/demo";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
function ShopBookingClosingClosed() {
|
|
9
|
+
return /* @__PURE__ */ jsx(ShopFrame, { children: /* @__PURE__ */ jsx(
|
|
10
|
+
BookingSection,
|
|
11
|
+
{
|
|
12
|
+
variant: "closing",
|
|
13
|
+
label: "Book",
|
|
14
|
+
title: "Closed today, open tomorrow at 9 am",
|
|
15
|
+
photo: demoPhoto("salon-chair", "The leather chair by the window"),
|
|
16
|
+
nextTimeLabel: "Next free time",
|
|
17
|
+
nextTime: { id: "t1", label: "Tomorrow 9:00 am", href: "#t1" },
|
|
18
|
+
href: "#book",
|
|
19
|
+
actionLabel: "Book",
|
|
20
|
+
secondary: { label: "Directions", href: "#visit" }
|
|
21
|
+
}
|
|
22
|
+
) });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
ShopBookingClosingClosed as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ShopFrame } from "@krizaka/ui/shop";
|
|
2
|
+
import { BookingSection } from "@krizaka/ui/shop/booking";
|
|
3
|
+
import { demoPhoto } from "@krizaka/ui/shop/demo";
|
|
4
|
+
|
|
5
|
+
// A closed day: the call shows the next opening's first free time (the host resolves it), never an empty bar.
|
|
6
|
+
export default function ShopBookingClosingClosed() {
|
|
7
|
+
return (
|
|
8
|
+
<ShopFrame>
|
|
9
|
+
<BookingSection
|
|
10
|
+
variant="closing"
|
|
11
|
+
label="Book"
|
|
12
|
+
title="Closed today, open tomorrow at 9 am"
|
|
13
|
+
photo={demoPhoto("salon-chair", "The leather chair by the window")}
|
|
14
|
+
nextTimeLabel="Next free time"
|
|
15
|
+
nextTime={{ id: "t1", label: "Tomorrow 9:00 am", href: "#t1" }}
|
|
16
|
+
href="#book"
|
|
17
|
+
actionLabel="Book"
|
|
18
|
+
secondary={{ label: "Directions", href: "#visit" }}
|
|
19
|
+
/>
|
|
20
|
+
</ShopFrame>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/shop/booking-closing-mark.tsx
|
|
4
|
+
import { AkinazaLogo } from "@krizaka/ui";
|
|
5
|
+
import { ShopFrame } from "@krizaka/ui/shop";
|
|
6
|
+
import { BookingSection } from "@krizaka/ui/shop/booking";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
function ShopBookingClosingMark() {
|
|
9
|
+
return /* @__PURE__ */ jsx(ShopFrame, { children: /* @__PURE__ */ jsx(BookingSection, { variant: "closing", label: "Book", title: "Ready when you are", body: "Choose a time in a few taps.", mark: /* @__PURE__ */ jsx(AkinazaLogo, { size: 96, animated: false }), href: "#book", actionLabel: "Book" }) });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
ShopBookingClosingMark as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AkinazaLogo } from "@krizaka/ui";
|
|
2
|
+
import { ShopFrame } from "@krizaka/ui/shop";
|
|
3
|
+
import { BookingSection } from "@krizaka/ui/shop/booking";
|
|
4
|
+
|
|
5
|
+
// No photo, no free time: the shop's mark, the title and the primary action alone.
|
|
6
|
+
export default function ShopBookingClosingMark() {
|
|
7
|
+
return (
|
|
8
|
+
<ShopFrame>
|
|
9
|
+
<BookingSection variant="closing" label="Book" title="Ready when you are" body="Choose a time in a few taps." mark={<AkinazaLogo size={96} animated={false} />} href="#book" actionLabel="Book" />
|
|
10
|
+
</ShopFrame>
|
|
11
|
+
);
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/shop/booking-closing.tsx
|
|
4
|
+
import { ShopFrame } from "@krizaka/ui/shop";
|
|
5
|
+
import { BookingSection } from "@krizaka/ui/shop/booking";
|
|
6
|
+
import { demoPhoto } from "@krizaka/ui/shop/demo";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
function ShopBookingClosing() {
|
|
9
|
+
return /* @__PURE__ */ jsx(ShopFrame, { children: /* @__PURE__ */ jsx(
|
|
10
|
+
BookingSection,
|
|
11
|
+
{
|
|
12
|
+
variant: "closing",
|
|
13
|
+
label: "Book",
|
|
14
|
+
title: "Ready when you are",
|
|
15
|
+
body: "Choose a time at Salon C\xE8dre & Ciseaux in a few taps. Pay at the shop.",
|
|
16
|
+
photo: demoPhoto("salon-chair", "The leather chair by the window"),
|
|
17
|
+
nextTimeLabel: "Next free time",
|
|
18
|
+
nextTime: { id: "t1", label: "Tomorrow 9:00 am", href: "#t1" },
|
|
19
|
+
href: "#book",
|
|
20
|
+
actionLabel: "Book",
|
|
21
|
+
secondary: { label: "Call", href: "tel:+15145550100" }
|
|
22
|
+
}
|
|
23
|
+
) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
ShopBookingClosing as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ShopFrame } from "@krizaka/ui/shop";
|
|
2
|
+
import { BookingSection } from "@krizaka/ui/shop/booking";
|
|
3
|
+
import { demoPhoto } from "@krizaka/ui/shop/demo";
|
|
4
|
+
|
|
5
|
+
// The closing call of a look: the shop's photo, the next free time, a primary « Book » and « Call ». Server-rendered: no script.
|
|
6
|
+
export default function ShopBookingClosing() {
|
|
7
|
+
return (
|
|
8
|
+
<ShopFrame>
|
|
9
|
+
<BookingSection
|
|
10
|
+
variant="closing"
|
|
11
|
+
label="Book"
|
|
12
|
+
title="Ready when you are"
|
|
13
|
+
body="Choose a time at Salon Cèdre & Ciseaux in a few taps. Pay at the shop."
|
|
14
|
+
photo={demoPhoto("salon-chair", "The leather chair by the window")}
|
|
15
|
+
nextTimeLabel="Next free time"
|
|
16
|
+
nextTime={{ id: "t1", label: "Tomorrow 9:00 am", href: "#t1" }}
|
|
17
|
+
href="#book"
|
|
18
|
+
actionLabel="Book"
|
|
19
|
+
secondary={{ label: "Call", href: "tel:+15145550100" }}
|
|
20
|
+
/>
|
|
21
|
+
</ShopFrame>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/shop-gallery/five.tsx
|
|
4
|
+
import { ShopGallery } from "@krizaka/ui/shop-gallery";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var PIC = (a, b) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
|
|
7
|
+
var ALTS = ["Two chairs by the window", "The colour bar", "A fresh cut", "Morning light on the mirrors", "Our shampoo corner", "Tools laid out", "The front desk", "A waiting sofa", "Plants by the door", "The back room", "Evening at the shop", "The street sign"];
|
|
8
|
+
var photos = ALTS.slice(0, 5).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${i * 31 % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
|
|
9
|
+
function ShopGalleryFive() {
|
|
10
|
+
return /* @__PURE__ */ jsx(ShopGallery, { label: "Photos of the salon", photos });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
ShopGalleryFive as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ShopGallery } from "@krizaka/ui/shop-gallery";
|
|
2
|
+
|
|
3
|
+
// Drawn pictures (data URIs, no network); a shop passes its own photos, with the srcSet of the widths it holds.
|
|
4
|
+
const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
|
|
5
|
+
const ALTS = ["Two chairs by the window","The colour bar","A fresh cut","Morning light on the mirrors","Our shampoo corner","Tools laid out","The front desk","A waiting sofa","Plants by the door","The back room","Evening at the shop","The street sign"];
|
|
6
|
+
const photos = ALTS.slice(0, 5).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${(i * 31) % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
|
|
7
|
+
|
|
8
|
+
export default function ShopGalleryFive() {
|
|
9
|
+
return <ShopGallery label="Photos of the salon" photos={photos} />;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/shop-gallery/three.tsx
|
|
4
|
+
import { ShopGallery, shopGalleryLabelsFr } from "@krizaka/ui/shop-gallery";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var PIC = (a, b) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
|
|
7
|
+
var ALTS = ["Deux fauteuils pr\xE8s de la fen\xEAtre", "Le bar \xE0 couleurs", "Une coupe fra\xEEche", "La lumi\xE8re du matin", "Le coin shampoing", "Les outils"];
|
|
8
|
+
var photos = ALTS.slice(0, 3).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${i * 31 % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
|
|
9
|
+
function ShopGalleryThree() {
|
|
10
|
+
return /* @__PURE__ */ jsx(ShopGallery, { label: "Photos du salon", photos, labels: shopGalleryLabelsFr });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
ShopGalleryThree as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ShopGallery, shopGalleryLabelsFr } from "@krizaka/ui/shop-gallery";
|
|
2
|
+
|
|
3
|
+
// Drawn pictures (data URIs, no network); a shop passes its own photos, with the srcSet of the widths it holds.
|
|
4
|
+
const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
|
|
5
|
+
const ALTS = ["Deux fauteuils près de la fenêtre","Le bar à couleurs","Une coupe fraîche","La lumière du matin","Le coin shampoing","Les outils"];
|
|
6
|
+
const photos = ALTS.slice(0, 3).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${(i * 31) % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
|
|
7
|
+
|
|
8
|
+
export default function ShopGalleryThree() {
|
|
9
|
+
return <ShopGallery label="Photos du salon" photos={photos} labels={shopGalleryLabelsFr} />;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/shop-gallery/twelve.tsx
|
|
4
|
+
import { ShopGallery } from "@krizaka/ui/shop-gallery";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var PIC = (a, b) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
|
|
7
|
+
var ALTS = ["Two chairs by the window", "The colour bar", "A fresh cut", "Morning light on the mirrors", "Our shampoo corner", "Tools laid out", "The front desk", "A waiting sofa", "Plants by the door", "The back room", "Evening at the shop", "The street sign"];
|
|
8
|
+
var photos = ALTS.slice(0, 12).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${i * 31 % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
|
|
9
|
+
function ShopGalleryTwelve() {
|
|
10
|
+
return /* @__PURE__ */ jsx(ShopGallery, { label: "Photos of the salon", photos });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
ShopGalleryTwelve as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ShopGallery } from "@krizaka/ui/shop-gallery";
|
|
2
|
+
|
|
3
|
+
// Drawn pictures (data URIs, no network); a shop passes its own photos, with the srcSet of the widths it holds.
|
|
4
|
+
const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
|
|
5
|
+
const ALTS = ["Two chairs by the window","The colour bar","A fresh cut","Morning light on the mirrors","Our shampoo corner","Tools laid out","The front desk","A waiting sofa","Plants by the door","The back room","Evening at the shop","The street sign"];
|
|
6
|
+
const photos = ALTS.slice(0, 12).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${(i * 31) % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
|
|
7
|
+
|
|
8
|
+
export default function ShopGalleryTwelve() {
|
|
9
|
+
return <ShopGallery label="Photos of the salon" photos={photos} />;
|
|
10
|
+
}
|