love-ui 1.2.22 → 1.2.23

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.
Files changed (68) hide show
  1. package/dist/{chunk-L7XDZOUL.js → chunk-CH2CHRA7.js} +1 -1
  2. package/dist/index.js +4 -4
  3. package/dist/mcp-server.js +1 -1
  4. package/package.json +1 -1
  5. package/registry/default/blocks/404-2/components/not-found.tsx +1 -1
  6. package/registry/default/blocks/auth1/components/auth-page.tsx +0 -7
  7. package/registry/default/blocks/auth1/components/logo.tsx +3 -14
  8. package/registry/default/blocks/auth2/components/auth.tsx +1 -1
  9. package/registry/default/blocks/auth2/components/ui/decor-icon.tsx +49 -36
  10. package/registry/default/blocks/auth3/components/logo.tsx +3 -14
  11. package/registry/default/blocks/auth3/components/ui/decor-icon.tsx +49 -36
  12. package/registry/default/blocks/contact5/components/decor-icon.tsx +49 -36
  13. package/registry/default/blocks/cta-3/components/cta.tsx +1 -1
  14. package/registry/default/blocks/cta-3/components/decor-icon.tsx +49 -36
  15. package/registry/default/blocks/cta-5/components/cta.tsx +3 -9
  16. package/registry/default/blocks/faq-3/components/decor-icon.tsx +49 -36
  17. package/registry/default/blocks/features1/components/feature-section.tsx +1 -1
  18. package/registry/default/blocks/features2/components/decor-icon.tsx +49 -36
  19. package/registry/default/blocks/features2/components/feature-section.tsx +1 -1
  20. package/registry/default/blocks/features4/components/decor-icon.tsx +49 -36
  21. package/registry/default/blocks/features4/components/feature-section.tsx +0 -2
  22. package/registry/default/blocks/features5/components/feature-section.tsx +1 -1
  23. package/registry/default/blocks/features6/components/feature-section.tsx +5 -21
  24. package/registry/default/blocks/footer1/components/logo.tsx +3 -14
  25. package/registry/default/blocks/footer2/components/footer.tsx +1 -1
  26. package/registry/default/blocks/footer2/components/logo.tsx +3 -14
  27. package/registry/default/blocks/footer3/components/footer.tsx +2 -2
  28. package/registry/default/blocks/footer3/components/logo.tsx +3 -14
  29. package/registry/default/blocks/footer4/components/footer.tsx +1 -1
  30. package/registry/default/blocks/footer4/components/logo.tsx +3 -14
  31. package/registry/default/blocks/footer5/components/footer.tsx +27 -30
  32. package/registry/default/blocks/footer5/components/logo.tsx +3 -14
  33. package/registry/default/blocks/footer6/components/footer.tsx +3 -3
  34. package/registry/default/blocks/footer6/components/logo.tsx +3 -14
  35. package/registry/default/blocks/header1/components/logo.tsx +3 -14
  36. package/registry/default/blocks/header2/components/logo.tsx +3 -14
  37. package/registry/default/blocks/header3/components/logo.tsx +3 -14
  38. package/registry/default/blocks/hero1/components/hero.tsx +7 -7
  39. package/registry/default/blocks/hero1/components/logo.tsx +3 -14
  40. package/registry/default/blocks/hero2/components/decor-icon.tsx +49 -36
  41. package/registry/default/blocks/hero2/components/hero.tsx +4 -5
  42. package/registry/default/blocks/hero2/components/logo.tsx +3 -14
  43. package/registry/default/blocks/hero3/components/hero.tsx +2 -3
  44. package/registry/default/blocks/hero3/components/logo.tsx +3 -14
  45. package/registry/default/blocks/integrations1/components/integrations.tsx +7 -1
  46. package/registry/default/blocks/integrations2/components/decor-icon.tsx +49 -36
  47. package/registry/default/blocks/integrations2/components/integrations.tsx +7 -1
  48. package/registry/default/blocks/integrations3/components/integrations.tsx +25 -34
  49. package/registry/default/blocks/integrations4/components/integrations.tsx +2 -5
  50. package/registry/default/blocks/integrations5/components/integrations.tsx +8 -5
  51. package/registry/default/blocks/logo-cloud-2/components/decor-icon.tsx +49 -36
  52. package/registry/default/blocks/logo-cloud-3/app/page.tsx +2 -2
  53. package/registry/default/blocks/logo-cloud-3/components/logo-cloud.tsx +1 -1
  54. package/registry/default/blocks/logo-cloud-4/components/logo-cloud.tsx +1 -1
  55. package/registry/default/blocks/logo-cloud-4/components/progressive-blur.tsx +30 -36
  56. package/registry/default/blocks/pricing1/components/decor-icon.tsx +49 -36
  57. package/registry/default/blocks/stats10/components/stats.tsx +1 -9
  58. package/registry/default/blocks/testimonials1/components/logo.tsx +3 -14
  59. package/registry/default/blocks/testimonials1/components/testimonials.tsx +1 -1
  60. package/registry/default/blocks/testimonials2/components/testimonials.tsx +3 -3
  61. package/registry/default/blocks/testimonials3/components/decor-icon.tsx +49 -36
  62. package/registry/default/blocks/testimonials3/components/testimonials.tsx +0 -1
  63. package/registry/default/blocks/testimonials5/components/testimonials.tsx +1 -1
  64. package/registry/default/blocks/testimonials6/components/testimonials.tsx +1 -1
  65. package/registry/default/examples/preview-card-profile.tsx +3 -3
  66. package/registry/default/ui/button.tsx +1 -1
  67. package/registry/default/ui/toggle.tsx +2 -1
  68. package/registry/default/blocks/auth1/components/particles.tsx +0 -321
