@kurbo/dkit 0.4.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 +24 -0
- package/dist/bin.js +8066 -0
- package/dist/bin.js.map +1 -0
- package/package.json +58 -0
- package/vendor/registry/blocks/blog-detail/module.json +27 -0
- package/vendor/registry/blocks/blog-detail/ui/minimal/next/blog-detail.tsx +26 -0
- package/vendor/registry/blocks/blog-detail/ui/minimal/nuxt/BlogDetail.vue +27 -0
- package/vendor/registry/blocks/blog-detail/ui/shadcn/next/blog-detail.tsx +106 -0
- package/vendor/registry/blocks/blog-detail/ui/shadcn/nuxt/BlogDetail.vue +116 -0
- package/vendor/registry/blocks/blog-list/module.json +26 -0
- package/vendor/registry/blocks/blog-list/ui/minimal/next/blog-list.tsx +130 -0
- package/vendor/registry/blocks/blog-list/ui/minimal/nuxt/BlogList.vue +62 -0
- package/vendor/registry/blocks/blog-list/ui/shadcn/next/blog-list.tsx +109 -0
- package/vendor/registry/blocks/blog-list/ui/shadcn/nuxt/BlogList.vue +100 -0
- package/vendor/registry/blocks/blog-list-cards/module.json +27 -0
- package/vendor/registry/blocks/blog-list-cards/ui/minimal/next/blog-list-cards.tsx +130 -0
- package/vendor/registry/blocks/blog-list-cards/ui/minimal/nuxt/BlogListCards.vue +114 -0
- package/vendor/registry/blocks/blog-list-cards/ui/shadcn/next/blog-list-cards.tsx +119 -0
- package/vendor/registry/blocks/blog-list-cards/ui/shadcn/nuxt/BlogListCards.vue +113 -0
- package/vendor/registry/blocks/booking-form-ui/module.json +15 -0
- package/vendor/registry/blocks/booking-form-ui/ui/minimal/next/booking-form.tsx +89 -0
- package/vendor/registry/blocks/booking-form-ui/ui/shadcn/next/booking-form.tsx +92 -0
- package/vendor/registry/blocks/contact-form-ui/module.json +27 -0
- package/vendor/registry/blocks/contact-form-ui/ui/minimal/next/contact-form.tsx +45 -0
- package/vendor/registry/blocks/contact-form-ui/ui/minimal/nuxt/ContactForm.vue +79 -0
- package/vendor/registry/blocks/contact-form-ui/ui/shadcn/next/contact-form.tsx +55 -0
- package/vendor/registry/blocks/contact-form-ui/ui/shadcn/nuxt/ContactForm.vue +92 -0
- package/vendor/registry/blocks/faq-list/module.json +15 -0
- package/vendor/registry/blocks/faq-list/ui/minimal/next/faq-list.tsx +78 -0
- package/vendor/registry/blocks/faq-list/ui/shadcn/next/faq-list.tsx +77 -0
- package/vendor/registry/blocks/maintenance-gate/module.json +13 -0
- package/vendor/registry/blocks/maintenance-gate/ui/minimal/next/maintenance-gate.tsx +135 -0
- package/vendor/registry/blocks/maintenance-gate/ui/shadcn/next/maintenance-gate.tsx +87 -0
- package/vendor/registry/blocks/nav-footer/module.json +13 -0
- package/vendor/registry/blocks/nav-footer/ui/minimal/next/nav-footer.tsx +55 -0
- package/vendor/registry/blocks/nav-footer/ui/shadcn/next/nav-footer.tsx +41 -0
- package/vendor/registry/blocks/nav-header/module.json +14 -0
- package/vendor/registry/blocks/nav-header/ui/minimal/next/nav-header.tsx +244 -0
- package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header-client.tsx +185 -0
- package/vendor/registry/blocks/nav-header/ui/shadcn/next/nav-header.tsx +12 -0
- package/vendor/registry/blocks/page-detail/module.json +26 -0
- package/vendor/registry/blocks/page-detail/ui/minimal/next/page-detail.tsx +26 -0
- package/vendor/registry/blocks/page-detail/ui/minimal/nuxt/PageDetail.vue +26 -0
- package/vendor/registry/blocks/page-detail/ui/shadcn/next/page-detail.tsx +61 -0
- package/vendor/registry/blocks/page-detail/ui/shadcn/nuxt/PageDetail.vue +62 -0
- package/vendor/registry/blocks/project-detail/module.json +15 -0
- package/vendor/registry/blocks/project-detail/ui/minimal/next/project-detail.tsx +58 -0
- package/vendor/registry/blocks/project-detail/ui/shadcn/next/project-detail.tsx +91 -0
- package/vendor/registry/blocks/project-list/module.json +14 -0
- package/vendor/registry/blocks/project-list/ui/minimal/next/project-list.tsx +104 -0
- package/vendor/registry/blocks/project-list/ui/shadcn/next/project-list.tsx +81 -0
- package/vendor/registry/blocks/project-list-cards/module.json +15 -0
- package/vendor/registry/blocks/project-list-cards/ui/minimal/next/project-list-cards.tsx +125 -0
- package/vendor/registry/blocks/project-list-cards/ui/shadcn/next/project-list-cards.tsx +94 -0
- package/vendor/registry/blocks/projects-carousel/module.json +15 -0
- package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel-client.tsx +239 -0
- package/vendor/registry/blocks/projects-carousel/ui/minimal/next/projects-carousel.tsx +24 -0
- package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel-client.tsx +102 -0
- package/vendor/registry/blocks/projects-carousel/ui/shadcn/next/projects-carousel.tsx +24 -0
- package/vendor/registry/blocks/service-detail/module.json +15 -0
- package/vendor/registry/blocks/service-detail/ui/minimal/next/service-detail.tsx +49 -0
- package/vendor/registry/blocks/service-detail/ui/shadcn/next/service-detail.tsx +75 -0
- package/vendor/registry/blocks/service-list/module.json +14 -0
- package/vendor/registry/blocks/service-list/ui/minimal/next/service-list.tsx +103 -0
- package/vendor/registry/blocks/service-list/ui/shadcn/next/service-list.tsx +80 -0
- package/vendor/registry/blocks/service-list-cards/module.json +15 -0
- package/vendor/registry/blocks/service-list-cards/ui/minimal/next/service-list-cards.tsx +124 -0
- package/vendor/registry/blocks/service-list-cards/ui/shadcn/next/service-list-cards.tsx +92 -0
- package/vendor/registry/blocks/site-brand/module.json +13 -0
- package/vendor/registry/blocks/site-brand/ui/minimal/next/site-brand.tsx +61 -0
- package/vendor/registry/blocks/site-brand/ui/shadcn/next/site-brand.tsx +48 -0
- package/vendor/registry/blocks/site-logo/module.json +13 -0
- package/vendor/registry/blocks/site-logo/ui/minimal/next/site-logo.tsx +37 -0
- package/vendor/registry/blocks/site-logo/ui/shadcn/next/site-logo.tsx +34 -0
- package/vendor/registry/blocks/social-links/module.json +13 -0
- package/vendor/registry/blocks/social-links/ui/minimal/next/social-links.tsx +55 -0
- package/vendor/registry/blocks/social-links/ui/shadcn/next/social-links.tsx +46 -0
- package/vendor/registry/blocks/team-detail/module.json +15 -0
- package/vendor/registry/blocks/team-detail/ui/minimal/next/team-detail.tsx +113 -0
- package/vendor/registry/blocks/team-detail/ui/shadcn/next/team-detail.tsx +77 -0
- package/vendor/registry/blocks/team-list/module.json +14 -0
- package/vendor/registry/blocks/team-list/ui/minimal/next/team-list.tsx +113 -0
- package/vendor/registry/blocks/team-list/ui/shadcn/next/team-list.tsx +77 -0
- package/vendor/registry/blocks/team-list-cards/module.json +15 -0
- package/vendor/registry/blocks/team-list-cards/ui/minimal/next/team-list-cards.tsx +111 -0
- package/vendor/registry/blocks/team-list-cards/ui/shadcn/next/team-list-cards.tsx +83 -0
- package/vendor/registry/blocks/testimonials-carousel/module.json +15 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel-client.tsx +230 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/minimal/next/testimonials-carousel.tsx +23 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel-client.tsx +91 -0
- package/vendor/registry/blocks/testimonials-carousel/ui/shadcn/next/testimonials-carousel.tsx +23 -0
- package/vendor/registry/blocks/testimonials-list/module.json +14 -0
- package/vendor/registry/blocks/testimonials-list/ui/minimal/next/testimonials-list.tsx +109 -0
- package/vendor/registry/blocks/testimonials-list/ui/shadcn/next/testimonials-list.tsx +72 -0
- package/vendor/registry/blocks/testimonials-list-cards/module.json +15 -0
- package/vendor/registry/blocks/testimonials-list-cards/ui/minimal/next/testimonials-list-cards.tsx +114 -0
- package/vendor/registry/blocks/testimonials-list-cards/ui/shadcn/next/testimonials-list-cards.tsx +72 -0
- package/vendor/registry/core/languages/policies.json +25 -0
- package/vendor/registry/core/languages/seed.json +16 -0
- package/vendor/registry/core/languages/snapshot.json +94 -0
- package/vendor/registry/modules/blog/access/policies.json +49 -0
- package/vendor/registry/modules/blog/access/policies.multilocale.json +67 -0
- package/vendor/registry/modules/blog/lib.multilocale.ts +552 -0
- package/vendor/registry/modules/blog/lib.ts +346 -0
- package/vendor/registry/modules/blog/module.json +50 -0
- package/vendor/registry/modules/blog/schema/snapshot.json +701 -0
- package/vendor/registry/modules/blog/schema/snapshot.multilocale.json +884 -0
- package/vendor/registry/modules/blog/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/blog/services/assets/ada-lovelace-avatar.jpg +0 -0
- package/vendor/registry/modules/blog/services/assets/hello-from-dkit-cover.jpg +0 -0
- package/vendor/registry/modules/blog/services/seed.json +70 -0
- package/vendor/registry/modules/blog/services/seed.multilocale.json +90 -0
- package/vendor/registry/modules/blog/types.multilocale.ts +96 -0
- package/vendor/registry/modules/blog/types.ts +62 -0
- package/vendor/registry/modules/booking-form/access/policies.json +25 -0
- package/vendor/registry/modules/booking-form/access/policies.multilocale.json +27 -0
- package/vendor/registry/modules/booking-form/lib.multilocale.ts +71 -0
- package/vendor/registry/modules/booking-form/lib.ts +77 -0
- package/vendor/registry/modules/booking-form/module.json +32 -0
- package/vendor/registry/modules/booking-form/schema/snapshot.json +294 -0
- package/vendor/registry/modules/booking-form/schema/snapshot.multilocale.json +467 -0
- package/vendor/registry/modules/booking-form/services/flows.json +19 -0
- package/vendor/registry/modules/booking-form/types.multilocale.ts +29 -0
- package/vendor/registry/modules/booking-form/types.ts +27 -0
- package/vendor/registry/modules/contact-form/access/policies.json +25 -0
- package/vendor/registry/modules/contact-form/access/policies.multilocale.json +27 -0
- package/vendor/registry/modules/contact-form/lib.multilocale.ts +65 -0
- package/vendor/registry/modules/contact-form/lib.ts +67 -0
- package/vendor/registry/modules/contact-form/module.json +32 -0
- package/vendor/registry/modules/contact-form/schema/snapshot.json +193 -0
- package/vendor/registry/modules/contact-form/schema/snapshot.multilocale.json +293 -0
- package/vendor/registry/modules/contact-form/services/flows.json +19 -0
- package/vendor/registry/modules/contact-form/types.multilocale.ts +21 -0
- package/vendor/registry/modules/contact-form/types.ts +19 -0
- package/vendor/registry/modules/faq/access/policies.json +25 -0
- package/vendor/registry/modules/faq/access/policies.multilocale.json +18 -0
- package/vendor/registry/modules/faq/lib.multilocale.ts +120 -0
- package/vendor/registry/modules/faq/lib.ts +73 -0
- package/vendor/registry/modules/faq/module.json +31 -0
- package/vendor/registry/modules/faq/schema/snapshot.json +180 -0
- package/vendor/registry/modules/faq/schema/snapshot.multilocale.json +116 -0
- package/vendor/registry/modules/faq/services/seed.json +38 -0
- package/vendor/registry/modules/faq/services/seed.multilocale.json +32 -0
- package/vendor/registry/modules/faq/types.multilocale.ts +31 -0
- package/vendor/registry/modules/faq/types.ts +17 -0
- package/vendor/registry/modules/navigation/access/policies.json +31 -0
- package/vendor/registry/modules/navigation/access/policies.multilocale.json +51 -0
- package/vendor/registry/modules/navigation/lib.multilocale.ts +198 -0
- package/vendor/registry/modules/navigation/lib.ts +252 -0
- package/vendor/registry/modules/navigation/module.json +46 -0
- package/vendor/registry/modules/navigation/schema/snapshot.json +453 -0
- package/vendor/registry/modules/navigation/schema/snapshot.multilocale.json +864 -0
- package/vendor/registry/modules/navigation/services/seed.json +103 -0
- package/vendor/registry/modules/navigation/services/seed.multilocale.json +88 -0
- package/vendor/registry/modules/navigation/types.multilocale.ts +60 -0
- package/vendor/registry/modules/navigation/types.ts +44 -0
- package/vendor/registry/modules/pages/access/policies.json +25 -0
- package/vendor/registry/modules/pages/access/policies.multilocale.json +18 -0
- package/vendor/registry/modules/pages/lib.multilocale.ts +166 -0
- package/vendor/registry/modules/pages/lib.ts +123 -0
- package/vendor/registry/modules/pages/module.json +39 -0
- package/vendor/registry/modules/pages/schema/snapshot.json +247 -0
- package/vendor/registry/modules/pages/schema/snapshot.multilocale.json +187 -0
- package/vendor/registry/modules/pages/services/seed.json +24 -0
- package/vendor/registry/modules/pages/services/seed.multilocale.json +34 -0
- package/vendor/registry/modules/pages/types.multilocale.ts +37 -0
- package/vendor/registry/modules/pages/types.ts +21 -0
- package/vendor/registry/modules/projects/access/policies.json +31 -0
- package/vendor/registry/modules/projects/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/projects/lib.multilocale.ts +111 -0
- package/vendor/registry/modules/projects/lib.ts +138 -0
- package/vendor/registry/modules/projects/module.json +48 -0
- package/vendor/registry/modules/projects/schema/snapshot.json +348 -0
- package/vendor/registry/modules/projects/schema/snapshot.multilocale.json +577 -0
- package/vendor/registry/modules/projects/services/ATTRIBUTION.md +7 -0
- package/vendor/registry/modules/projects/services/assets/brand-identity-cover.jpg +0 -0
- package/vendor/registry/modules/projects/services/seed.json +40 -0
- package/vendor/registry/modules/projects/services/seed.multilocale.json +31 -0
- package/vendor/registry/modules/projects/types.multilocale.ts +38 -0
- package/vendor/registry/modules/projects/types.ts +28 -0
- package/vendor/registry/modules/services/access/policies.json +31 -0
- package/vendor/registry/modules/services/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/services/lib.multilocale.ts +109 -0
- package/vendor/registry/modules/services/lib.ts +134 -0
- package/vendor/registry/modules/services/module.json +47 -0
- package/vendor/registry/modules/services/schema/snapshot.json +305 -0
- package/vendor/registry/modules/services/schema/snapshot.multilocale.json +510 -0
- package/vendor/registry/modules/services/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/services/services/assets/design-development.jpg +0 -0
- package/vendor/registry/modules/services/services/assets/strategy-consulting.jpg +0 -0
- package/vendor/registry/modules/services/services/seed.json +44 -0
- package/vendor/registry/modules/services/services/seed.multilocale.json +31 -0
- package/vendor/registry/modules/services/types.multilocale.ts +36 -0
- package/vendor/registry/modules/services/types.ts +26 -0
- package/vendor/registry/modules/settings/access/policies.json +31 -0
- package/vendor/registry/modules/settings/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/settings/lib.multilocale.ts +158 -0
- package/vendor/registry/modules/settings/lib.ts +259 -0
- package/vendor/registry/modules/settings/module.json +33 -0
- package/vendor/registry/modules/settings/schema/snapshot.json +315 -0
- package/vendor/registry/modules/settings/schema/snapshot.multilocale.json +586 -0
- package/vendor/registry/modules/settings/services/assets/dkit-logo.svg +4 -0
- package/vendor/registry/modules/settings/services/seed.json +31 -0
- package/vendor/registry/modules/settings/services/seed.multilocale.json +42 -0
- package/vendor/registry/modules/settings/types.multilocale.ts +72 -0
- package/vendor/registry/modules/settings/types.ts +94 -0
- package/vendor/registry/modules/team/access/policies.json +31 -0
- package/vendor/registry/modules/team/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/team/lib.multilocale.ts +88 -0
- package/vendor/registry/modules/team/lib.ts +120 -0
- package/vendor/registry/modules/team/module.json +47 -0
- package/vendor/registry/modules/team/schema/snapshot.json +295 -0
- package/vendor/registry/modules/team/schema/snapshot.multilocale.json +525 -0
- package/vendor/registry/modules/team/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/team/services/assets/morgan-lee-photo.jpg +0 -0
- package/vendor/registry/modules/team/services/assets/taylor-kim-photo.jpg +0 -0
- package/vendor/registry/modules/team/services/seed.json +52 -0
- package/vendor/registry/modules/team/services/seed.multilocale.json +30 -0
- package/vendor/registry/modules/team/types.multilocale.ts +33 -0
- package/vendor/registry/modules/team/types.ts +27 -0
- package/vendor/registry/modules/testimonials/access/policies.json +31 -0
- package/vendor/registry/modules/testimonials/access/policies.multilocale.json +43 -0
- package/vendor/registry/modules/testimonials/lib.multilocale.ts +93 -0
- package/vendor/registry/modules/testimonials/lib.ts +85 -0
- package/vendor/registry/modules/testimonials/module.json +41 -0
- package/vendor/registry/modules/testimonials/schema/snapshot.json +248 -0
- package/vendor/registry/modules/testimonials/schema/snapshot.multilocale.json +462 -0
- package/vendor/registry/modules/testimonials/services/ATTRIBUTION.md +8 -0
- package/vendor/registry/modules/testimonials/services/assets/jane-doe-avatar.jpg +0 -0
- package/vendor/registry/modules/testimonials/services/assets/sample-author-avatar.jpg +0 -0
- package/vendor/registry/modules/testimonials/services/seed.json +49 -0
- package/vendor/registry/modules/testimonials/services/seed.multilocale.json +30 -0
- package/vendor/registry/modules/testimonials/types.multilocale.ts +27 -0
- package/vendor/registry/modules/testimonials/types.ts +22 -0
- package/vendor/registry/registry.json +832 -0
- package/vendor/registry/shared/helpers.ts +16 -0
- package/vendor/registry/shared/i18n.ts +74 -0
- package/vendor/registry/shared/minimal.css +83 -0
- package/vendor/registry/shared/paths.ts +50 -0
- package/vendor/registry/shared/prose.css +113 -0
- package/vendor/registry/tsconfig.json +49 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { getServices, serviceImageUrl } from "@/lib/dkit/services";
|
|
2
|
+
import { moduleHref } from "@/lib/dkit/paths";
|
|
3
|
+
import { Badge } from "@/components/ui/badge";
|
|
4
|
+
import {
|
|
5
|
+
Card,
|
|
6
|
+
CardContent,
|
|
7
|
+
CardFooter,
|
|
8
|
+
CardHeader,
|
|
9
|
+
CardTitle,
|
|
10
|
+
} from "@/components/ui/card";
|
|
11
|
+
|
|
12
|
+
/** Uses your project's shadcn/ui components. */
|
|
13
|
+
export async function ServiceListCards() {
|
|
14
|
+
const services = await getServices();
|
|
15
|
+
const hrefById = Object.fromEntries(
|
|
16
|
+
await Promise.all(
|
|
17
|
+
services.map(async (service) => [service.id, await moduleHref("services", service.slug)] as const),
|
|
18
|
+
),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<div className="mx-auto max-w-5xl px-6 py-16 sm:py-20">
|
|
23
|
+
<header className="mb-12 max-w-xl">
|
|
24
|
+
<p className="mb-3 text-xs font-medium tracking-[0.2em] text-primary uppercase">
|
|
25
|
+
What we offer
|
|
26
|
+
</p>
|
|
27
|
+
<h1 className="text-4xl font-semibold tracking-tight text-foreground sm:text-5xl">
|
|
28
|
+
Services
|
|
29
|
+
</h1>
|
|
30
|
+
<p className="mt-4 text-muted-foreground">
|
|
31
|
+
Browse offerings in a card grid.
|
|
32
|
+
</p>
|
|
33
|
+
</header>
|
|
34
|
+
|
|
35
|
+
{services.length === 0 ? (
|
|
36
|
+
<p className="rounded-xl border border-dashed border-border px-6 py-12 text-center text-muted-foreground">
|
|
37
|
+
No published services yet.
|
|
38
|
+
</p>
|
|
39
|
+
) : (
|
|
40
|
+
<div className="grid gap-5 sm:grid-cols-2">
|
|
41
|
+
{services.map((service) => {
|
|
42
|
+
const imageUrl = serviceImageUrl(service);
|
|
43
|
+
return (
|
|
44
|
+
<a
|
|
45
|
+
key={service.id}
|
|
46
|
+
href={hrefById[service.id]!}
|
|
47
|
+
className="group block h-full no-underline transition hover:-translate-y-0.5"
|
|
48
|
+
>
|
|
49
|
+
<Card className="h-full overflow-hidden pt-0 shadow-sm transition group-hover:border-primary/40 group-hover:shadow-md">
|
|
50
|
+
{imageUrl ? (
|
|
51
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
52
|
+
<img
|
|
53
|
+
src={imageUrl}
|
|
54
|
+
alt=""
|
|
55
|
+
className="aspect-[16/10] w-full object-cover"
|
|
56
|
+
/>
|
|
57
|
+
) : (
|
|
58
|
+
<div className="aspect-[16/10] w-full bg-muted" />
|
|
59
|
+
)}
|
|
60
|
+
<CardHeader>
|
|
61
|
+
{service.price_label ? (
|
|
62
|
+
<Badge variant="secondary" className="mb-1 w-fit">
|
|
63
|
+
{service.price_label}
|
|
64
|
+
</Badge>
|
|
65
|
+
) : null}
|
|
66
|
+
<CardTitle className="text-xl transition-colors group-hover:text-primary">
|
|
67
|
+
{service.title}
|
|
68
|
+
</CardTitle>
|
|
69
|
+
</CardHeader>
|
|
70
|
+
{service.summary ? (
|
|
71
|
+
<CardContent className="flex-1">
|
|
72
|
+
<p className="line-clamp-3 text-sm leading-relaxed text-muted-foreground">
|
|
73
|
+
{service.summary}
|
|
74
|
+
</p>
|
|
75
|
+
</CardContent>
|
|
76
|
+
) : (
|
|
77
|
+
<div className="flex-1" />
|
|
78
|
+
)}
|
|
79
|
+
<CardFooter className="mt-auto">
|
|
80
|
+
<span className="text-sm font-medium text-primary">
|
|
81
|
+
Learn more →
|
|
82
|
+
</span>
|
|
83
|
+
</CardFooter>
|
|
84
|
+
</Card>
|
|
85
|
+
</a>
|
|
86
|
+
);
|
|
87
|
+
})}
|
|
88
|
+
</div>
|
|
89
|
+
)}
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "dkit:block",
|
|
3
|
+
"id": "site-brand",
|
|
4
|
+
"title": "Site brand",
|
|
5
|
+
"description": "Logo, site name, and tagline from settings — compose into header/footer layouts",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"frameworks": ["next"],
|
|
8
|
+
"uiKits": ["shadcn", "minimal"],
|
|
9
|
+
"slot": "brand",
|
|
10
|
+
"registryDependencies": ["settings"],
|
|
11
|
+
"dependencies": ["@directus/sdk"],
|
|
12
|
+
"layers": ["ui"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSettings,
|
|
3
|
+
siteLogoUrl,
|
|
4
|
+
} from "@/lib/dkit/settings";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Brand mark from settings — compose into your header/footer layout.
|
|
8
|
+
* Logo renders whenever settings.logo is set — use SiteLogo for logo-only.
|
|
9
|
+
*/
|
|
10
|
+
export async function SiteBrand({
|
|
11
|
+
homeHref = "/",
|
|
12
|
+
showTagline = true,
|
|
13
|
+
}: {
|
|
14
|
+
homeHref?: string;
|
|
15
|
+
showTagline?: boolean;
|
|
16
|
+
}) {
|
|
17
|
+
const settings = await getSettings();
|
|
18
|
+
if (!settings) return null;
|
|
19
|
+
|
|
20
|
+
const name = settings.site_name?.trim();
|
|
21
|
+
if (!name) return null;
|
|
22
|
+
|
|
23
|
+
const logo = siteLogoUrl(settings);
|
|
24
|
+
const tagline = settings.tagline?.trim();
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<div className="dkit-site-brand">
|
|
28
|
+
<style>{`
|
|
29
|
+
.dkit-site-brand__link {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 0.625rem;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
color: inherit;
|
|
36
|
+
}
|
|
37
|
+
.dkit-site-brand__link img {
|
|
38
|
+
height: 2rem;
|
|
39
|
+
width: auto;
|
|
40
|
+
}
|
|
41
|
+
.dkit-site-brand__name {
|
|
42
|
+
font-size: 1.125rem;
|
|
43
|
+
}
|
|
44
|
+
.dkit-site-brand__tagline {
|
|
45
|
+
margin: 0.35rem 0 0;
|
|
46
|
+
max-width: 24rem;
|
|
47
|
+
font-size: 0.875rem;
|
|
48
|
+
line-height: 1.5;
|
|
49
|
+
color: #555;
|
|
50
|
+
}
|
|
51
|
+
`}</style>
|
|
52
|
+
<a href={homeHref} className="dkit-site-brand__link">
|
|
53
|
+
{logo ? <img src={logo} alt="" /> : null}
|
|
54
|
+
<span className="dkit-site-brand__name">{name}</span>
|
|
55
|
+
</a>
|
|
56
|
+
{showTagline && tagline ? (
|
|
57
|
+
<p className="dkit-site-brand__tagline">{tagline}</p>
|
|
58
|
+
) : null}
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSettings,
|
|
3
|
+
siteLogoUrl,
|
|
4
|
+
} from "@/lib/dkit/settings";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Brand mark from settings (logo + name + tagline).
|
|
8
|
+
* Place beside NavHeader or above NavFooter / SocialLinks in your layout.
|
|
9
|
+
* Logo renders whenever settings.logo is set — use SiteLogo for logo-only.
|
|
10
|
+
*/
|
|
11
|
+
export async function SiteBrand({
|
|
12
|
+
homeHref = "/",
|
|
13
|
+
showTagline = true,
|
|
14
|
+
className,
|
|
15
|
+
}: {
|
|
16
|
+
homeHref?: string;
|
|
17
|
+
showTagline?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
}) {
|
|
20
|
+
const settings = await getSettings();
|
|
21
|
+
if (!settings) return null;
|
|
22
|
+
|
|
23
|
+
const name = settings.site_name?.trim();
|
|
24
|
+
if (!name) return null;
|
|
25
|
+
|
|
26
|
+
const logo = siteLogoUrl(settings);
|
|
27
|
+
const tagline = settings.tagline?.trim();
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<div className={className}>
|
|
31
|
+
<a
|
|
32
|
+
href={homeHref}
|
|
33
|
+
className="inline-flex items-center gap-2.5 font-semibold tracking-tight text-foreground"
|
|
34
|
+
>
|
|
35
|
+
{logo ? (
|
|
36
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
37
|
+
<img src={logo} alt="" className="h-8 w-auto" />
|
|
38
|
+
) : null}
|
|
39
|
+
<span className="truncate text-lg">{name}</span>
|
|
40
|
+
</a>
|
|
41
|
+
{showTagline && tagline ? (
|
|
42
|
+
<p className="mt-1 max-w-sm text-sm leading-relaxed text-muted-foreground">
|
|
43
|
+
{tagline}
|
|
44
|
+
</p>
|
|
45
|
+
) : null}
|
|
46
|
+
</div>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "dkit:block",
|
|
3
|
+
"id": "site-logo",
|
|
4
|
+
"title": "Site logo",
|
|
5
|
+
"description": "Renders the settings logo image only — optional link wrap",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"frameworks": ["next"],
|
|
8
|
+
"uiKits": ["shadcn", "minimal"],
|
|
9
|
+
"slot": "logo",
|
|
10
|
+
"registryDependencies": ["settings"],
|
|
11
|
+
"dependencies": ["@directus/sdk"],
|
|
12
|
+
"layers": ["ui"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { getSettings, siteLogoUrl } from "@/lib/dkit/settings";
|
|
2
|
+
|
|
3
|
+
/** Settings logo only. Returns null when no logo is set. */
|
|
4
|
+
export async function SiteLogo({
|
|
5
|
+
homeHref,
|
|
6
|
+
alt,
|
|
7
|
+
}: {
|
|
8
|
+
homeHref?: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
}) {
|
|
11
|
+
const settings = await getSettings();
|
|
12
|
+
const src = siteLogoUrl(settings);
|
|
13
|
+
if (!src) return null;
|
|
14
|
+
|
|
15
|
+
const label = alt ?? settings?.site_name?.trim() ?? "";
|
|
16
|
+
const image = (
|
|
17
|
+
<img className="dkit-site-logo" src={src} alt={label} />
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<>
|
|
22
|
+
<style>{`
|
|
23
|
+
.dkit-site-logo {
|
|
24
|
+
height: 2rem;
|
|
25
|
+
width: auto;
|
|
26
|
+
display: block;
|
|
27
|
+
}
|
|
28
|
+
a:has(> .dkit-site-logo) {
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
33
|
+
`}</style>
|
|
34
|
+
{homeHref ? <a href={homeHref}>{image}</a> : image}
|
|
35
|
+
</>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getSettings, siteLogoUrl } from "@/lib/dkit/settings";
|
|
2
|
+
|
|
3
|
+
/** Settings logo only. Returns null when no logo is set. */
|
|
4
|
+
export async function SiteLogo({
|
|
5
|
+
homeHref,
|
|
6
|
+
className,
|
|
7
|
+
alt,
|
|
8
|
+
}: {
|
|
9
|
+
/** When set, wrap the image in a link. */
|
|
10
|
+
homeHref?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
}) {
|
|
14
|
+
const settings = await getSettings();
|
|
15
|
+
const src = siteLogoUrl(settings);
|
|
16
|
+
if (!src) return null;
|
|
17
|
+
|
|
18
|
+
const label = alt ?? settings?.site_name?.trim() ?? "";
|
|
19
|
+
const image = (
|
|
20
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
21
|
+
<img
|
|
22
|
+
src={src}
|
|
23
|
+
alt={label}
|
|
24
|
+
className={className ?? "h-8 w-auto"}
|
|
25
|
+
/>
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
if (!homeHref) return image;
|
|
29
|
+
return (
|
|
30
|
+
<a href={homeHref} className="inline-flex items-center">
|
|
31
|
+
{image}
|
|
32
|
+
</a>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "dkit:block",
|
|
3
|
+
"id": "social-links",
|
|
4
|
+
"title": "Social links",
|
|
5
|
+
"description": "Renders settings social_links (platform dropdown) as a link row",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"frameworks": ["next"],
|
|
8
|
+
"uiKits": ["shadcn", "minimal"],
|
|
9
|
+
"slot": "social",
|
|
10
|
+
"registryDependencies": ["settings"],
|
|
11
|
+
"dependencies": ["@directus/sdk"],
|
|
12
|
+
"layers": ["ui"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSettings,
|
|
3
|
+
siteSocialLinks,
|
|
4
|
+
socialLinkLabel,
|
|
5
|
+
socialLinkProps,
|
|
6
|
+
type SiteSocialLink,
|
|
7
|
+
} from "@/lib/dkit/settings";
|
|
8
|
+
|
|
9
|
+
/** Minimal kit — platform link row from settings. */
|
|
10
|
+
export async function SocialLinks({
|
|
11
|
+
links: linksProp,
|
|
12
|
+
"aria-label": ariaLabel = "Social links",
|
|
13
|
+
}: {
|
|
14
|
+
links?: SiteSocialLink[];
|
|
15
|
+
"aria-label"?: string;
|
|
16
|
+
}) {
|
|
17
|
+
const links = linksProp ?? siteSocialLinks(await getSettings());
|
|
18
|
+
if (links.length === 0) return null;
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<nav className="dkit-social-links" aria-label={ariaLabel}>
|
|
22
|
+
<style>{`
|
|
23
|
+
.dkit-social-links ul {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
gap: 0.75rem 1.25rem;
|
|
27
|
+
list-style: none;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
.dkit-social-links a {
|
|
32
|
+
color: #555;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
font-size: 0.875rem;
|
|
35
|
+
}
|
|
36
|
+
.dkit-social-links a:hover {
|
|
37
|
+
color: inherit;
|
|
38
|
+
text-decoration: underline;
|
|
39
|
+
}
|
|
40
|
+
`}</style>
|
|
41
|
+
<ul>
|
|
42
|
+
{links.map((link) => {
|
|
43
|
+
const props = socialLinkProps(link);
|
|
44
|
+
return (
|
|
45
|
+
<li key={`${link.platform}-${link.href}`}>
|
|
46
|
+
<a {...props} data-platform={link.platform}>
|
|
47
|
+
{socialLinkLabel(link)}
|
|
48
|
+
</a>
|
|
49
|
+
</li>
|
|
50
|
+
);
|
|
51
|
+
})}
|
|
52
|
+
</ul>
|
|
53
|
+
</nav>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSettings,
|
|
3
|
+
siteSocialLinks,
|
|
4
|
+
socialLinkLabel,
|
|
5
|
+
socialLinkProps,
|
|
6
|
+
type SiteSocialLink,
|
|
7
|
+
} from "@/lib/dkit/settings";
|
|
8
|
+
|
|
9
|
+
/** Link row from site settings social_links (platform + href). */
|
|
10
|
+
export async function SocialLinks({
|
|
11
|
+
links: linksProp,
|
|
12
|
+
className,
|
|
13
|
+
"aria-label": ariaLabel = "Social links",
|
|
14
|
+
}: {
|
|
15
|
+
/** Override fetched settings links (e.g. tests / previews). */
|
|
16
|
+
links?: SiteSocialLink[];
|
|
17
|
+
className?: string;
|
|
18
|
+
"aria-label"?: string;
|
|
19
|
+
}) {
|
|
20
|
+
const links =
|
|
21
|
+
linksProp ??
|
|
22
|
+
siteSocialLinks(await getSettings());
|
|
23
|
+
|
|
24
|
+
if (links.length === 0) return null;
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<nav aria-label={ariaLabel} className={className}>
|
|
28
|
+
<ul className="flex flex-wrap items-center gap-x-4 gap-y-2">
|
|
29
|
+
{links.map((link) => {
|
|
30
|
+
const props = socialLinkProps(link);
|
|
31
|
+
return (
|
|
32
|
+
<li key={`${link.platform}-${link.href}`}>
|
|
33
|
+
<a
|
|
34
|
+
{...props}
|
|
35
|
+
data-platform={link.platform}
|
|
36
|
+
className="text-sm text-muted-foreground transition-colors hover:text-foreground"
|
|
37
|
+
>
|
|
38
|
+
{socialLinkLabel(link)}
|
|
39
|
+
</a>
|
|
40
|
+
</li>
|
|
41
|
+
);
|
|
42
|
+
})}
|
|
43
|
+
</ul>
|
|
44
|
+
</nav>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "dkit:block",
|
|
3
|
+
"id": "team-detail",
|
|
4
|
+
"title": "Team detail",
|
|
5
|
+
"description": "Team member profile with photo, role, and bio",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"frameworks": ["next"],
|
|
8
|
+
"uiKits": ["shadcn", "minimal"],
|
|
9
|
+
"shadcnComponents": ["button"],
|
|
10
|
+
"slot": "detail",
|
|
11
|
+
"route": { "kind": "slug" },
|
|
12
|
+
"registryDependencies": ["team"],
|
|
13
|
+
"dependencies": ["@directus/sdk"],
|
|
14
|
+
"layers": ["ui"]
|
|
15
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { getTeamMemberBySlug, teamMemberPhotoUrl } from "@/lib/dkit/team";
|
|
2
|
+
import { moduleHref } from "@/lib/dkit/paths";
|
|
3
|
+
|
|
4
|
+
/** Minimal kit — semantic HTML profile page. */
|
|
5
|
+
export async function TeamDetail({
|
|
6
|
+
slug,
|
|
7
|
+
}: {
|
|
8
|
+
slug: string;
|
|
9
|
+
}) {
|
|
10
|
+
const basePath = await moduleHref("team");
|
|
11
|
+
const member = await getTeamMemberBySlug(slug);
|
|
12
|
+
if (!member) {
|
|
13
|
+
return (
|
|
14
|
+
<section>
|
|
15
|
+
<p>Team member not found</p>
|
|
16
|
+
<p>
|
|
17
|
+
<a href={basePath}>← Back to team</a>
|
|
18
|
+
</p>
|
|
19
|
+
</section>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const photoUrl = teamMemberPhotoUrl(member);
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<article>
|
|
27
|
+
<style>{`
|
|
28
|
+
.dkit-team-detail {
|
|
29
|
+
max-width: 40rem;
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
}
|
|
32
|
+
.dkit-team-detail__back {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
margin-bottom: 2rem;
|
|
35
|
+
}
|
|
36
|
+
.dkit-team-detail__header {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
align-items: center;
|
|
40
|
+
text-align: center;
|
|
41
|
+
padding-bottom: 2rem;
|
|
42
|
+
border-bottom: 1px solid #ddd;
|
|
43
|
+
}
|
|
44
|
+
.dkit-team-detail__photo,
|
|
45
|
+
.dkit-team-detail__initial {
|
|
46
|
+
width: 8rem;
|
|
47
|
+
height: 8rem;
|
|
48
|
+
border-radius: 9999px;
|
|
49
|
+
object-fit: cover;
|
|
50
|
+
margin-bottom: 1.5rem;
|
|
51
|
+
}
|
|
52
|
+
.dkit-team-detail__initial {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
background: #eee;
|
|
57
|
+
font-size: 2rem;
|
|
58
|
+
font-weight: 700;
|
|
59
|
+
}
|
|
60
|
+
.dkit-team-detail__header h1 {
|
|
61
|
+
margin: 0;
|
|
62
|
+
font-size: 2.25rem;
|
|
63
|
+
}
|
|
64
|
+
.dkit-team-detail__role {
|
|
65
|
+
margin: 0.75rem 0 0;
|
|
66
|
+
color: #0F766E;
|
|
67
|
+
}
|
|
68
|
+
.dkit-team-detail__email {
|
|
69
|
+
margin: 0.75rem 0 0;
|
|
70
|
+
font-size: 0.875rem;
|
|
71
|
+
}
|
|
72
|
+
.dkit-team-detail__bio {
|
|
73
|
+
margin: 2rem 0 0;
|
|
74
|
+
line-height: 1.6;
|
|
75
|
+
}
|
|
76
|
+
`}</style>
|
|
77
|
+
|
|
78
|
+
<div className="dkit-team-detail">
|
|
79
|
+
<a className="dkit-team-detail__back" href={basePath}>
|
|
80
|
+
← All team members
|
|
81
|
+
</a>
|
|
82
|
+
<header className="dkit-team-detail__header">
|
|
83
|
+
{photoUrl ? (
|
|
84
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
85
|
+
<img
|
|
86
|
+
className="dkit-team-detail__photo"
|
|
87
|
+
src={photoUrl}
|
|
88
|
+
alt=""
|
|
89
|
+
width={128}
|
|
90
|
+
height={128}
|
|
91
|
+
/>
|
|
92
|
+
) : (
|
|
93
|
+
<span className="dkit-team-detail__initial">
|
|
94
|
+
{member.name.charAt(0)}
|
|
95
|
+
</span>
|
|
96
|
+
)}
|
|
97
|
+
<h1>{member.name}</h1>
|
|
98
|
+
{member.role ? (
|
|
99
|
+
<p className="dkit-team-detail__role">{member.role}</p>
|
|
100
|
+
) : null}
|
|
101
|
+
{member.email ? (
|
|
102
|
+
<p className="dkit-team-detail__email">
|
|
103
|
+
<a href={`mailto:${member.email}`}>{member.email}</a>
|
|
104
|
+
</p>
|
|
105
|
+
) : null}
|
|
106
|
+
</header>
|
|
107
|
+
{member.bio ? (
|
|
108
|
+
<p className="dkit-team-detail__bio">{member.bio}</p>
|
|
109
|
+
) : null}
|
|
110
|
+
</div>
|
|
111
|
+
</article>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { getTeamMemberBySlug, teamMemberPhotoUrl } from "@/lib/dkit/team";
|
|
2
|
+
import { moduleHref } from "@/lib/dkit/paths";
|
|
3
|
+
import { buttonVariants } from "@/components/ui/button";
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
|
|
6
|
+
/** Uses your project's shadcn/ui components. */
|
|
7
|
+
export async function TeamDetail({
|
|
8
|
+
slug,
|
|
9
|
+
}: {
|
|
10
|
+
slug: string;
|
|
11
|
+
}) {
|
|
12
|
+
const basePath = await moduleHref("team");
|
|
13
|
+
const member = await getTeamMemberBySlug(slug);
|
|
14
|
+
if (!member) {
|
|
15
|
+
return (
|
|
16
|
+
<div className="mx-auto max-w-2xl px-6 py-20 text-center text-muted-foreground">
|
|
17
|
+
<p className="text-2xl font-semibold text-foreground">
|
|
18
|
+
Team member not found
|
|
19
|
+
</p>
|
|
20
|
+
<a
|
|
21
|
+
href={basePath}
|
|
22
|
+
className={cn(buttonVariants({ variant: "link" }), "mt-4")}
|
|
23
|
+
>
|
|
24
|
+
← Back to team
|
|
25
|
+
</a>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const photoUrl = teamMemberPhotoUrl(member);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<article className="mx-auto max-w-2xl px-6 py-16 sm:py-20">
|
|
34
|
+
<a
|
|
35
|
+
href={basePath}
|
|
36
|
+
className={cn(buttonVariants({ variant: "ghost" }), "mb-10")}
|
|
37
|
+
>
|
|
38
|
+
← All team members
|
|
39
|
+
</a>
|
|
40
|
+
|
|
41
|
+
<header className="flex flex-col items-center border-b border-border pb-10 text-center">
|
|
42
|
+
{photoUrl ? (
|
|
43
|
+
// eslint-disable-next-line @next/next/no-img-element
|
|
44
|
+
<img
|
|
45
|
+
src={photoUrl}
|
|
46
|
+
alt=""
|
|
47
|
+
className="mb-6 h-32 w-32 rounded-full object-cover ring-2 ring-border"
|
|
48
|
+
/>
|
|
49
|
+
) : (
|
|
50
|
+
<span className="mb-6 flex h-32 w-32 items-center justify-center rounded-full bg-muted text-4xl font-semibold text-muted-foreground">
|
|
51
|
+
{member.name.charAt(0)}
|
|
52
|
+
</span>
|
|
53
|
+
)}
|
|
54
|
+
<h1 className="text-4xl font-semibold tracking-tight text-foreground sm:text-5xl">
|
|
55
|
+
{member.name}
|
|
56
|
+
</h1>
|
|
57
|
+
{member.role ? (
|
|
58
|
+
<p className="mt-3 text-lg text-primary">{member.role}</p>
|
|
59
|
+
) : null}
|
|
60
|
+
{member.email ? (
|
|
61
|
+
<a
|
|
62
|
+
href={`mailto:${member.email}`}
|
|
63
|
+
className="mt-3 text-sm text-muted-foreground underline-offset-4 hover:underline"
|
|
64
|
+
>
|
|
65
|
+
{member.email}
|
|
66
|
+
</a>
|
|
67
|
+
) : null}
|
|
68
|
+
</header>
|
|
69
|
+
|
|
70
|
+
{member.bio ? (
|
|
71
|
+
<p className="mt-10 text-base leading-relaxed text-muted-foreground">
|
|
72
|
+
{member.bio}
|
|
73
|
+
</p>
|
|
74
|
+
) : null}
|
|
75
|
+
</article>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "dkit:block",
|
|
3
|
+
"id": "team-list",
|
|
4
|
+
"title": "Team list",
|
|
5
|
+
"description": "Stacked team list with photo, name, role, and bio",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"frameworks": ["next"],
|
|
8
|
+
"uiKits": ["shadcn", "minimal"],
|
|
9
|
+
"slot": "list",
|
|
10
|
+
"route": { "kind": "index" },
|
|
11
|
+
"registryDependencies": ["team"],
|
|
12
|
+
"dependencies": ["@directus/sdk"],
|
|
13
|
+
"layers": ["ui"]
|
|
14
|
+
}
|