blocks-dusted 0.1.11 → 0.1.12
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/package.json +5 -2
- package/src/cli.js +39 -3
- package/src/commands/shop.js +59 -0
- package/src/commands/warehouse.js +73 -0
- package/templates/blocks/DD-BookCall/Component.tsx +535 -534
- package/templates/blocks/DD-CardTemplate01/Component.tsx +140 -139
- package/templates/blocks/DD-Carousel-A/Component.tsx +1 -1
- package/templates/blocks/DD-Carousel-B/Component.tsx +1 -1
- package/templates/blocks/DD-Chip/Component.tsx +14 -14
- package/templates/blocks/DD-ComparisonTable/Component.tsx +1 -1
- package/templates/blocks/DD-Contact/Component.tsx +8 -7
- package/templates/blocks/DD-Counter/Component.tsx +10 -10
- package/templates/blocks/DD-FeatCat/Component.tsx +1 -1
- package/templates/blocks/DD-FeatStrip/Component.tsx +1 -1
- package/templates/blocks/DD-Hero/Component.tsx +297 -320
- package/templates/blocks/DD-HorizontalScroll/Component.tsx +936 -938
- package/templates/blocks/DD-IframeMedia/Component.tsx +14 -10
- package/templates/blocks/DD-MasonaryMedia/Component.tsx +8 -10
- package/templates/blocks/DD-Pricing/Component.tsx +369 -372
- package/templates/blocks/DD-Process/Component.tsx +147 -149
- package/templates/blocks/DD-Progress/Component.tsx +156 -141
- package/templates/blocks/DD-ProjSlider/config.ts +2 -2
- package/templates/blocks/DD-Section/Component.tsx +1 -1
- package/templates/blocks/DD-Services/Component.tsx +1 -1
- package/templates/blocks/DD-ShowcaseGrid/Component.tsx +13 -13
- package/templates/blocks/DD-Slider-A/Component.tsx +237 -237
- package/templates/blocks/DD-StackCards/Component.tsx +473 -473
- package/templates/blocks/DD-Team/Component.tsx +1 -1
- package/templates/blocks/DD-TechStack/Component.tsx +22 -28
- package/templates/blocks/DD-Testimonials/Component.tsx +35 -43
- package/templates/blocks/DD-TextMarq/Component.tsx +157 -157
- package/templates/blocks/DD-Thanks/Component.tsx +501 -500
- package/templates/blocks/DD-Work/Component.tsx +4 -4
- package/templates/blocks/DD-Work-B/Component.tsx +1 -1
- package/templates/blocks/DDHG-CTASection2/Component.tsx +6 -6
- package/templates/blocks/DDHG-HighlightArc/Component.tsx +243 -243
- package/templates/blocks/DDHG-LogoMarquee/Component.tsx +143 -93
- package/templates/blocks/DDHG-LogoMarquee/config.ts +154 -66
- package/templates/blocks/DDHG-NavCodeGrid/Component.tsx +227 -213
- package/templates/blocks/DDHG-ProcessSec/Component.tsx +38 -39
- package/templates/blocks/DDHG-ServiceDetails/Component.tsx +11 -11
- package/templates/blocks/DDHG-ServiceDetails/ServiceDetailCard.tsx +24 -28
- package/templates/blocks/DDHG-ServiceHero/Component.tsx +1 -1
- package/templates/blocks/DDHG-ServiceOverview/Component.tsx +23 -23
- package/templates/blocks/DDHG-StatsFAQ/Component.tsx +40 -40
- package/templates/blocks/DDHG-TeamCards/Component.tsx +169 -131
|
@@ -1,139 +1,140 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import React, { useRef, useState } from 'react'
|
|
3
|
-
import * as LucideIcons from 'lucide-react'
|
|
4
|
-
import { cn } from '@/utilities/ui'
|
|
5
|
-
export type DDCardTemplate01Props = Record<string, any>
|
|
6
|
-
|
|
7
|
-
// ─── SpotlightCard ────────────────────────────────────────────────────────────
|
|
8
|
-
interface SpotlightCardProps {
|
|
9
|
-
children: React.ReactNode
|
|
10
|
-
className?: string
|
|
11
|
-
spotlightColor?: string
|
|
12
|
-
enableTilt?: boolean
|
|
13
|
-
style?: React.CSSProperties
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function SpotlightCard({
|
|
17
|
-
children,
|
|
18
|
-
className,
|
|
19
|
-
spotlightColor = 'rgba(214,211,209,0.08)',
|
|
20
|
-
enableTilt = true,
|
|
21
|
-
style
|
|
22
|
-
}: SpotlightCardProps) {
|
|
23
|
-
const cardRef = useRef<HTMLDivElement>(null)
|
|
24
|
-
const [pos, setPos] = useState<{ x: number; y: number } | null>(null)
|
|
25
|
-
const [tilt, setTilt] = useState({ rx: 0, ry: 0 })
|
|
26
|
-
|
|
27
|
-
const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
|
|
28
|
-
if (!cardRef.current) return
|
|
29
|
-
const rect = cardRef.current.getBoundingClientRect()
|
|
30
|
-
const x = e.clientX - rect.left
|
|
31
|
-
const y = e.clientY - rect.top
|
|
32
|
-
setPos({ x, y })
|
|
33
|
-
if (enableTilt) {
|
|
34
|
-
const rx = (y / rect.height - 0.5) * -10
|
|
35
|
-
const ry = (x / rect.width - 0.5) * 10
|
|
36
|
-
setTilt({ rx, ry })
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const handleMouseLeave = () => {
|
|
41
|
-
setPos(null)
|
|
42
|
-
setTilt({ rx: 0, ry: 0 })
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<div
|
|
47
|
-
ref={cardRef}
|
|
48
|
-
className={cn('relative overflow-hidden', className)}
|
|
49
|
-
onMouseMove={handleMouseMove}
|
|
50
|
-
onMouseLeave={handleMouseLeave}
|
|
51
|
-
style={
|
|
52
|
-
enableTilt
|
|
53
|
-
? {
|
|
54
|
-
...style,
|
|
55
|
-
transform: `perspective(800px) rotateX(${tilt.rx}deg) rotateY(${tilt.ry}deg)`,
|
|
56
|
-
transition: 'transform 0.1s ease'
|
|
57
|
-
}
|
|
58
|
-
: style
|
|
59
|
-
}
|
|
60
|
-
>
|
|
61
|
-
{pos && (
|
|
62
|
-
<div
|
|
63
|
-
className="pointer-events-none absolute inset-0 z-0 transition-opacity duration-300"
|
|
64
|
-
style={{
|
|
65
|
-
background: `radial-gradient(400px circle at ${pos.x}px ${pos.y}px, ${spotlightColor}, transparent 60%)
|
|
66
|
-
}}
|
|
67
|
-
/>
|
|
68
|
-
)}
|
|
69
|
-
<div className="relative z-10">{children}</div>
|
|
70
|
-
</div>
|
|
71
|
-
)
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// ─── Dynamic Icon ─────────────────────────────────────────────────────────────
|
|
75
|
-
function DynamicIcon({
|
|
76
|
-
name,
|
|
77
|
-
...props
|
|
78
|
-
}: { name?: string | null } & Omit<LucideIcons.LucideProps, 'name'>) {
|
|
79
|
-
if (!name) return null
|
|
80
|
-
const Icon = (LucideIcons as unknown as Record<string, React.FC<LucideIcons.LucideProps>>)[name]
|
|
81
|
-
if (!Icon) return null
|
|
82
|
-
return <Icon {...props} />
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// ─── Component ────────────────────────────────────────────────────────────────
|
|
86
|
-
export const DDCardTemplate01: React.FC<DDCardTemplate01Props> = ({
|
|
87
|
-
eyebrow,
|
|
88
|
-
headline,
|
|
89
|
-
description,
|
|
90
|
-
iconName = 'ShieldCheck',
|
|
91
|
-
glowColor = 'rgba(214,211,209,0.08)',
|
|
92
|
-
enableTilt = true,
|
|
93
|
-
minHeight = '220px',
|
|
94
|
-
className,
|
|
95
|
-
sectionId,
|
|
96
|
-
customCSS
|
|
97
|
-
}) => {
|
|
98
|
-
return (
|
|
99
|
-
<div id={sectionId ?? undefined} className="spotlight-card overflow-clip py-8">
|
|
100
|
-
{customCSS && <style dangerouslySetInnerHTML={{ __html: customCSS }} />}
|
|
101
|
-
<SpotlightCard
|
|
102
|
-
spotlightColor={glowColor ?? undefined}
|
|
103
|
-
enableTilt={enableTilt ?? true}
|
|
104
|
-
className={cn(
|
|
105
|
-
'border border-stone-50 dark:border-stone-950 bg-stone-100 dark:bg-stone-900 hover:shadow-2xl transition-all hover:transition-all duration-900 hover:duration-900 flex flex-col justify-between p-6 max-w-[100rem] mx-auto',
|
|
106
|
-
className
|
|
107
|
-
)}
|
|
108
|
-
style={{ minHeight: minHeight ?? '220px' }}
|
|
109
|
-
>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
1
|
+
'use client'
|
|
2
|
+
import React, { useRef, useState } from 'react'
|
|
3
|
+
import * as LucideIcons from 'lucide-react'
|
|
4
|
+
import { cn } from '@/utilities/ui'
|
|
5
|
+
export type DDCardTemplate01Props = Record<string, any>
|
|
6
|
+
|
|
7
|
+
// ─── SpotlightCard ────────────────────────────────────────────────────────────
|
|
8
|
+
interface SpotlightCardProps {
|
|
9
|
+
children: React.ReactNode
|
|
10
|
+
className?: string
|
|
11
|
+
spotlightColor?: string
|
|
12
|
+
enableTilt?: boolean
|
|
13
|
+
style?: React.CSSProperties
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function SpotlightCard({
|
|
17
|
+
children,
|
|
18
|
+
className,
|
|
19
|
+
spotlightColor = 'rgba(214,211,209,0.08)',
|
|
20
|
+
enableTilt = true,
|
|
21
|
+
style,
|
|
22
|
+
}: SpotlightCardProps) {
|
|
23
|
+
const cardRef = useRef<HTMLDivElement>(null)
|
|
24
|
+
const [pos, setPos] = useState<{ x: number; y: number } | null>(null)
|
|
25
|
+
const [tilt, setTilt] = useState({ rx: 0, ry: 0 })
|
|
26
|
+
|
|
27
|
+
const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
|
|
28
|
+
if (!cardRef.current) return
|
|
29
|
+
const rect = cardRef.current.getBoundingClientRect()
|
|
30
|
+
const x = e.clientX - rect.left
|
|
31
|
+
const y = e.clientY - rect.top
|
|
32
|
+
setPos({ x, y })
|
|
33
|
+
if (enableTilt) {
|
|
34
|
+
const rx = (y / rect.height - 0.5) * -10
|
|
35
|
+
const ry = (x / rect.width - 0.5) * 10
|
|
36
|
+
setTilt({ rx, ry })
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const handleMouseLeave = () => {
|
|
41
|
+
setPos(null)
|
|
42
|
+
setTilt({ rx: 0, ry: 0 })
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<div
|
|
47
|
+
ref={cardRef}
|
|
48
|
+
className={cn('relative overflow-hidden', className)}
|
|
49
|
+
onMouseMove={handleMouseMove}
|
|
50
|
+
onMouseLeave={handleMouseLeave}
|
|
51
|
+
style={
|
|
52
|
+
enableTilt
|
|
53
|
+
? {
|
|
54
|
+
...style,
|
|
55
|
+
transform: `perspective(800px) rotateX(${tilt.rx}deg) rotateY(${tilt.ry}deg)`,
|
|
56
|
+
transition: 'transform 0.1s ease',
|
|
57
|
+
}
|
|
58
|
+
: style
|
|
59
|
+
}
|
|
60
|
+
>
|
|
61
|
+
{pos && (
|
|
62
|
+
<div
|
|
63
|
+
className="pointer-events-none absolute inset-0 z-0 transition-opacity duration-300"
|
|
64
|
+
style={{
|
|
65
|
+
background: `radial-gradient(400px circle at ${pos.x}px ${pos.y}px, ${spotlightColor}, transparent 60%)`,
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
)}
|
|
69
|
+
<div className="relative z-10">{children}</div>
|
|
70
|
+
</div>
|
|
71
|
+
)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// ─── Dynamic Icon ─────────────────────────────────────────────────────────────
|
|
75
|
+
function DynamicIcon({
|
|
76
|
+
name,
|
|
77
|
+
...props
|
|
78
|
+
}: { name?: string | null } & Omit<LucideIcons.LucideProps, 'name'>) {
|
|
79
|
+
if (!name) return null
|
|
80
|
+
const Icon = (LucideIcons as unknown as Record<string, React.FC<LucideIcons.LucideProps>>)[name]
|
|
81
|
+
if (!Icon) return null
|
|
82
|
+
return <Icon {...props} />
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// ─── Component ────────────────────────────────────────────────────────────────
|
|
86
|
+
export const DDCardTemplate01: React.FC<DDCardTemplate01Props> = ({
|
|
87
|
+
eyebrow,
|
|
88
|
+
headline,
|
|
89
|
+
description,
|
|
90
|
+
iconName = 'ShieldCheck',
|
|
91
|
+
glowColor = 'rgba(214,211,209,0.08)',
|
|
92
|
+
enableTilt = true,
|
|
93
|
+
minHeight = '220px',
|
|
94
|
+
className,
|
|
95
|
+
sectionId,
|
|
96
|
+
customCSS,
|
|
97
|
+
}) => {
|
|
98
|
+
return (
|
|
99
|
+
<div id={sectionId ?? undefined} className="spotlight-card overflow-clip py-8">
|
|
100
|
+
{customCSS && <style dangerouslySetInnerHTML={{ __html: customCSS }} />}
|
|
101
|
+
<SpotlightCard
|
|
102
|
+
spotlightColor={glowColor ?? undefined}
|
|
103
|
+
enableTilt={enableTilt ?? true}
|
|
104
|
+
className={cn(
|
|
105
|
+
'border border-stone-50 dark:border-stone-950 bg-stone-100 dark:bg-stone-900 hover:shadow-2xl transition-all hover:transition-all duration-900 hover:duration-900 flex flex-col justify-between p-6 max-w-[100rem] mx-auto',
|
|
106
|
+
className,
|
|
107
|
+
)}
|
|
108
|
+
style={{ minHeight: minHeight ?? '220px' }}
|
|
109
|
+
>
|
|
110
|
+
#BlockName-DDCardTemplate01
|
|
111
|
+
<div className="w-11 h-11 flex items-center justify-center rounded-xl border border-stone-300 text-stone-300 mb-6">
|
|
112
|
+
<DynamicIcon
|
|
113
|
+
className="text-stone-600 dark:text-stone-300"
|
|
114
|
+
name={iconName ?? 'ShieldCheck'}
|
|
115
|
+
size={20}
|
|
116
|
+
/>
|
|
117
|
+
</div>
|
|
118
|
+
<div>
|
|
119
|
+
{eyebrow && (
|
|
120
|
+
<p className="text-xs font-semibold text-stone-600 dark:text-stone-400 tracking-widest uppercase mb-2">
|
|
121
|
+
{eyebrow}
|
|
122
|
+
</p>
|
|
123
|
+
)}
|
|
124
|
+
{headline && (
|
|
125
|
+
<h3 className="text-2xl font-semibold text-stone-900 dark:text-stone-50 mb-3">
|
|
126
|
+
{headline}
|
|
127
|
+
</h3>
|
|
128
|
+
)}
|
|
129
|
+
{description && (
|
|
130
|
+
<p className="text-sm text-stone-600 dark:text-stone-400 leading-relaxed max-w-md">
|
|
131
|
+
{description}
|
|
132
|
+
</p>
|
|
133
|
+
)}
|
|
134
|
+
</div>
|
|
135
|
+
</SpotlightCard>
|
|
136
|
+
</div>
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export default DDCardTemplate01
|
|
@@ -89,7 +89,7 @@ export const DDCarouselA: React.FC<DDCarouselAProps> = ({
|
|
|
89
89
|
<section id={sectionId ?? undefined} className="py-20 overflow-hidden">
|
|
90
90
|
{customCSS && <style dangerouslySetInnerHTML={{ __html: customCSS }} />}
|
|
91
91
|
<div className="max-w-6xl lg:max-w-7xl mx-auto px-4 md:px-6">
|
|
92
|
-
{/* Header */}
|
|
92
|
+
{/* Header */}#BlockName-DDCarouselA
|
|
93
93
|
<div className="flex flex-col md:flex-row md:items-end justify-between mb-12 gap-4 px-0 md:px-4">
|
|
94
94
|
<div>
|
|
95
95
|
{eyebrow && (
|
|
@@ -319,7 +319,7 @@ export const DDCarouselB: React.FC<DDCarouselBProps> = ({
|
|
|
319
319
|
<section id={sectionId ?? undefined} className="py-20 overflow-hidden">
|
|
320
320
|
{customCSS && <style dangerouslySetInnerHTML={{ __html: customCSS }} />}
|
|
321
321
|
<div className="max-w-6xl lg:max-w-7xl mx-auto px-4 md:px-6">
|
|
322
|
-
{/* Header */}
|
|
322
|
+
{/* Header */}#BlockName-DDCarouselB
|
|
323
323
|
<div className="flex flex-col md:flex-row md:items-end justify-between mb-12 gap-4 px-0 md:px-4">
|
|
324
324
|
<div>
|
|
325
325
|
{eyebrow && (
|
|
@@ -47,21 +47,21 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
47
47
|
customClassName,
|
|
48
48
|
animate = false,
|
|
49
49
|
maxWidth,
|
|
50
|
-
padding = 'none'
|
|
50
|
+
padding = 'none',
|
|
51
51
|
}) => {
|
|
52
52
|
// Gap mappings
|
|
53
53
|
const gapClasses = {
|
|
54
54
|
none: 'gap-0',
|
|
55
55
|
small: 'gap-2',
|
|
56
56
|
medium: 'gap-3',
|
|
57
|
-
large: 'gap-4'
|
|
57
|
+
large: 'gap-4',
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
// Layout mappings
|
|
61
61
|
const layoutClasses = {
|
|
62
62
|
row: 'flex-row flex-nowrap overflow-x-auto',
|
|
63
63
|
column: 'flex-col',
|
|
64
|
-
'row-wrap': 'flex-row flex-wrap'
|
|
64
|
+
'row-wrap': 'flex-row flex-wrap',
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
// Alignment mappings
|
|
@@ -69,7 +69,7 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
69
69
|
start: 'justify-start',
|
|
70
70
|
center: 'justify-center',
|
|
71
71
|
end: 'justify-end',
|
|
72
|
-
'space-between': 'justify-between'
|
|
72
|
+
'space-between': 'justify-between',
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// Padding mappings
|
|
@@ -77,7 +77,7 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
77
77
|
none: '',
|
|
78
78
|
small: 'p-2',
|
|
79
79
|
medium: 'p-4',
|
|
80
|
-
large: 'p-6'
|
|
80
|
+
large: 'p-6',
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// Helper to determine if a color is a Tailwind class or CSS color
|
|
@@ -137,9 +137,9 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
137
137
|
visible: {
|
|
138
138
|
opacity: 1,
|
|
139
139
|
transition: {
|
|
140
|
-
staggerChildren: 0.1
|
|
141
|
-
}
|
|
142
|
-
}
|
|
140
|
+
staggerChildren: 0.1,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
const chipVariants: Variants = {
|
|
@@ -149,9 +149,9 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
149
149
|
y: 0,
|
|
150
150
|
transition: {
|
|
151
151
|
duration: 0.4,
|
|
152
|
-
ease: 'easeOut'
|
|
153
|
-
}
|
|
154
|
-
}
|
|
152
|
+
ease: 'easeOut',
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
const ChipElement = ({ chip, index }: { chip: Chip; index: number }): React.ReactElement => {
|
|
@@ -165,7 +165,7 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
165
165
|
<span className="relative z-10 mx-auto flex max-w-md items-center bg-gradient-to-r from-transparent via-white/80 via-50% to-transparent bg-clip-text bg-no-repeat text-neutral-400/70 [background-position:0_0] [background-size:var(--shiny-width)_100%] [--shiny-width:100px] select-none">
|
|
166
166
|
<span className="flex items-center text-white">
|
|
167
167
|
{/* {chip.icon && (
|
|
168
|
-
<span className="chip-icon mr-2 inline-flex h-3.5 w-3.5 items-center justify-center text-
|
|
168
|
+
<span className="chip-icon mr-2 inline-flex h-3.5 w-3.5 items-center justify-center text-xs leading-none">
|
|
169
169
|
{chip.icon}
|
|
170
170
|
</span>
|
|
171
171
|
)} */}
|
|
@@ -180,7 +180,7 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
180
180
|
'[&[href]]:cursor-pointer [&[href]]:no-underline',
|
|
181
181
|
hoverEffect &&
|
|
182
182
|
'hover:-translate-y-0.5 hover:shadow-[0_0_26px_rgba(186,85,211,0.35)] active:translate-y-0',
|
|
183
|
-
getChipClasses(chip)
|
|
183
|
+
getChipClasses(chip),
|
|
184
184
|
)
|
|
185
185
|
|
|
186
186
|
const chipElement = chip.link ? (
|
|
@@ -216,7 +216,7 @@ export const ChipBlockComponent: React.FC<ChipBlockProps> = ({
|
|
|
216
216
|
gapClasses[gap],
|
|
217
217
|
alignmentClasses[alignment],
|
|
218
218
|
paddingClasses[padding],
|
|
219
|
-
customClassName
|
|
219
|
+
customClassName,
|
|
220
220
|
)
|
|
221
221
|
|
|
222
222
|
if (animate) {
|
|
@@ -159,7 +159,7 @@ export function DDComparisonTable({
|
|
|
159
159
|
className="studio-comparison-table border-t border-stone-800 bg-transparent px-6 py-20"
|
|
160
160
|
>
|
|
161
161
|
<div className="mx-auto max-w-6xl">
|
|
162
|
-
|
|
162
|
+
#BlockName-DDComparisonTable
|
|
163
163
|
<button
|
|
164
164
|
type="button"
|
|
165
165
|
onClick={() => setOpen((current) => !current)}
|
|
@@ -121,7 +121,7 @@ export const DDContact: React.FC<DDContactProps> = ({
|
|
|
121
121
|
|
|
122
122
|
<div id={sectionId ?? 'contact'} className="py-24">
|
|
123
123
|
<div className="max-w-6xl lg:max-w-7xl mx-auto px-4 md:px-6">
|
|
124
|
-
|
|
124
|
+
#BlockName-DDContact
|
|
125
125
|
<div className="grid grid-cols-1 lg:grid-cols-2 gap-16 items-start">
|
|
126
126
|
<div>
|
|
127
127
|
{eyebrow && (
|
|
@@ -168,19 +168,19 @@ export const DDContact: React.FC<DDContactProps> = ({
|
|
|
168
168
|
|
|
169
169
|
{availabilityActive && (
|
|
170
170
|
<div
|
|
171
|
-
className="flex items-center gap-3 p-4 bg-indigo-
|
|
171
|
+
className="flex items-center gap-3 p-4 bg-indigo-50 dark:bg-indigo-950/80 border border-indigo-200 dark:border-indigo-500 shadow-sm dark:shadow-xl backdrop-blur-sm rounded-2xl pressable relative z-10 h-full w-full text-[32px] font-medium tracking-[.001em] transition-all duration-300"
|
|
172
172
|
style={{ cornerShape: 'squircle' } as React.CSSProperties}
|
|
173
173
|
>
|
|
174
174
|
<div className="w-3.5 h-3.5 rounded-full bg-lime-700 border-2 border-lime-500 animate-pulse shrink-0 shadow-2xl" />
|
|
175
175
|
<div>
|
|
176
176
|
{availabilityLabel && (
|
|
177
|
-
<div className="text-md font-semibold text-
|
|
177
|
+
<div className="text-md font-semibold text-indigo-900 dark:text-stone-50">
|
|
178
178
|
{availabilityLabel}
|
|
179
179
|
</div>
|
|
180
180
|
)}
|
|
181
181
|
|
|
182
182
|
{availabilitySubtext && (
|
|
183
|
-
<div className="text-xs font-normal! text-stone-300 pt-1">
|
|
183
|
+
<div className="text-xs font-normal! text-stone-600 dark:text-stone-300 pt-1">
|
|
184
184
|
{availabilitySubtext}
|
|
185
185
|
</div>
|
|
186
186
|
)}
|
|
@@ -200,14 +200,14 @@ export const DDContact: React.FC<DDContactProps> = ({
|
|
|
200
200
|
Message sent!
|
|
201
201
|
</h3>
|
|
202
202
|
|
|
203
|
-
<p className="text-sm text-stone-400 max-w-xs">
|
|
203
|
+
<p className="text-sm text-stone-600 dark:text-stone-400 max-w-xs">
|
|
204
204
|
Thanks for reaching out. We'll review your project details and get back to you
|
|
205
205
|
within one business day.
|
|
206
206
|
</p>
|
|
207
207
|
|
|
208
208
|
<button
|
|
209
209
|
onClick={() => setStatus('idle')}
|
|
210
|
-
className="mt-6 px-5 py-2.5 rounded-
|
|
210
|
+
className="mt-6 px-5 py-2.5 rounded-lg bg-stone-900 text-stone-50 dark:bg-stone-700 dark:text-stone-200 text-sm font-medium hover:bg-stone-800 dark:hover:bg-stone-600 transition-colors cursor-pointer"
|
|
211
211
|
>
|
|
212
212
|
Send another message
|
|
213
213
|
</button>
|
|
@@ -402,7 +402,7 @@ export const DDContact: React.FC<DDContactProps> = ({
|
|
|
402
402
|
<button
|
|
403
403
|
type="submit"
|
|
404
404
|
disabled={status === 'submitting' || charCount > 500}
|
|
405
|
-
className="glass-button-white group relative isolate flex w-full cursor-pointer items-center justify-center gap-2 overflow-hidden rounded-4xl! border border-
|
|
405
|
+
className="glass-button-white group relative isolate flex w-full cursor-pointer items-center justify-center gap-2 overflow-hidden rounded-4xl! border border-stone-300 dark:border-white bg-stone-950/90 dark:bg-stone-100/80 px-6 py-3 text-sm font-semibold text-stone-50 dark:text-stone-900 outline-offset-0 hover:bg-stone-900 dark:hover:bg-stone-100 hover:shadow-2xl hover:-translate-y-0.5 hover:outline-4 hover:outline-indigo-500 hover:-outline-offset-1 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-300"
|
|
406
406
|
style={{ cornerShape: 'squircle' } as React.CSSProperties}
|
|
407
407
|
>
|
|
408
408
|
<span className="relative z-2 flex items-center gap-2">
|
|
@@ -432,3 +432,4 @@ export const DDContact: React.FC<DDContactProps> = ({
|
|
|
432
432
|
</>
|
|
433
433
|
)
|
|
434
434
|
}
|
|
435
|
+
|
|
@@ -42,7 +42,7 @@ export const Counter: React.FC<CounterItem> = ({
|
|
|
42
42
|
prefix,
|
|
43
43
|
suffix,
|
|
44
44
|
prefixClass,
|
|
45
|
-
suffixClass
|
|
45
|
+
suffixClass,
|
|
46
46
|
}) => {
|
|
47
47
|
const ref = React.useRef<HTMLSpanElement>(null)
|
|
48
48
|
const inView = useInView(ref, { once: false })
|
|
@@ -66,7 +66,7 @@ export const Counter: React.FC<CounterItem> = ({
|
|
|
66
66
|
if (element && typeof value === 'number') {
|
|
67
67
|
element.textContent = value.toFixed(0)
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
70
|
})
|
|
71
71
|
|
|
72
72
|
return () => {
|
|
@@ -75,9 +75,9 @@ export const Counter: React.FC<CounterItem> = ({
|
|
|
75
75
|
}, [ref, inView, from, to, duration])
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
|
-
<div className="counter-wrapper flex items-center">
|
|
78
|
+
<div className="counter-wrapper flex items-center justify-center">
|
|
79
79
|
{prefix && (
|
|
80
|
-
<span className={prefixClass || 'text-xl font-bold sm:text-2xl md:text-
|
|
80
|
+
<span className={prefixClass || 'text-xl font-bold sm:text-2xl md:text-4xl'}>{prefix}</span>
|
|
81
81
|
)}
|
|
82
82
|
<span ref={ref} className={className || 'text-xl font-bold sm:text-2xl md:text-4xl'} />
|
|
83
83
|
{suffix && (
|
|
@@ -99,7 +99,7 @@ export const DDCounter: React.FC<CounterBlockProps> = ({
|
|
|
99
99
|
justifyContent = 'center',
|
|
100
100
|
alignItems = 'center',
|
|
101
101
|
gap = '6',
|
|
102
|
-
gridColumns = '2'
|
|
102
|
+
gridColumns = '2',
|
|
103
103
|
}) => {
|
|
104
104
|
// Generate layout classes based on configuration
|
|
105
105
|
const getLayoutClasses = () => {
|
|
@@ -117,7 +117,7 @@ export const DDCounter: React.FC<CounterBlockProps> = ({
|
|
|
117
117
|
row: 'flex-row',
|
|
118
118
|
column: 'flex-col',
|
|
119
119
|
'row-reverse': 'flex-row-reverse',
|
|
120
|
-
'column-reverse': 'flex-col-reverse'
|
|
120
|
+
'column-reverse': 'flex-col-reverse',
|
|
121
121
|
}
|
|
122
122
|
classes.push(flexDirMap[flexDirection])
|
|
123
123
|
|
|
@@ -131,7 +131,7 @@ export const DDCounter: React.FC<CounterBlockProps> = ({
|
|
|
131
131
|
end: 'justify-end',
|
|
132
132
|
between: 'justify-between',
|
|
133
133
|
around: 'justify-around',
|
|
134
|
-
evenly: 'justify-evenly'
|
|
134
|
+
evenly: 'justify-evenly',
|
|
135
135
|
}
|
|
136
136
|
classes.push(justifyMap[justifyContent])
|
|
137
137
|
|
|
@@ -141,7 +141,7 @@ export const DDCounter: React.FC<CounterBlockProps> = ({
|
|
|
141
141
|
start: 'items-start',
|
|
142
142
|
center: 'items-center',
|
|
143
143
|
end: 'items-end',
|
|
144
|
-
baseline: 'items-baseline'
|
|
144
|
+
baseline: 'items-baseline',
|
|
145
145
|
}
|
|
146
146
|
classes.push(alignMap[alignItems])
|
|
147
147
|
} else if (layoutType === 'grid') {
|
|
@@ -172,7 +172,7 @@ export const DDCounter: React.FC<CounterBlockProps> = ({
|
|
|
172
172
|
<RichText
|
|
173
173
|
data={counter.beforeCounter}
|
|
174
174
|
enableGutter={false}
|
|
175
|
-
className="
|
|
175
|
+
className="counter_label-before"
|
|
176
176
|
/>
|
|
177
177
|
|
|
178
178
|
<Counter {...counter} />
|
|
@@ -181,7 +181,7 @@ export const DDCounter: React.FC<CounterBlockProps> = ({
|
|
|
181
181
|
data={counter.label}
|
|
182
182
|
enableProse={false}
|
|
183
183
|
enableGutter={false}
|
|
184
|
-
className="
|
|
184
|
+
className="counter_label-after scale-80 origin-top"
|
|
185
185
|
/>
|
|
186
186
|
</div>
|
|
187
187
|
))}
|
|
@@ -156,7 +156,7 @@ export const DDFeatCat: React.FC<DDFeatCatProps> = ({
|
|
|
156
156
|
|
|
157
157
|
<div id={sectionId} className="py-24">
|
|
158
158
|
<div className="max-w-6xl lg:max-w-7xl mx-auto px-4 md:px-6">
|
|
159
|
-
{/* Header */}
|
|
159
|
+
{/* Header */}#BlockName-DDFeatCat
|
|
160
160
|
<motion.div
|
|
161
161
|
variants={containerVariants}
|
|
162
162
|
initial="hidden"
|
|
@@ -553,7 +553,7 @@ export const DDFeatStrip: React.FC<DDFeatStripProps> = ({
|
|
|
553
553
|
{customCSS && <style dangerouslySetInnerHTML={{ __html: customCSS }} />}
|
|
554
554
|
|
|
555
555
|
<div id={sectionId ?? undefined} className="py-24">
|
|
556
|
-
|
|
556
|
+
#BlockName-DDFeatStrip
|
|
557
557
|
<div
|
|
558
558
|
className={`w-full bg-stone-100 dark:bg-stone-950 border-t border-b border-white/6 ${containerClass || ''}`}
|
|
559
559
|
>
|