@@ -16,14 +16,13 @@ export function HeroSection() {
16
16
  <div
17
17
  className={cn(
18
18
  "absolute -inset-x-20 inset-y-0 z-0 rounded-full",
19
- "bg-[radial-gradient(ellipse_at_center,theme(--color-foreground/.1),transparent,transparent)]",
20
19
  "blur-[50px]"
21
20
  )}
22
21
  />
23
- <div className="absolute inset-y-0 left-4 w-px bg-linear-to-b from-transparent via-border to-border md:left-8" />
24
- <div className="absolute inset-y-0 right-4 w-px bg-linear-to-b from-transparent via-border to-border md:right-8" />
25
- <div className="absolute inset-y-0 left-8 w-px bg-linear-to-b from-transparent via-border/50 to-border/50 md:left-12" />
26
- <div className="absolute inset-y-0 right-8 w-px bg-linear-to-b from-transparent via-border/50 to-border/50 md:right-12" />
22
+ <div className="absolute inset-y-0 left-4 w-px bg-border md:left-8" />
23
+ <div className="absolute inset-y-0 right-4 w-px bg-border md:right-8" />
24
+ <div className="absolute inset-y-0 left-8 w-px bg-border/50 md:left-12" />
25
+ <div className="absolute inset-y-0 right-8 w-px bg-border/50 md:right-12" />
27
26
  </div>
28
27
  <a
29
28
  className={cn(
@@ -7,18 +7,7 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
7
7
  xmlns="http://www.w3.org/2000/svg"
8
8
  {...props}
9
9
  >
10
- <defs>
11
- <linearGradient id="loveui-blue" x1="0" y1="0" x2="48" y2="48">
12
- <stop stopColor="#38A3FF" />
13
- <stop offset="0.55" stopColor="#1266F1" />
14
- <stop offset="1" stopColor="#0B3FD8" />
15
- </linearGradient>
16
-
17
- <linearGradient id="loveui-shine" x1="0" y1="0" x2="1" y2="1">
18
- <stop stopColor="#FFFFFF" stopOpacity="0.9" />
19
- <stop offset="1" stopColor="#BBD8FF" stopOpacity="0.4" />
20
- </linearGradient>
21
- </defs>
10
+
22
11
 
23
12
  <g transform="translate(0 0)">
24
13
  <rect
@@ -27,7 +16,7 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
27
16
  width="48"
28
17
  height="48"
29
18
  rx="12"
30
- fill="url(#loveui-blue)"
19
+ fill="#1266F1"
31
20
  />
32
21
 
33
22
  <path
@@ -70,7 +59,7 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
70
59
  H18
71
60
  C19.7 29 21 27.7 21 25
72
61
  Z"
73
- fill="url(#loveui-shine)"
62
+ fill="#BBD8FF"
74
63
  opacity="0.5"
75
64
  />
76
65
  </g>
@@ -13,7 +13,7 @@ export function HeroSection() {
13
13
  <div
14
14
  className={cn(
15
15
  "absolute inset-0 isolate -z-10",
16
- "bg-[radial-gradient(20%_80%_at_20%_0%,--theme(--color-foreground/.1),transparent)]"
16
+ ""
17
17
  )}
18
18
  />
19
19
  </div>
@@ -71,13 +71,12 @@ export function HeroSection() {
71
71
  <div
72
72
  className={cn(
73
73
  "absolute -inset-x-20 inset-y-0 -translate-y-1/3 scale-120 rounded-full",
74
- "bg-[radial-gradient(ellipse_at_center,theme(--color-foreground/.1),transparent,transparent)]",
75
74
  "blur-[50px]"
76
75
  )}
77
76
  />
78
77
  <div
79
78
  className={cn(
80
- "mask-b-from-60% relative mt-8 -mr-56 overflow-hidden px-2 sm:mt-12 sm:mr-0 md:mt-20",
79
+ " relative mt-8 -mr-56 overflow-hidden px-2 sm:mt-12 sm:mr-0 md:mt-20",
81
80
  "fade-in slide-in-from-bottom-5 animate-in fill-mode-backwards delay-100 duration-1000 ease-out"
82
81
  )}
83
82
  >
@@ -7,18 +7,7 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
7
7
  xmlns="http://www.w3.org/2000/svg"
8
8
  {...props}
9
9
  >
10
- <defs>
11
- <linearGradient id="loveui-blue" x1="0" y1="0" x2="48" y2="48">
12
- <stop stopColor="#38A3FF" />
13
- <stop offset="0.55" stopColor="#1266F1" />
14
- <stop offset="1" stopColor="#0B3FD8" />
15
- </linearGradient>
16
-
17
- <linearGradient id="loveui-shine" x1="0" y1="0" x2="1" y2="1">
18
- <stop stopColor="#FFFFFF" stopOpacity="0.9" />
19
- <stop offset="1" stopColor="#BBD8FF" stopOpacity="0.4" />
20
- </linearGradient>
21
- </defs>
10
+
22
11
 
23
12
  <g transform="translate(0 0)">
24
13
  <rect
@@ -27,7 +16,7 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
27
16
  width="48"
28
17
  height="48"
29
18
  rx="12"
30
- fill="url(#loveui-blue)"
19
+ fill="#1266F1"
31
20
  />
32
21
 
33
22
  <path
@@ -70,7 +59,7 @@ export const Logo = (props: React.ComponentProps<"svg">) => (
70
59
  H18
71
60
  C19.7 29 21 27.7 21 25
72
61
  Z"
73
- fill="url(#loveui-shine)"
62
+ fill="#BBD8FF"
74
63
  opacity="0.5"
75
64
  />
76
65
  </g>
@@ -17,6 +17,7 @@ type Integration = {
17
17
  name: string;
18
18
  description: string;
19
19
  isInvertable?: boolean;
20
+ logoClassName?: string;
20
21
  };
21
22
 
22
23
  const data: Integration[] = [
@@ -44,6 +45,7 @@ const data: Integration[] = [
44
45
  name: "Notion",
45
46
  description:
46
47
  "Document component decisions, block usage, and product patterns.",
48
+ logoClassName: "text-black",
47
49
  },
48
50
  ];
49
51
 
@@ -97,7 +99,11 @@ function LogoAsset({
97
99
  return (
98
100
  <Component
99
101
  aria-label={integration.name}
100
- className={cn(className, integration.isInvertable && "dark:invert")}
102
+ className={cn(
103
+ className,
104
+ integration.isInvertable && "text-foreground",
105
+ integration.logoClassName
106
+ )}
101
107
  role="img"
102
108
  />
103
109
  );
@@ -2,44 +2,57 @@ import { cn } from "@/lib/utils";
2
2
  import { cva, type VariantProps } from "class-variance-authority";
3
3
 
4
4
  const DecorIconVariants = cva(
5
- "pointer-events-none absolute z-1 size-5 shrink-0 stroke-1 stroke-muted-foreground",
6
- {
7
- variants: {
8
- position: {
9
- "top-left":
10
- "top-0 left-0 -translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
11
- "top-right":
12
- "top-0 right-0 translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
13
- "bottom-right":
14
- "right-0 bottom-0 translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
15
- "bottom-left":
16
- "bottom-0 left-0 -translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
17
- },
18
- },
19
- defaultVariants: {
20
- position: "top-left",
21
- },
22
- }
5
+ "pointer-events-none absolute z-1 size-4 shrink-0 stroke-1 stroke-muted-foreground transition-transform",
6
+ {
7
+ variants: {
8
+ position: {
9
+ // We also rotate the SVG inside the variant so the bracket always points inward
10
+ "top-left":
11
+ "top-0 left-0 -translate-x-1/2 -translate-y-1/2",
12
+ "top-right":
13
+ "top-0 right-0 translate-x-1/2 -translate-y-1/2 rotate-90",
14
+ "bottom-right":
15
+ "right-0 bottom-0 translate-x-1/2 translate-y-1/2 rotate-180",
16
+ "bottom-left":
17
+ "bottom-0 left-0 -translate-x-1/2 translate-y-1/2 -rotate-90",
18
+ },
19
+ },
20
+ defaultVariants: {
21
+ position: "top-left",
22
+ },
23
+ }
23
24
  );
24
25
 
25
26
  type DecorIconProps = React.ComponentProps<"svg"> &
26
- VariantProps<typeof DecorIconVariants>;
27
+ VariantProps<typeof DecorIconVariants> & {
28
+ variant?: "bracket" | "dot" | "diagonal";
29
+ };
27
30
 
28
- export function DecorIcon({ position, className, ...props }: DecorIconProps) {
29
- return (
30
- <svg
31
- aria-hidden="true"
32
- className={cn(DecorIconVariants({ position, className }))}
33
- fill="none"
34
- stroke="currentColor"
35
- strokeLinecap="round"
36
- strokeLinejoin="round"
37
- viewBox="0 0 24 24"
38
- xmlns="http://www.w3.org/2000/svg"
39
- {...props}
40
- >
41
- <path d="M5 12h14" />
42
- <path d="M12 5v14" />
43
- </svg>
44
- );
31
+ export function DecorIcon({ position, variant = "bracket", className, ...props }: DecorIconProps) {
32
+ return (
33
+ <svg
34
+ aria-hidden="true"
35
+ className={cn(DecorIconVariants({ position, className }))}
36
+ fill="none"
37
+ stroke="currentColor"
38
+ viewBox="0 0 24 24"
39
+ xmlns="http://www.w3.org/2000/svg"
40
+ {...props}
41
+ >
42
+ {/* OPTION 1: Corner Bracket (Default) */}
43
+ {variant === "bracket" && (
44
+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 4H4v8" />
45
+ )}
46
+
47
+ {/* OPTION 2: Minimalist Dot (Change fill to currentColor in class if using this) */}
48
+ {variant === "dot" && (
49
+ <circle cx="12" cy="12" r="3" fill="currentColor" />
50
+ )}
51
+
52
+ {/* OPTION 3: Diagonal Accent Line */}
53
+ {variant === "diagonal" && (
54
+ <path strokeLinecap="round" d="M4 20L20 4" />
55
+ )}
56
+ </svg>
57
+ );
45
58
  }
@@ -18,6 +18,7 @@ type Integration = {
18
18
  name: string;
19
19
  description: string;
20
20
  isInvertable?: boolean;
21
+ logoClassName?: string;
21
22
  icon?: React.ReactNode;
22
23
  };
23
24
 
@@ -53,6 +54,7 @@ const data: Integration[] = [
53
54
  Component: NotionLogo,
54
55
  name: "Notion",
55
56
  description: "Track component decisions, block adoption, and design system notes.",
57
+ logoClassName: "text-black",
56
58
  },
57
59
  {
58
60
  Component: GmailLogo,
@@ -121,7 +123,11 @@ function LogoAsset({
121
123
  return (
122
124
  <Component
123
125
  aria-label={integration.name}
124
- className={cn(className, integration.isInvertable && "dark:invert")}
126
+ className={cn(
127
+ className,
128
+ integration.isInvertable && "text-foreground",
129
+ integration.logoClassName
130
+ )}
125
131
  role="img"
126
132
  />
127
133
  );
@@ -19,7 +19,7 @@ type LogoType = {
19
19
  alt: string;
20
20
  isInvertable?: boolean;
21
21
  };
22
- type TileData = { row: number; col: number; logo?: LogoType };
22
+ type TileData = { x: number; y: number; logo: LogoType };
23
23
 
24
24
  export function Integrations() {
25
25
  return (
@@ -37,19 +37,11 @@ export function Integrations() {
37
37
  <Button size="sm">Explore LoveUI integrations</Button>
38
38
  </div>
39
39
  </div>
40
- <div className="place-items-end">
41
- <div className="relative size-80">
42
- <div
43
- className={cn(
44
- "absolute inset-0 size-full",
45
- "bg-[linear-gradient(to_right,theme(--color-border)_1px,transparent_1px),linear-gradient(to_bottom,theme(--color-border)_1px,transparent_1px)]",
46
- "bg-size-[64px_64px]",
47
- "mask-[radial-gradient(ellipse_at_center,black,black,transparent)]"
48
- )}
49
- />
40
+ <div className="place-items-center px-8 py-12">
41
+ <div className="relative h-52 w-full">
50
42
  {tiles.map((tile) => (
51
43
  <IntegrationCard
52
- key={String(tile.row) + "_" + String(tile.col)}
44
+ key={String(tile.x) + "_" + String(tile.y)}
53
45
  {...tile}
54
46
  />
55
47
  ))}
@@ -60,14 +52,17 @@ export function Integrations() {
60
52
  );
61
53
  }
62
54
 
63
- function IntegrationCard({ row, col, logo }: TileData) {
55
+ function IntegrationCard({ x, y, logo }: TileData) {
64
56
  return (
65
57
  <div
66
58
  className={cn(
67
- "absolute flex size-16 items-center justify-center",
68
- logo ? "bg-secondary/40" : ""
59
+ "absolute z-10 flex size-14 items-center justify-center rounded-md border",
60
+ logo ? "bg-card shadow-xs" : ""
69
61
  )}
70
- style={{ left: col * 64, top: row * 64 }}
62
+ style={{
63
+ left: `calc(${x}% - 1.75rem)`,
64
+ top: `calc(${y}% - 1.75rem)`,
65
+ }}
71
66
  >
72
67
  {logo && (
73
68
  <LogoAsset
@@ -91,7 +86,7 @@ function LogoAsset({
91
86
  return (
92
87
  <Component
93
88
  aria-label={logo.alt}
94
- className={cn(className, logo.isInvertable && "dark:invert")}
89
+ className={cn(className, logo.isInvertable && "text-foreground")}
95
90
  role="img"
96
91
  />
97
92
  );
@@ -99,39 +94,35 @@ function LogoAsset({
99
94
 
100
95
  const tiles: TileData[] = [
101
96
  {
102
- row: 0,
103
- col: 1,
97
+ x: 14,
98
+ y: 22,
104
99
  logo: { Component: VercelLogo, alt: "Vercel Logo", isInvertable: true },
105
100
  },
106
101
  {
107
- row: 0,
108
- col: 3,
102
+ x: 60,
103
+ y: 22,
109
104
  logo: { Component: CursorLogo, alt: "Cursor Logo", isInvertable: true },
110
105
  },
111
- { row: 1, col: 0 },
112
- { row: 1, col: 2, logo: { Component: NeonLogo, alt: "Neon Logo" } },
113
- { row: 1, col: 4, logo: { Component: GmailLogo, alt: "Gmail Logo" } },
106
+ { x: 36, y: 42, logo: { Component: NeonLogo, alt: "Neon Logo" } },
107
+ { x: 84, y: 42, logo: { Component: GmailLogo, alt: "Gmail Logo" } },
114
108
  {
115
- row: 2,
116
- col: 1,
109
+ x: 14,
110
+ y: 64,
117
111
  logo: {
118
112
  Component: PlanetscaleLogo,
119
113
  alt: "Planetscale Logo",
120
114
  isInvertable: true,
121
115
  },
122
116
  },
123
- { row: 2, col: 3 },
124
- { row: 3, col: 0 },
125
- { row: 3, col: 2, logo: { Component: PolarLogo, alt: "Polar Logo" } },
117
+ { x: 36, y: 84, logo: { Component: PolarLogo, alt: "Polar Logo" } },
126
118
  {
127
- row: 3,
128
- col: 4,
119
+ x: 84,
120
+ y: 82,
129
121
  logo: { Component: VercelLogo, alt: "Vercel Logo", isInvertable: true },
130
122
  },
131
- { row: 4, col: 1, logo: { Component: NeonLogo, alt: "Neon Logo" } },
132
123
  {
133
- row: 4,
134
- col: 3,
124
+ x: 60,
125
+ y: 64,
135
126
  logo: { Component: CursorLogo, alt: "Cursor Logo", isInvertable: true },
136
127
  },
137
128
  ];
@@ -32,7 +32,7 @@ export function Integrations() {
32
32
  </p>
33
33
  </div>
34
34
  <div className="place-items-end">
35
- <div className="mask-[radial-gradient(ellipse_at_center,black,black,transparent)] relative size-90">
35
+ <div className=" relative size-90">
36
36
  {tiles.map((tile) => (
37
37
  <IntegrationCard
38
38
  key={String(tile.row) + "_" + String(tile.col)}
@@ -76,7 +76,7 @@ function LogoAsset({
76
76
  return (
77
77
  <Component
78
78
  aria-label={logo.alt}
79
- className={cn(className, logo.isInvertable && "dark:invert")}
79
+ className={cn(className, logo.isInvertable && "text-foreground")}
80
80
  role="img"
81
81
  />
82
82
  );
@@ -93,7 +93,6 @@ const tiles: TileData[] = [
93
93
  col: 3,
94
94
  logo: { Component: CursorLogo, alt: "Cursor Logo", isInvertable: true },
95
95
  },
96
- { row: 1, col: 0 },
97
96
  { row: 1, col: 2, logo: { Component: NeonLogo, alt: "Neon Logo" } },
98
97
  { row: 1, col: 4, logo: { Component: GmailLogo, alt: "Gmail Logo" } },
99
98
  {
@@ -105,8 +104,6 @@ const tiles: TileData[] = [
105
104
  isInvertable: true,
106
105
  },
107
106
  },
108
- { row: 2, col: 3 },
109
- { row: 3, col: 0 },
110
107
  { row: 3, col: 2, logo: { Component: PolarLogo, alt: "Polar Logo" } },
111
108
  {
112
109
  row: 3,
@@ -19,18 +19,17 @@ type Integration = {
19
19
  Component?: LogoComponent;
20
20
  name: string;
21
21
  isInvertable?: boolean;
22
+ logoClassName?: string;
22
23
  };
23
24
  const data: Integration[] = [
24
- { name: "Empty 1" },
25
25
  { name: "Vercel", Component: VercelLogo, isInvertable: true },
26
26
  { name: "Cursor", Component: CursorLogo, isInvertable: true },
27
27
  { name: "Neon", Component: NeonLogo },
28
28
  { name: "PlanetScale", Component: PlanetscaleLogo, isInvertable: true },
29
- { name: "Notion", Component: NotionLogo },
29
+ { name: "Notion", Component: NotionLogo, logoClassName: "text-black" },
30
30
  { name: "Gmail", Component: GmailLogo },
31
31
  { name: "Polar", Component: PolarLogo },
32
32
  { name: "Cursor", Component: CursorLogo, isInvertable: true },
33
- { name: "Empty 2" },
34
33
  ];
35
34
 
36
35
  export function Integrations() {
@@ -45,7 +44,7 @@ export function Integrations() {
45
44
  </p>
46
45
  </div>
47
46
  <div className="flex flex-col justify-center rounded-full border bg-secondary dark:bg-secondary/10">
48
- <div className="mask-l-from-90 mask-r-from-90 flex items-center justify-center -space-x-4 p-1">
47
+ <div className=" flex items-center justify-center -space-x-2 p-1">
49
48
  {data.map((item, index) => (
50
49
  <div
51
50
  className={cn(
@@ -88,7 +87,11 @@ function LogoAsset({
88
87
  return (
89
88
  <Component
90
89
  aria-label={integration.name}
91
- className={cn(className, integration.isInvertable && "dark:invert")}
90
+ className={cn(
91
+ className,
92
+ integration.isInvertable && "text-foreground",
93
+ integration.logoClassName
94
+ )}
92
95
  role="img"
93
96
  />
94
97
  );
@@ -2,44 +2,57 @@ import { cn } from "@/lib/utils";
2
2
  import { cva, type VariantProps } from "class-variance-authority";
3
3
 
4
4
  const DecorIconVariants = cva(
5
- "pointer-events-none absolute z-1 size-5 shrink-0 stroke-1 stroke-muted-foreground",
6
- {
7
- variants: {
8
- position: {
9
- "top-left":
10
- "top-0 left-0 -translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
11
- "top-right":
12
- "top-0 right-0 translate-x-[calc(50%+0.5px)] -translate-y-[calc(50%+0.5px)]",
13
- "bottom-right":
14
- "right-0 bottom-0 translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
15
- "bottom-left":
16
- "bottom-0 left-0 -translate-x-[calc(50%+0.5px)] translate-y-[calc(50%+0.5px)]",
17
- },
18
- },
19
- defaultVariants: {
20
- position: "top-left",
21
- },
22
- }
5
+ "pointer-events-none absolute z-1 size-4 shrink-0 stroke-1 stroke-muted-foreground transition-transform",
6
+ {
7
+ variants: {
8
+ position: {
9
+ // We also rotate the SVG inside the variant so the bracket always points inward
10
+ "top-left":
11
+ "top-0 left-0 -translate-x-1/2 -translate-y-1/2",
12
+ "top-right":
13
+ "top-0 right-0 translate-x-1/2 -translate-y-1/2 rotate-90",
14
+ "bottom-right":
15
+ "right-0 bottom-0 translate-x-1/2 translate-y-1/2 rotate-180",
16
+ "bottom-left":
17
+ "bottom-0 left-0 -translate-x-1/2 translate-y-1/2 -rotate-90",
18
+ },
19
+ },
20
+ defaultVariants: {
21
+ position: "top-left",
22
+ },
23
+ }
23
24
  );
24
25
 
25
26
  type DecorIconProps = React.ComponentProps<"svg"> &
26
- VariantProps<typeof DecorIconVariants>;
27
+ VariantProps<typeof DecorIconVariants> & {
28
+ variant?: "bracket" | "dot" | "diagonal";
29
+ };
27
30
 
28
- export function DecorIcon({ position, className, ...props }: DecorIconProps) {
29
- return (
30
- <svg
31
- aria-hidden="true"
32
- className={cn(DecorIconVariants({ position, className }))}
33
- fill="none"
34
- stroke="currentColor"
35
- strokeLinecap="round"
36
- strokeLinejoin="round"
37
- viewBox="0 0 24 24"
38
- xmlns="http://www.w3.org/2000/svg"
39
- {...props}
40
- >
41
- <path d="M5 12h14" />
42
- <path d="M12 5v14" />
43
- </svg>
44
- );
31
+ export function DecorIcon({ position, variant = "bracket", className, ...props }: DecorIconProps) {
32
+ return (
33
+ <svg
34
+ aria-hidden="true"
35
+ className={cn(DecorIconVariants({ position, className }))}
36
+ fill="none"
37
+ stroke="currentColor"
38
+ viewBox="0 0 24 24"
39
+ xmlns="http://www.w3.org/2000/svg"
40
+ {...props}
41
+ >
42
+ {/* OPTION 1: Corner Bracket (Default) */}
43
+ {variant === "bracket" && (
44
+ <path strokeLinecap="round" strokeLinejoin="round" d="M12 4H4v8" />
45
+ )}
46
+
47
+ {/* OPTION 2: Minimalist Dot (Change fill to currentColor in class if using this) */}
48
+ {variant === "dot" && (
49
+ <circle cx="12" cy="12" r="3" fill="currentColor" />
50
+ )}
51
+
52
+ {/* OPTION 3: Diagonal Accent Line */}
53
+ {variant === "diagonal" && (
54
+ <path strokeLinecap="round" d="M4 20L20 4" />
55
+ )}
56
+ </svg>
57
+ );
45
58
  }
@@ -9,9 +9,9 @@ export default function Page() {
9
9
  <br />
10
10
  <span className="font-semibold">Used by the leaders.</span>
11
11
  </h2>
12
- <div className="mask-[linear-gradient(to_right,transparent,black,transparent)] mx-auto my-5 h-px max-w-sm bg-border" />
12
+ <div className=" mx-auto my-5 h-px max-w-sm bg-border" />
13
13
  <LogoCloud />
14
- <div className="mask-[linear-gradient(to_right,transparent,black,transparent)] mt-5 h-px bg-border" />
14
+ <div className=" mt-5 h-px bg-border" />
15
15
  </section>
16
16
  </div>
17
17
  );
@@ -39,7 +39,7 @@ const logos: Logo[] = [
39
39
 
40
40
  export function LogoCloud() {
41
41
  return (
42
- <div className="mask-[linear-gradient(to_right,transparent,black,transparent)] overflow-hidden py-5">
42
+ <div className=" overflow-hidden py-5">
43
43
  <InfiniteSlider gap={56} reverse speed={80} speedOnHover={25}>
44
44
  {logos.map((logo) => (
45
45
  <LogoAsset
@@ -42,7 +42,7 @@ const logos: Logo[] = [
42
42
 
43
43
  export function LogoCloud() {
44
44
  return (
45
- <div className="relative border-x border-y bg-linear-to-r from-secondary via-transparent to-secondary py-7">
45
+ <div className="relative overflow-hidden py-7">
46
46
  <InfiniteSlider gap={56} reverse speed={60} speedOnHover={20}>
47
47
  {logos.map((logo) => (
48
48
  <LogoAsset