Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
168d463
add: draft README
debuggingfuture Sep 28, 2024
a55fb38
feat(create-turbo): apply official-starter transform
turbobot-temp Sep 28, 2024
e4b9b17
feat(create-turbo): apply pnpm-eslint transform
turbobot-temp Sep 28, 2024
b09def2
feat(create-turbo): install dependencies
turbobot-temp Sep 28, 2024
0012198
update: README
debuggingfuture Sep 28, 2024
90f7845
add: README
debuggingfuture Sep 28, 2024
95052c0
fix: readme
debuggingfuture Sep 28, 2024
1e648c3
fix: README
debuggingfuture Sep 28, 2024
785fe11
add: warning
debuggingfuture Sep 28, 2024
fdacb65
add: dogfood
debuggingfuture Sep 28, 2024
5ddd7c5
add: prototype
debuggingfuture Sep 28, 2024
3a49c11
add: merge shadcdn
debuggingfuture Sep 28, 2024
8718f47
add: storybook
debuggingfuture Oct 1, 2024
43dd06c
update: README
debuggingfuture Oct 2, 2024
b4d3862
add: draft signature
debuggingfuture Oct 2, 2024
f06eee8
add: prepare EAS graphql
debuggingfuture Oct 2, 2024
706c9f4
add: gql
debuggingfuture Oct 2, 2024
b9ff78d
add: eas table
debuggingfuture Oct 3, 2024
66563d4
add: draft
debuggingfuture Oct 3, 2024
92e7c81
add: ens
debuggingfuture Oct 4, 2024
c94bf3e
fix: private key
debuggingfuture Oct 4, 2024
f6c82a2
add: draft
debuggingfuture Oct 10, 2024
fee7e33
add: sign forms, eas (#7)
debuggingfuture Oct 15, 2024
47b713c
chore: cleanup
debuggingfuture Oct 15, 2024
efe99fc
chore: more cleanup
debuggingfuture Oct 15, 2024
727efe8
update: company name
debuggingfuture Oct 16, 2024
f903b35
add: NameAndFollowerCountBadge (#8)
justin-lau Oct 16, 2024
f4b0b08
update: README
debuggingfuture Oct 20, 2024
cada03c
chore: clean up
debuggingfuture Oct 20, 2024
cb6d6eb
add: fleek ci (#9)
debuggingfuture Oct 23, 2024
4ab9a1c
add: multiformats codec form / ucan draft (#10)
debuggingfuture Oct 23, 2024
ec2d0dc
chore: readme and ci convention
debuggingfuture Oct 23, 2024
49f725c
deps: upgraded biomejs to v1.9.4
justin-lau Nov 1, 2024
db19ece
chore: replaced eslint with biome
justin-lau Nov 1, 2024
66a29fe
chore: runs biome check on pre-push hook with husky
justin-lau Nov 1, 2024
506bcaa
chore: run check:fix
justin-lau Nov 1, 2024
b1ea138
ci: add check
justin-lau Nov 1, 2024
0af72eb
Merge pull request #21 from fractaldotbox/jlau/biome
debuggingfuture Nov 3, 2024
4d20ce9
fix: eas attestation cards with offchain (#23)
debuggingfuture Nov 4, 2024
5b3e0c3
fix: updated pnpm lock file
justin-lau Nov 5, 2024
e5cf375
chore: fix ci path
debuggingfuture Nov 6, 2024
de091c5
fix: no lint error on empty diff
debuggingfuture Nov 6, 2024
29c2ed7
add: file upload frame (#24)
debuggingfuture Nov 6, 2024
e0342d2
fix: dropzone export
debuggingfuture Nov 6, 2024
d0318c1
chore: clean up stories
debuggingfuture Nov 6, 2024
f58c91f
feat(tokenchip): add tokenchip component implementation and sample st…
metalboyrick Oct 31, 2024
ba14de1
docs(tokenchip): add documentation for tokenchip
metalboyrick Oct 31, 2024
20e39e7
docs(tokenchip): add information about shadcn component installation
metalboyrick Nov 1, 2024
1e07039
chore(tokenchip): remove unnecessary comments
metalboyrick Nov 3, 2024
96eb3a0
test(tokenchip): add tokenchip tests and update vitest config to supp…
metalboyrick Nov 3, 2024
49a6c9c
chore(tokenchip): run biome
metalboyrick Nov 3, 2024
7f44170
chore(tokenchip): remove unnecessary comments
metalboyrick Nov 3, 2024
8d7d541
fix(tokenchip): do not render image tag when link is not provided
metalboyrick Nov 4, 2024
1684bc6
chore(tokenchip): run biome
metalboyrick Nov 4, 2024
381e20c
Merge pull request #18 from fractaldotbox/rick/tokenchip-implementation
justin-lau Nov 8, 2024
8e0af8b
feat: add copy feature to address
metalboyrick Nov 9, 2024
433e461
chore: remove unused imports
metalboyrick Nov 9, 2024
ce519f4
chore: import cleanup, test: add tests
metalboyrick Nov 9, 2024
1eb165d
chore: run biome
metalboyrick Nov 9, 2024
c434c18
fix(address): use short as default
metalboyrick Nov 11, 2024
b1d4a79
chore(address): run biome
metalboyrick Nov 11, 2024
9e84539
Merge pull request #26 from fractaldotbox/feat/address-copy
justin-lau Nov 11, 2024
904d182
feat:transfer button
iyansr Nov 2, 2024
7bc686e
fix: account as props
iyansr Nov 2, 2024
15e816b
feat: add options
iyansr Nov 2, 2024
cc2be78
fix: fix transfer button
iyansr Nov 5, 2024
272e3e6
fix: fix value
iyansr Nov 5, 2024
b697c80
fix: update regex
iyansr Nov 8, 2024
e80a105
fix: fix transfer button
iyansr Nov 10, 2024
7c62c47
fix: fix backspace
iyansr Nov 11, 2024
684dcfa
fix: fix linter
iyansr Nov 11, 2024
1e439ee
fix: fix input ux
iyansr Nov 11, 2024
7f97107
Merge pull request #22 from fractaldotbox/feat/transfer-button
justin-lau Nov 12, 2024
cafafcc
fix: typo
debuggingfuture Nov 22, 2024
e81844a
fix: eas clean up (#29)
debuggingfuture Nov 24, 2024
0f0f141
ci: add smoke test (#32)
debuggingfuture Nov 24, 2024
0b1af78
chore: lint
debuggingfuture Nov 24, 2024
f48c061
add: blockscout api and TransactionCard (#31)
debuggingfuture Nov 24, 2024
d24d9de
add: lighthouse, akave sdk (#13)
debuggingfuture Nov 25, 2024
621888c
feat(txn-table): add basic ui only
metalboyrick Nov 28, 2024
eee5144
chore(txn-table): run biome
metalboyrick Nov 28, 2024
058b61e
refactor(txn-table): add sorting prop + use boolean as toggle for sort
metalboyrick Nov 29, 2024
bf6789a
feat(txn-table): add faker fixture generation
metalboyrick Nov 29, 2024
f03ecc3
chore(txn-table): run biome
metalboyrick Nov 29, 2024
0b9cac9
refactor(txn-table): use data table component
metalboyrick Dec 1, 2024
01519cd
chore(txn-table): remove unused imports
metalboyrick Dec 1, 2024
aca2c9c
feat: privy hello world
iyansr Dec 2, 2024
dc09049
chore: setting biome
iyansr Dec 2, 2024
3876e36
feat(txn-table): add txn types
metalboyrick Dec 2, 2024
b81546d
refactor(txn-table): code cleanup for transaction table story
metalboyrick Dec 2, 2024
b1be9e7
refactor(txn-table): rename fixture generation function
metalboyrick Dec 2, 2024
a5077aa
feat(txn-table): add blockscout api example
metalboyrick Dec 2, 2024
52ee8a9
chore(txn-table): biome
metalboyrick Dec 2, 2024
7bdbf93
add: file dropzone with storacha (#43)
debuggingfuture Dec 4, 2024
2520aba
fix: fix privy login
iyansr Dec 4, 2024
845c967
Merge branch 'draft' of github.com:fractaldotbox/geist-dapp-kit into …
iyansr Dec 4, 2024
6fc84fe
feat: update transaction table to support different explorer links
metalboyrick Dec 9, 2024
dc8fc93
feat(txn-table): update to support different chains with id when fetc…
metalboyrick Dec 9, 2024
3fb5178
chore(txn-table): run biome
metalboyrick Dec 9, 2024
feca5e9
chore(txn-table): better name for the variables
metalboyrick Dec 9, 2024
e5838e1
chore(txn-table): leftover from prev commit
metalboyrick Dec 9, 2024
3512943
chore(txn-table): rename components correctly
metalboyrick Dec 9, 2024
3801699
chore(txn-table): leftover commits
metalboyrick Dec 9, 2024
1e3a604
Merge pull request #38 from fractaldotbox/feat/privy-hello-world
debuggingfuture Dec 10, 2024
6e30cf4
Merge pull request #37 from fractaldotbox/feat/richard/transaction-table
metalboyrick Dec 12, 2024
4e075e5
add: multifield at upload form with refactor (#48)
debuggingfuture Dec 12, 2024
971923f
fix: lighthouse stories direcotry handling (#50)
debuggingfuture Dec 14, 2024
fece01a
feat(upload-attestation): storing attestations on ipfs (#46)
metalboyrick Dec 14, 2024
0125cb5
chore: stop doing diff only checks for biome
justin-lau Dec 14, 2024
dda2e7e
ci: remove PNPM_VERSION from CI configuration
justin-lau Dec 14, 2024
7dd0f0a
deps: update @fleek-platform/cli to v3.8.2
justin-lau Dec 14, 2024
ea48205
ci: add artifact upload and download steps for storybook build
justin-lau Dec 15, 2024
637bfba
chore: refactor blockexplorer url (#54)
debuggingfuture Dec 16, 2024
f2772e0
fix: explorer url usage
debuggingfuture Dec 16, 2024
dbd61b4
chore: restructure repo (#52)
debuggingfuture Dec 22, 2024
bf9f493
chore: @geist namespace (#59)
debuggingfuture Dec 22, 2024
79fa85e
docs: update impl guide (#60)
debuggingfuture Dec 23, 2024
5805ee2
fix: gql and paths (#63)
debuggingfuture Jan 3, 2025
379c3d6
fix: eas hooks types (#65)
debuggingfuture Jan 4, 2025
48a9ccd
chore: ts-config verbatimModuleSyntax true (#68)
debuggingfuture Jan 8, 2025
a6641a4
fix: add types (#69)
debuggingfuture Jan 9, 2025
9e46ed0
feat: added changesets
justin-lau Jan 5, 2025
897ae29
ci: added release workflow
justin-lau Jan 5, 2025
9e41997
ci: create reusable action for Node.js and pnpm setup with optimized …
justin-lau Jan 10, 2025
09410c5
deps: upgraded pnpm v9 -> v10
justin-lau Jan 10, 2025
9b47572
update: biome prefer arrow (#72)
debuggingfuture Jan 28, 2025
f9617b1
add: various charts (#73)
debuggingfuture Jan 30, 2025
4140d4f
add: docs (#79)
debuggingfuture Feb 13, 2025
4168682
feat(charts): yield historical chart story setup
metalboyrick Feb 5, 2025
9354115
feat(charts): make yield chart work with mock data
metalboyrick Feb 5, 2025
0b3346f
chore(charts): formatting
metalboyrick Feb 5, 2025
82d5aaf
chore(charts): remove unused stories
metalboyrick Feb 5, 2025
07aba03
feat(charts): add defillama openapi integration
metalboyrick Feb 5, 2025
71dfc39
feat(charts): add title component
metalboyrick Feb 5, 2025
7d7ecc3
generate shadcn interoperable registry (#62)
debuggingfuture Feb 17, 2025
6f29d30
fix: registry namespace and deployment (#82)
debuggingfuture Feb 18, 2025
9d650cf
docs: rebrand dDevkit (#80)
debuggingfuture Feb 18, 2025
43d8c92
fix: shadcn import rewrite (#85)
debuggingfuture Feb 19, 2025
2584233
chore: support manual ci (#88)
debuggingfuture Feb 20, 2025
162427a
feat: add privy logout (#86)
metalboyrick Feb 20, 2025
0b0f5e6
fix: live with shadcn deps workaround (#89)
debuggingfuture Feb 20, 2025
bf347b9
fix: txn table (#91)
debuggingfuture Feb 20, 2025
09148b5
fix: ci
debuggingfuture Feb 20, 2025
1fab3b9
fix: ci fleek project id
debuggingfuture Feb 20, 2025
b21e69a
fix: ci dist dir
debuggingfuture Feb 20, 2025
d253100
custom cli ddev (#90)
debuggingfuture Feb 20, 2025
c5a83fa
fix: quick fix on duplicated deps
debuggingfuture Feb 20, 2025
a3a9abe
fix: hide index
debuggingfuture Feb 21, 2025
bb036bd
chore: ci for docs
debuggingfuture Feb 21, 2025
11174c7
fix: correct registry url
debuggingfuture Feb 21, 2025
6fded36
add: demo
debuggingfuture Feb 21, 2025
549b2ca
update: docs
debuggingfuture Feb 24, 2025
e9a4666
add: docs
debuggingfuture Mar 24, 2025
7af4a23
update: docs
debuggingfuture Mar 28, 2025
8d77873
fix: favicon
debuggingfuture Mar 28, 2025
0631df2
update: simplify branding
debuggingfuture Mar 28, 2025
646c578
add: OSO and passport (#93)
debuggingfuture Mar 31, 2025
cfc7a34
fix: docs
debuggingfuture Mar 31, 2025
91b2688
chore: dDevKit (#98)
debuggingfuture Apr 3, 2025
a9f5a99
chore: setup astro biome (#99)
debuggingfuture Apr 3, 2025
0f05d60
doc: tailwindcss (#100)
debuggingfuture Apr 3, 2025
e3ad2c2
docs: embed storybook components (#97)
debuggingfuture Apr 3, 2025
02d658b
merge
debuggingfuture Apr 5, 2025
eceec50
fix: merge
debuggingfuture Apr 5, 2025
284b1fc
doc: add sitemap
debuggingfuture Apr 5, 2025
8d90bcb
Merge branch 'draft' into docs
debuggingfuture Apr 5, 2025
59a4b11
chore: use starlight sitemap
debuggingfuture Apr 5, 2025
8c331e3
chore: remove sharp deps
debuggingfuture Apr 7, 2025
285b686
fix: registry cli (#107)
debuggingfuture Apr 8, 2025
1f444c9
fix: usefollowers is not defined (#108)
kenyiu Apr 8, 2025
0cf110c
fix(deps): update dependencies and fix package configuration (#102)
kenyiu Apr 8, 2025
8ccd8ed
fix: docs links (#114)
kenyiu Apr 9, 2025
1e1d064
fix: update GitHub link in starlight configuration (#109)
kenyiu Apr 9, 2025
3154d8c
add: story component test (#115)
debuggingfuture Apr 10, 2025
8c68473
add: pull components from storybook
debuggingfuture Apr 9, 2025
bef5a72
chore: remove jotai
debuggingfuture Apr 10, 2025
fb64ab8
add: component install cli example by registry path (#105)
debuggingfuture Apr 10, 2025
f163bdc
merge
debuggingfuture Apr 10, 2025
22de05d
add: docs on env
debuggingfuture Apr 10, 2025
67ca7fb
add: react / shadcn
debuggingfuture Apr 10, 2025
3c6cafc
add: testimonials
debuggingfuture Apr 14, 2025
606094b
fix: clean up pages
debuggingfuture Apr 23, 2025
590f508
Merge branch 'main' into df/docs-testinomial
debuggingfuture Apr 23, 2025
20b3e4b
merge
debuggingfuture Apr 23, 2025
05a738a
merge docs
debuggingfuture Apr 23, 2025
9bb52d2
clean up
debuggingfuture Apr 23, 2025
feb98e9
fix: version
debuggingfuture Apr 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
// @ts-check
Expand Down Expand Up @@ -50,6 +51,7 @@ const components = await getSidebarComponentsSlugs();
export default defineConfig({
site: PUBLIC_DOC_SITE_URL,
integrations: [
react(),
starlight({
title: "dDevKit",
social: {
Expand Down
21 changes: 21 additions & 0 deletions apps/docs/components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.mjs",
"css": "src/styles/global.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}
15 changes: 13 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,23 @@
"deploy:fleek": "fleek --debug sites deploy"
},
"dependencies": {
"@astrojs/cloudflare": "^12.4.0",
"@astrojs/cloudflare": "^12.2.1",
"@astrojs/react": "^4.2.3",
"@astrojs/starlight": "^0.31.1",
"@astrojs/starlight-tailwind": "^3.0.1",
"@astrojs/tailwind": "^6.0.2",
"@fleek-platform/cli": "^3.8.2",
"@geist/typescript-config": "workspace:*",
"@radix-ui/react-avatar": "^1.1.0",
"astro": "^5.1.5",
"tailwindcss": "^3.4.13"
"avatar": "^0.1.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.446.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.13",
"tailwindcss-animate": "^1.0.7"
}
}
6 changes: 6 additions & 0 deletions apps/docs/src/components/footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
---

<div class="container text-center">
Brought to you by <a href="https://fractalbox.dev/" target="_blank">FractalBox</a>
</div>
59 changes: 59 additions & 0 deletions apps/docs/src/components/testimonial-card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
"use client";

import type * as React from "react";
import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar";
import { Card, CardContent } from "./ui/card";

interface TestimonialCardProps {
name: string;
handle?: string;
avatar?: string;
xPost?: string;
children: React.ReactNode;
}

export function TestimonialCard({
name,
handle,
avatar,
xPost,
children,
}: TestimonialCardProps) {
const initials = name
.split(" ")
.map((n) => n[0])
.join("")
.toUpperCase();

return (
<Card className="h-full p-4 hover:bg-accent/50 transition-colors min-h-[200px] max-w-[400px]">
<CardContent className="p-0">
<a
href={`${xPost}`}
className="no-underline text-white"
target="_blank"
>
<div className="flex items-start gap-3">
<Avatar className="h-12 w-12">
<AvatarImage src={avatar} alt={name} />
<AvatarFallback>{initials}</AvatarFallback>
</Avatar>
<div className="flex-1">
<div className="flex flex-col items-start">
<div className="font-semibold">{name}</div>
{handle && (
<div className="mt-[-5px] text-muted-foreground text-slate-500">
@{handle}
</div>
)}
</div>
<blockquote className="mt-2 text-foreground">
{children}
</blockquote>
</div>
</div>
</a>
</CardContent>
</Card>
);
}
92 changes: 92 additions & 0 deletions apps/docs/src/components/testimonial-grid.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
import { getCollection } from "astro:content";
import { TestimonialCard } from "./testimonial-card";

interface Props {
title: string;
}

const { title } = Astro.props;

const testimonials = await getCollection("testimonials");
---

<div class="testimonial-wrapper not-content" data-pagefind-ignore>
<h2 class="testimonial-grid-title">{title}</h2>
<div class="testimonial-grid">
<div class="testimonial-row">
{testimonials.map((testimonial) => (
<TestimonialCard
name={testimonial.data.name}
handle={testimonial.data.x}
avatar={testimonial.data.xAvatar}
xPost={testimonial.data.xPost}
client:load
>
{testimonial.body}
</TestimonialCard>
))}
{/* Duplicate cards for seamless loop */}
{testimonials.map((testimonial) => (
<TestimonialCard
name={testimonial.data.name}
handle={testimonial.data.x}
avatar={testimonial.data.xAvatar}
xPost={testimonial.data.xPost}
client:load
>
{testimonial.body}
</TestimonialCard>
))}
</div>
</div>
</div>

<style>
.testimonial-wrapper {
margin: 4rem 0;
overflow: hidden;
}

.testimonial-grid-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 2rem;
text-align: center;
}

.testimonial-grid {
display: flex;
flex-direction: column;
gap: 2rem;
}

.testimonial-row {
display: flex;
gap: 2rem;
animation: scroll 40s linear infinite;
width: max-content;
}

@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}

.testimonial-row:hover {
animation-play-state: paused;
}

@media (max-width: 768px) {
.testimonial-row {
animation: none;
display: grid;
grid-template-columns: 1fr;
width: 100%;
}
}
</style>
48 changes: 48 additions & 0 deletions apps/docs/src/components/ui/avatar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import * as AvatarPrimitive from "@radix-ui/react-avatar";
import * as React from "react";

import { cn } from "@/lib/utils";

const Avatar = React.forwardRef<
React.ElementRef<typeof AvatarPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Root
ref={ref}
className={cn(
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
className,
)}
{...props}
/>
));
Avatar.displayName = AvatarPrimitive.Root.displayName;

const AvatarImage = React.forwardRef<
React.ElementRef<typeof AvatarPrimitive.Image>,
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Image
ref={ref}
className={cn("aspect-square h-full w-full", className)}
{...props}
/>
));
AvatarImage.displayName = AvatarPrimitive.Image.displayName;

const AvatarFallback = React.forwardRef<
React.ElementRef<typeof AvatarPrimitive.Fallback>,
React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Fallback
ref={ref}
className={cn(
"flex h-full w-full items-center justify-center rounded-full bg-muted",
className,
)}
{...props}
/>
));
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;

export { Avatar, AvatarImage, AvatarFallback };
86 changes: 86 additions & 0 deletions apps/docs/src/components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import * as React from "react";

import { cn } from "@/lib/utils";

const Card = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"rounded-lg border bg-card text-card-foreground shadow-sm",
className,
)}
{...props}
/>
));
Card.displayName = "Card";

const CardHeader = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex flex-col space-y-1.5 p-6", className)}
{...props}
/>
));
CardHeader.displayName = "CardHeader";

const CardTitle = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"text-2xl font-semibold leading-none tracking-tight",
className,
)}
{...props}
/>
));
CardTitle.displayName = "CardTitle";

const CardDescription = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
));
CardDescription.displayName = "CardDescription";

const CardContent = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
));
CardContent.displayName = "CardContent";

const CardFooter = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex items-center p-6 pt-0", className)}
{...props}
/>
));
CardFooter.displayName = "CardFooter";

export {
Card,
CardHeader,
CardFooter,
CardTitle,
CardDescription,
CardContent,
};
10 changes: 10 additions & 0 deletions apps/docs/src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import { defineCollection, z } from "astro:content";
import { docsLoader } from "@astrojs/starlight/loaders";
import { docsSchema } from "@astrojs/starlight/schema";
import { glob } from "astro/loaders";
import { storybookLoader } from "./storybook-loader";

// component probably reserved
export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
testimonials: defineCollection({
loader: glob({ pattern: "**/*.md", base: "./src/content/testimonials" }),
schema: z.object({
name: z.string(),
x: z.string(),
xAvatar: z.string().optional(),
xPost: z.string(),
}),
}),
components: defineCollection({
loader: storybookLoader(),
schema: docsSchema({
Expand Down
Loading
Loading