@oalacea/chaosui 0.1.0 → 0.5.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.
Files changed (139) hide show
  1. package/bin/cli.js +105 -13
  2. package/components/backgrounds/glow-orbs/index.tsx +1 -1
  3. package/components/buttons/chaos-button/chaos-button.module.css +3 -2
  4. package/components/buttons/cta-brutal/cta-brutal.module.css +81 -0
  5. package/components/buttons/cta-brutal/index.tsx +56 -0
  6. package/components/buttons/dead-button/dead-button.module.css +111 -0
  7. package/components/buttons/dead-button/index.tsx +47 -0
  8. package/components/buttons/deeper-button/deeper-button.module.css +76 -0
  9. package/components/buttons/deeper-button/index.tsx +51 -0
  10. package/components/buttons/dual-choice/dual-choice.module.css +90 -0
  11. package/components/buttons/dual-choice/index.tsx +54 -0
  12. package/components/buttons/glitch-button/glitch-button.module.css +7 -7
  13. package/components/buttons/tension-bar/index.tsx +79 -0
  14. package/components/buttons/tension-bar/tension-bar.module.css +105 -0
  15. package/components/chaos-vars.css +27 -0
  16. package/components/cyber/cyber-avatar/css/cyber-avatar.module.css +60 -0
  17. package/components/cyber/cyber-avatar/css/index.tsx +28 -0
  18. package/components/cyber/cyber-avatar/tailwind/index.tsx +46 -0
  19. package/components/cyber/cyber-input/css/cyber-input.module.css +87 -0
  20. package/components/cyber/cyber-input/css/index.tsx +49 -0
  21. package/components/cyber/cyber-input/tailwind/index.tsx +55 -0
  22. package/components/cyber/cyber-loader/css/cyber-loader.module.css +102 -0
  23. package/components/cyber/cyber-loader/css/index.tsx +58 -0
  24. package/components/cyber/cyber-loader/tailwind/index.tsx +63 -0
  25. package/components/cyber/cyber-modal/css/cyber-modal.module.css +124 -0
  26. package/components/cyber/cyber-modal/css/index.tsx +75 -0
  27. package/components/cyber/cyber-modal/tailwind/index.tsx +87 -0
  28. package/components/cyber/cyber-slider/css/cyber-slider.module.css +61 -0
  29. package/components/cyber/cyber-slider/css/index.tsx +41 -0
  30. package/components/cyber/cyber-slider/tailwind/index.tsx +51 -0
  31. package/components/cyber/cyber-tooltip/css/cyber-tooltip.module.css +67 -0
  32. package/components/cyber/cyber-tooltip/css/index.tsx +36 -0
  33. package/components/cyber/cyber-tooltip/tailwind/index.tsx +48 -0
  34. package/components/decorative/coffee-stain/coffee-stain.module.css +24 -0
  35. package/components/decorative/coffee-stain/index.tsx +55 -0
  36. package/components/decorative/ornaments/index.tsx +51 -0
  37. package/components/decorative/ornaments/ornaments.module.css +33 -0
  38. package/components/decorative/rune-symbols/index.tsx +55 -0
  39. package/components/decorative/rune-symbols/rune-symbols.module.css +22 -0
  40. package/components/effects/glitch-image/css/glitch-image.module.css +64 -0
  41. package/components/effects/glitch-image/css/index.tsx +25 -0
  42. package/components/effects/glitch-image/tailwind/index.tsx +49 -0
  43. package/components/effects/glowing-border/css/glowing-border.module.css +73 -0
  44. package/components/effects/glowing-border/css/index.tsx +45 -0
  45. package/components/effects/glowing-border/tailwind/index.tsx +40 -0
  46. package/components/effects/screen-distortion/screen-distortion.module.css +2 -2
  47. package/components/effects/warning-tape/index.tsx +4 -4
  48. package/components/effects/warning-tape/warning-tape.module.css +2 -0
  49. package/components/layout/data-grid/css/data-grid.module.css +52 -0
  50. package/components/layout/data-grid/css/index.tsx +76 -0
  51. package/components/layout/data-grid/tailwind/index.tsx +74 -0
  52. package/components/layout/hologram-card/css/hologram-card.module.css +102 -0
  53. package/components/layout/hologram-card/css/index.tsx +46 -0
  54. package/components/layout/hologram-card/tailwind/index.tsx +61 -0
  55. package/components/layout/horizontal-scroll/horizontal-scroll.module.css +30 -0
  56. package/components/layout/horizontal-scroll/index.tsx +78 -0
  57. package/components/layout/spec-grid/index.tsx +56 -0
  58. package/components/layout/spec-grid/spec-grid.module.css +21 -0
  59. package/components/layout/tower-pricing/index.tsx +56 -0
  60. package/components/layout/tower-pricing/tower-pricing.module.css +27 -0
  61. package/components/layout/tracklist/index.tsx +45 -0
  62. package/components/layout/tracklist/tracklist.module.css +24 -0
  63. package/components/layout/void-frame/index.tsx +32 -0
  64. package/components/layout/void-frame/void-frame.module.css +38 -0
  65. package/components/navigation/brutal-nav/brutal-nav.module.css +85 -0
  66. package/components/navigation/brutal-nav/index.tsx +71 -0
  67. package/components/navigation/hexagon-menu/css/hexagon-menu.module.css +55 -0
  68. package/components/navigation/hexagon-menu/css/index.tsx +35 -0
  69. package/components/navigation/hexagon-menu/tailwind/index.tsx +53 -0
  70. package/components/navigation/progress-dots/index.tsx +55 -0
  71. package/components/navigation/progress-dots/progress-dots.module.css +91 -0
  72. package/components/navigation/scattered-nav/index.tsx +59 -0
  73. package/components/navigation/scattered-nav/scattered-nav.module.css +113 -0
  74. package/components/navigation/scroll-indicator/index.tsx +58 -0
  75. package/components/navigation/scroll-indicator/scroll-indicator.module.css +82 -0
  76. package/components/navigation/vertical-nav/index.tsx +59 -0
  77. package/components/navigation/vertical-nav/vertical-nav.module.css +98 -0
  78. package/components/neon/neon-alert/css/index.tsx +53 -0
  79. package/components/neon/neon-alert/css/neon-alert.module.css +60 -0
  80. package/components/neon/neon-alert/tailwind/index.tsx +59 -0
  81. package/components/neon/neon-badge/css/index.tsx +49 -0
  82. package/components/neon/neon-badge/css/neon-badge.module.css +53 -0
  83. package/components/neon/neon-badge/tailwind/index.tsx +50 -0
  84. package/components/neon/neon-button/css/index.tsx +54 -0
  85. package/components/neon/neon-button/css/neon-button.module.css +114 -0
  86. package/components/neon/neon-button/tailwind/index.tsx +51 -0
  87. package/components/neon/neon-divider/css/index.tsx +26 -0
  88. package/components/neon/neon-divider/css/neon-divider.module.css +43 -0
  89. package/components/neon/neon-divider/tailwind/index.tsx +36 -0
  90. package/components/neon/neon-progress/css/index.tsx +65 -0
  91. package/components/neon/neon-progress/css/neon-progress.module.css +88 -0
  92. package/components/neon/neon-progress/tailwind/index.tsx +46 -0
  93. package/components/neon/neon-tabs/css/index.tsx +41 -0
  94. package/components/neon/neon-tabs/css/neon-tabs.module.css +45 -0
  95. package/components/neon/neon-tabs/tailwind/index.tsx +53 -0
  96. package/components/neon/neon-toggle/css/index.tsx +58 -0
  97. package/components/neon/neon-toggle/css/neon-toggle.module.css +79 -0
  98. package/components/neon/neon-toggle/tailwind/index.tsx +57 -0
  99. package/components/text/ascii-art/css/ascii-art.module.css +173 -0
  100. package/components/text/ascii-art/css/index.tsx +116 -0
  101. package/components/text/ascii-art/tailwind/index.tsx +124 -0
  102. package/components/text/blood-drip/css/blood-drip.module.css +142 -0
  103. package/components/text/blood-drip/css/index.tsx +113 -0
  104. package/components/text/blood-drip/tailwind/index.tsx +133 -0
  105. package/components/text/char-glitch/css/char-glitch.module.css +124 -0
  106. package/components/text/char-glitch/css/index.tsx +153 -0
  107. package/components/text/char-glitch/tailwind/index.tsx +126 -0
  108. package/components/text/countdown-display/css/countdown-display.module.css +179 -0
  109. package/components/text/countdown-display/css/index.tsx +190 -0
  110. package/components/text/countdown-display/tailwind/index.tsx +155 -0
  111. package/components/text/giant-layers/css/giant-layers.module.css +156 -0
  112. package/components/text/giant-layers/css/index.tsx +97 -0
  113. package/components/text/giant-layers/tailwind/index.tsx +111 -0
  114. package/components/text/glitch-text/glitch-text.module.css +2 -2
  115. package/components/text/reveal-text/css/index.tsx +180 -0
  116. package/components/text/reveal-text/css/reveal-text.module.css +129 -0
  117. package/components/text/reveal-text/tailwind/index.tsx +135 -0
  118. package/components/text/rotate-text/css/index.tsx +139 -0
  119. package/components/text/rotate-text/css/rotate-text.module.css +162 -0
  120. package/components/text/rotate-text/tailwind/index.tsx +127 -0
  121. package/components/text/strike-reveal/css/index.tsx +124 -0
  122. package/components/text/strike-reveal/css/strike-reveal.module.css +139 -0
  123. package/components/text/strike-reveal/tailwind/index.tsx +138 -0
  124. package/components/text/terminal-output/css/index.tsx +179 -0
  125. package/components/text/terminal-output/css/terminal-output.module.css +203 -0
  126. package/components/text/terminal-output/tailwind/index.tsx +174 -0
  127. package/components/text/typing-text/css/index.tsx +115 -0
  128. package/components/text/typing-text/css/typing-text.module.css +84 -0
  129. package/components/text/typing-text/tailwind/index.tsx +126 -0
  130. package/package.json +1 -1
  131. package/components/glow-orbs/glow-orbs.module.css +0 -31
  132. package/components/glow-orbs/index.tsx +0 -87
  133. package/components/light-beams/index.tsx +0 -80
  134. package/components/light-beams/light-beams.module.css +0 -27
  135. package/components/noise-canvas/index.tsx +0 -113
  136. package/components/noise-canvas/noise-canvas.module.css +0 -8
  137. package/components/package.json +0 -13
  138. package/components/particle-field/index.tsx +0 -81
  139. package/components/particle-field/particle-field.module.css +0 -31
@@ -0,0 +1,51 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, HTMLAttributes } from 'react';
4
+
5
+ export interface CyberSliderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
6
+ value: number;
7
+ onChange: (value: number) => void;
8
+ min?: number;
9
+ max?: number;
10
+ step?: number;
11
+ variant?: 'cyan' | 'pink' | 'green' | 'purple';
12
+ showValue?: boolean;
13
+ }
14
+
15
+ const variantStyles = {
16
+ cyan: { fill: 'bg-cyan-400 shadow-[0_0_10px_#00f0ff]', text: 'text-cyan-400' },
17
+ pink: { fill: 'bg-fuchsia-500 shadow-[0_0_10px_#ff00ff]', text: 'text-fuchsia-500' },
18
+ green: { fill: 'bg-emerald-400 shadow-[0_0_10px_#00ff88]', text: 'text-emerald-400' },
19
+ purple: { fill: 'bg-purple-500 shadow-[0_0_10px_#a855f7]', text: 'text-purple-500' },
20
+ };
21
+
22
+ export const CyberSlider = forwardRef<HTMLDivElement, CyberSliderProps>(
23
+ ({ value, onChange, min = 0, max = 100, step = 1, variant = 'cyan', showValue = false, className = '', ...props }, ref) => {
24
+ const percentage = ((value - min) / (max - min)) * 100;
25
+ const colors = variantStyles[variant];
26
+ return (
27
+ <div ref={ref} className={`flex items-center gap-3 ${className}`} {...props}>
28
+ <div className="relative flex-1 h-2 bg-white/10 border border-white/20">
29
+ <div className={`absolute top-0 left-0 h-full ${colors.fill}`} style={{ width: `${percentage}%` }} />
30
+ <input
31
+ type="range"
32
+ min={min}
33
+ max={max}
34
+ step={step}
35
+ value={value}
36
+ onChange={(e) => onChange(Number(e.target.value))}
37
+ className="absolute inset-0 w-full h-full opacity-0 cursor-pointer"
38
+ />
39
+ <div
40
+ className={`absolute top-1/2 w-4 h-4 ${colors.fill} border-2 border-[#0a0a0f] pointer-events-none`}
41
+ style={{ left: `${percentage}%`, transform: 'translate(-50%, -50%) rotate(45deg)' }}
42
+ />
43
+ </div>
44
+ {showValue && <span className={`min-w-[40px] font-['Orbitron',sans-serif] text-sm font-bold ${colors.text} text-right`}>{value}</span>}
45
+ </div>
46
+ );
47
+ }
48
+ );
49
+
50
+ CyberSlider.displayName = 'CyberSlider';
51
+ export default CyberSlider;
@@ -0,0 +1,67 @@
1
+ .tooltip {
2
+ --tooltip-color: #00f0ff;
3
+ position: relative;
4
+ display: inline-block;
5
+ }
6
+
7
+ .cyan { --tooltip-color: #00f0ff; }
8
+ .pink { --tooltip-color: #ff00ff; }
9
+ .green { --tooltip-color: #00ff88; }
10
+
11
+ .content {
12
+ position: absolute;
13
+ z-index: 100;
14
+ padding: 0.5rem 0.75rem;
15
+ font-family: var(--font-mono, 'Share Tech Mono', monospace);
16
+ font-size: 0.75rem;
17
+ color: #fff;
18
+ background: rgba(10, 10, 15, 0.95);
19
+ border: 1px solid var(--tooltip-color);
20
+ box-shadow: 0 0 10px var(--tooltip-color);
21
+ white-space: nowrap;
22
+ animation: tooltip-appear 0.2s ease-out;
23
+ }
24
+
25
+ @keyframes tooltip-appear {
26
+ from { opacity: 0; transform: scale(0.9); }
27
+ to { opacity: 1; transform: scale(1); }
28
+ }
29
+
30
+ .top .content {
31
+ bottom: 100%;
32
+ left: 50%;
33
+ transform: translateX(-50%);
34
+ margin-bottom: 0.5rem;
35
+ }
36
+
37
+ .bottom .content {
38
+ top: 100%;
39
+ left: 50%;
40
+ transform: translateX(-50%);
41
+ margin-top: 0.5rem;
42
+ }
43
+
44
+ .arrow {
45
+ position: absolute;
46
+ width: 0.5rem;
47
+ height: 0.5rem;
48
+ background: rgba(10, 10, 15, 0.95);
49
+ border: 1px solid var(--tooltip-color);
50
+ transform: rotate(45deg);
51
+ }
52
+
53
+ .top .arrow {
54
+ bottom: -0.3rem;
55
+ left: 50%;
56
+ margin-left: -0.25rem;
57
+ border-top: none;
58
+ border-left: none;
59
+ }
60
+
61
+ .bottom .arrow {
62
+ top: -0.3rem;
63
+ left: 50%;
64
+ margin-left: -0.25rem;
65
+ border-bottom: none;
66
+ border-right: none;
67
+ }
@@ -0,0 +1,36 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, HTMLAttributes, useState } from 'react';
4
+ import styles from './cyber-tooltip.module.css';
5
+
6
+ export interface CyberTooltipProps extends HTMLAttributes<HTMLDivElement> {
7
+ content: React.ReactNode;
8
+ position?: 'top' | 'bottom' | 'left' | 'right';
9
+ variant?: 'cyan' | 'pink' | 'green';
10
+ }
11
+
12
+ export const CyberTooltip = forwardRef<HTMLDivElement, CyberTooltipProps>(
13
+ ({ children, content, position = 'top', variant = 'cyan', className, ...props }, ref) => {
14
+ const [visible, setVisible] = useState(false);
15
+ return (
16
+ <div
17
+ ref={ref}
18
+ className={`${styles.tooltip} ${styles[position]} ${styles[variant]} ${className || ''}`}
19
+ onMouseEnter={() => setVisible(true)}
20
+ onMouseLeave={() => setVisible(false)}
21
+ {...props}
22
+ >
23
+ {children}
24
+ {visible && (
25
+ <div className={styles.content}>
26
+ <span className={styles.arrow} />
27
+ {content}
28
+ </div>
29
+ )}
30
+ </div>
31
+ );
32
+ }
33
+ );
34
+
35
+ CyberTooltip.displayName = 'CyberTooltip';
36
+ export default CyberTooltip;
@@ -0,0 +1,48 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, HTMLAttributes, useState } from 'react';
4
+
5
+ export interface CyberTooltipProps extends HTMLAttributes<HTMLDivElement> {
6
+ content: React.ReactNode;
7
+ position?: 'top' | 'bottom';
8
+ variant?: 'cyan' | 'pink' | 'green';
9
+ }
10
+
11
+ const variantStyles = {
12
+ cyan: 'border-cyan-400 shadow-[0_0_10px_#00f0ff]',
13
+ pink: 'border-fuchsia-500 shadow-[0_0_10px_#ff00ff]',
14
+ green: 'border-emerald-400 shadow-[0_0_10px_#00ff88]',
15
+ };
16
+
17
+ export const CyberTooltip = forwardRef<HTMLDivElement, CyberTooltipProps>(
18
+ ({ children, content, position = 'top', variant = 'cyan', className = '', ...props }, ref) => {
19
+ const [visible, setVisible] = useState(false);
20
+ return (
21
+ <div
22
+ ref={ref}
23
+ className={`relative inline-block ${className}`}
24
+ onMouseEnter={() => setVisible(true)}
25
+ onMouseLeave={() => setVisible(false)}
26
+ {...props}
27
+ >
28
+ {children}
29
+ {visible && (
30
+ <div
31
+ className={`
32
+ absolute z-50 px-3 py-2
33
+ font-['Share_Tech_Mono',monospace] text-xs text-white whitespace-nowrap
34
+ bg-[#0a0a0f]/95 border ${variantStyles[variant]}
35
+ animate-[fadeIn_0.2s_ease-out]
36
+ ${position === 'top' ? 'bottom-full left-1/2 -translate-x-1/2 mb-2' : 'top-full left-1/2 -translate-x-1/2 mt-2'}
37
+ `}
38
+ >
39
+ {content}
40
+ </div>
41
+ )}
42
+ </div>
43
+ );
44
+ }
45
+ );
46
+
47
+ CyberTooltip.displayName = 'CyberTooltip';
48
+ export default CyberTooltip;
@@ -0,0 +1,24 @@
1
+ .container { position: relative; pointer-events: none; }
2
+ .overlay { position: fixed; inset: 0; z-index: 1; }
3
+ .inline { position: relative; width: 100%; height: 100%; }
4
+ .stain { position: absolute; border-radius: 50%; pointer-events: none; }
5
+ .stain1 { width: 150px; height: 140px; background: radial-gradient(ellipse at 40% 40%, rgba(61, 43, 31, 0.25) 0%, rgba(61, 43, 31, 0.12) 40%, transparent 70%); transform: rotate(15deg); }
6
+ .stain2 { width: 100px; height: 90px; background: radial-gradient(ellipse at 60% 50%, rgba(45, 31, 21, 0.25) 0%, rgba(45, 31, 21, 0.12) 50%, transparent 75%); transform: rotate(-20deg); }
7
+ .stain3 { width: 80px; height: 85px; background: radial-gradient(ellipse at 50% 50%, rgba(61, 43, 31, 0.18) 0%, transparent 60%); }
8
+ .stain4 { width: 120px; height: 110px; background: radial-gradient(ellipse at 45% 55%, rgba(50, 35, 25, 0.2) 0%, rgba(50, 35, 25, 0.1) 45%, transparent 70%); transform: rotate(10deg); }
9
+ .stain5 { width: 60px; height: 55px; background: radial-gradient(circle, rgba(61, 43, 31, 0.15) 0%, transparent 65%); }
10
+ .ring { border-radius: 50%; background: transparent; box-shadow: inset 0 0 10px rgba(61, 43, 31, 0.2), 0 0 15px rgba(61, 43, 31, 0.15); border: 2px solid rgba(61, 43, 31, 0.15); }
11
+ .ring1 { width: 80px; height: 80px; }
12
+ .ring2 { width: 70px; height: 70px; }
13
+ .agedPaper { position: absolute; inset: 0; background: linear-gradient(135deg, transparent 0%, rgba(139, 115, 85, 0.03) 25%, transparent 50%, rgba(139, 115, 85, 0.05) 75%, transparent 100%); pointer-events: none; }
14
+ .paperTexture { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); opacity: 0.05; mix-blend-mode: overlay; pointer-events: none; }
15
+ .burnEdges { position: absolute; inset: 0; box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3); pointer-events: none; }
16
+ .edgeLeft { position: absolute; left: 0; top: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, rgba(26, 21, 16, 0.8) 0%, transparent 100%); }
17
+ .edgeRight { position: absolute; right: 0; top: 0; bottom: 0; width: 60px; background: linear-gradient(-90deg, rgba(26, 21, 16, 0.8) 0%, transparent 100%); }
18
+ .light .stain { opacity: 0.5; }
19
+ .medium .stain { opacity: 0.75; }
20
+ .heavy .stain { opacity: 1; }
21
+ .coffee { --stain-color: rgba(61, 43, 31, 1); }
22
+ .tea { --stain-color: rgba(139, 115, 85, 1); }
23
+ .wine { --stain-color: rgba(100, 30, 40, 1); }
24
+ .ink { --stain-color: rgba(20, 20, 40, 1); }
@@ -0,0 +1,55 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, HTMLAttributes, useMemo } from 'react';
4
+ import styles from './coffee-stain.module.css';
5
+
6
+ export interface StainConfig {
7
+ type?: 'stain' | 'ring';
8
+ size?: 'sm' | 'md' | 'lg';
9
+ position: { top?: string; right?: string; bottom?: string; left?: string };
10
+ rotation?: number;
11
+ }
12
+
13
+ export interface CoffeeStainProps extends HTMLAttributes<HTMLDivElement> {
14
+ mode?: 'overlay' | 'inline';
15
+ intensity?: 'light' | 'medium' | 'heavy';
16
+ variant?: 'coffee' | 'tea' | 'wine' | 'ink';
17
+ count?: number;
18
+ stains?: StainConfig[];
19
+ agedPaper?: boolean;
20
+ paperTexture?: boolean;
21
+ burnEdges?: boolean;
22
+ edgeDarkening?: boolean;
23
+ }
24
+
25
+ const generateRandomStains = (count: number): StainConfig[] => {
26
+ return Array.from({ length: count }, () => ({
27
+ type: Math.random() > 0.7 ? 'ring' : 'stain',
28
+ size: ['sm', 'md', 'lg'][Math.floor(Math.random() * 3)] as 'sm' | 'md' | 'lg',
29
+ position: { top: `${Math.random() * 80 + 10}%`, left: `${Math.random() * 80 + 10}%` },
30
+ rotation: Math.random() * 360,
31
+ }));
32
+ };
33
+
34
+ export const CoffeeStain = forwardRef<HTMLDivElement, CoffeeStainProps>(
35
+ ({ mode = 'overlay', intensity = 'medium', variant = 'coffee', count = 3, stains: customStains, agedPaper = false, paperTexture = false, burnEdges = false, edgeDarkening = false, className, ...props }, ref) => {
36
+ const stains = useMemo(() => customStains || generateRandomStains(count), [customStains, count]);
37
+ const stainStyles = ['stain1', 'stain2', 'stain3', 'stain4', 'stain5'];
38
+
39
+ return (
40
+ <div ref={ref} className={`${styles.container} ${styles[mode]} ${styles[intensity]} ${styles[variant]} ${className || ''}`} {...props}>
41
+ {stains.map((stain, i) => {
42
+ const styleClass = stain.type === 'ring' ? `${styles.ring} ${stain.size === 'lg' ? styles.ring1 : styles.ring2}` : `${styles.stain} ${styles[stainStyles[i % stainStyles.length]]}`;
43
+ return <div key={i} className={styleClass} style={{ ...stain.position, transform: `rotate(${stain.rotation || 0}deg)` }} />;
44
+ })}
45
+ {agedPaper && <div className={styles.agedPaper} />}
46
+ {paperTexture && <div className={styles.paperTexture} />}
47
+ {burnEdges && <div className={styles.burnEdges} />}
48
+ {edgeDarkening && <><div className={styles.edgeLeft} /><div className={styles.edgeRight} /></>}
49
+ </div>
50
+ );
51
+ }
52
+ );
53
+
54
+ CoffeeStain.displayName = 'CoffeeStain';
55
+ export default CoffeeStain;
@@ -0,0 +1,51 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, HTMLAttributes } from 'react';
4
+ import styles from './ornaments.module.css';
5
+
6
+ export const ORNAMENT_SYMBOLS = {
7
+ cross: '✝', maltese: '✠', orthodox: '☦', fleurDeLis: '⚜', star: '✦',
8
+ diamond: '◆', heart: '❧', leaf: '❦', dagger: '†', doubleDagger: '‡',
9
+ asterisk: '✽', florette: '✿', skull: '☠', crown: '♔', swords: '⚔',
10
+ };
11
+
12
+ export interface OrnamentsProps extends HTMLAttributes<HTMLDivElement> {
13
+ type?: 'divider' | 'corner' | 'frame' | 'fleuron' | 'symbols';
14
+ symbol?: keyof typeof ORNAMENT_SYMBOLS | string;
15
+ symbols?: (keyof typeof ORNAMENT_SYMBOLS | string)[];
16
+ variant?: 'gold' | 'bone' | 'blood' | 'iron';
17
+ size?: 'sm' | 'md' | 'lg';
18
+ animated?: boolean;
19
+ position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'all';
20
+ }
21
+
22
+ const getSymbol = (s: keyof typeof ORNAMENT_SYMBOLS | string): string => ORNAMENT_SYMBOLS[s as keyof typeof ORNAMENT_SYMBOLS] || s;
23
+
24
+ export const Ornaments = forwardRef<HTMLDivElement, OrnamentsProps>(
25
+ ({ type = 'divider', symbol = 'cross', symbols, variant = 'gold', size = 'md', animated = false, position = 'all', className, ...props }, ref) => {
26
+ const baseClasses = `${styles.ornament} ${styles[variant]} ${styles[size]} ${animated ? styles.animated : ''}`;
27
+ const sym = getSymbol(symbol);
28
+
29
+ if (type === 'divider') {
30
+ return (<div ref={ref} className={`${baseClasses} ${styles.divider} ${className || ''}`} {...props}><span className={styles.line} /><span className={styles.symbol}>{sym}</span><span className={styles.line} /></div>);
31
+ }
32
+ if (type === 'fleuron') {
33
+ return (<div ref={ref} className={`${baseClasses} ${className || ''}`} {...props}><span className={styles.fleuron}>{sym}</span></div>);
34
+ }
35
+ if (type === 'symbols') {
36
+ const syms = symbols || ['star', 'diamond', 'star'];
37
+ return (<div ref={ref} className={`${baseClasses} ${styles.symbols} ${className || ''}`} {...props}>{syms.map((s, i) => (<span key={i} className={styles.symbol}>{getSymbol(s)}</span>))}</div>);
38
+ }
39
+ if (type === 'corner') {
40
+ const corners = position === 'all' ? ['TopLeft', 'TopRight', 'BottomLeft', 'BottomRight'] : [position.split('-').map((p, i) => i === 0 ? p.charAt(0).toUpperCase() + p.slice(1) : p.charAt(0).toUpperCase() + p.slice(1)).join('')];
41
+ return (<>{corners.map((pos) => (<div key={pos} ref={pos === corners[0] ? ref : undefined} className={`${styles.corner} ${styles[`corner${pos}`]} ${styles[variant]} ${className || ''}`} {...props}><span className={styles.cornerInner}><span className={styles.cornerSymbol}>{sym}</span></span></div>))}</>);
42
+ }
43
+ if (type === 'frame') {
44
+ return (<div ref={ref} className={`${styles.frame} ${styles[variant]} ${className || ''}`} {...props}><div className={styles.frameTop}><span className={styles.frameLine} /><span className={styles.frameSymbol}>{sym}</span><span className={styles.frameLine} /></div><div className={styles.frameBottom}><span className={styles.frameLine} /><span className={styles.frameSymbol}>{sym}</span><span className={styles.frameLine} /></div></div>);
45
+ }
46
+ return null;
47
+ }
48
+ );
49
+
50
+ Ornaments.displayName = 'Ornaments';
51
+ export default Ornaments;
@@ -0,0 +1,33 @@
1
+ .ornament { --ornament-color: #c9a227; display: flex; align-items: center; justify-content: center; color: var(--ornament-color); }
2
+ .divider { gap: 1rem; width: 100%; }
3
+ .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ornament-color), transparent); }
4
+ .symbol { font-size: 1.25rem; opacity: 0.8; }
5
+ .corner { position: absolute; width: 40px; height: 40px; }
6
+ .cornerTopLeft { top: 0; left: 0; }
7
+ .cornerTopRight { top: 0; right: 0; transform: scaleX(-1); }
8
+ .cornerBottomLeft { bottom: 0; left: 0; transform: scaleY(-1); }
9
+ .cornerBottomRight { bottom: 0; right: 0; transform: scale(-1); }
10
+ .cornerInner { position: absolute; top: 0; left: 0; }
11
+ .cornerInner::before { content: ''; position: absolute; top: 8px; left: 0; width: 30px; height: 1px; background: var(--ornament-color); }
12
+ .cornerInner::after { content: ''; position: absolute; top: 0; left: 8px; width: 1px; height: 30px; background: var(--ornament-color); }
13
+ .cornerSymbol { position: absolute; top: 4px; left: 4px; font-size: 0.75rem; }
14
+ .fleuron { font-family: 'Times New Roman', serif; font-size: 2rem; opacity: 0.7; }
15
+ .frame { position: absolute; inset: 0; pointer-events: none; }
16
+ .frameTop, .frameBottom { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.5rem; }
17
+ .frameTop { top: -0.5em; }
18
+ .frameBottom { bottom: -0.5em; }
19
+ .frameLine { width: 60px; height: 1px; background: var(--ornament-color); }
20
+ .frameSymbol { font-size: 0.875rem; }
21
+ .gold { --ornament-color: #c9a227; }
22
+ .bone { --ornament-color: #d4c5a9; }
23
+ .blood { --ornament-color: #8b1a1a; }
24
+ .iron { --ornament-color: #4a4a4a; }
25
+ .symbols { display: flex; gap: 0.5rem; opacity: 0.6; }
26
+ .animated .symbol, .animated .fleuron { animation: ornamentPulse 3s ease-in-out infinite; }
27
+ @keyframes ornamentPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
28
+ .sm .symbol { font-size: 0.875rem; }
29
+ .sm .fleuron { font-size: 1.25rem; }
30
+ .md .symbol { font-size: 1.25rem; }
31
+ .md .fleuron { font-size: 2rem; }
32
+ .lg .symbol { font-size: 1.75rem; }
33
+ .lg .fleuron { font-size: 3rem; }
@@ -0,0 +1,55 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, HTMLAttributes } from 'react';
4
+ import styles from './rune-symbols.module.css';
5
+
6
+ export const RUNES = {
7
+ fehu: 'ᚠ', uruz: 'ᚢ', thurisaz: 'ᚦ', ansuz: 'ᚨ', raidho: 'ᚱ', kenaz: 'ᚲ',
8
+ gebo: 'ᚷ', wunjo: 'ᚹ', hagalaz: 'ᚺ', nauthiz: 'ᚾ', isaz: 'ᛁ', jera: 'ᛃ',
9
+ eihwaz: 'ᛇ', perthro: 'ᛈ', algiz: 'ᛉ', sowilo: 'ᛊ', tiwaz: 'ᛏ', berkano: 'ᛒ',
10
+ ehwaz: 'ᛖ', mannaz: 'ᛗ', laguz: 'ᛚ', ingwaz: 'ᛝ', dagaz: 'ᛞ', othala: 'ᛟ',
11
+ };
12
+
13
+ export interface RuneSymbolsProps extends HTMLAttributes<HTMLDivElement> {
14
+ runes?: (keyof typeof RUNES | string)[];
15
+ count?: number;
16
+ variant?: 'gold' | 'blood' | 'bone' | 'iron' | 'cyan';
17
+ animation?: 'glow' | 'floating' | 'pulsing' | 'flickering' | 'none';
18
+ direction?: 'horizontal' | 'vertical';
19
+ size?: 'sm' | 'md' | 'lg' | 'xl';
20
+ scattered?: boolean;
21
+ }
22
+
23
+ const getRandomRunes = (count: number): string[] => {
24
+ const runeValues = Object.values(RUNES);
25
+ return Array.from({ length: count }, () => runeValues[Math.floor(Math.random() * runeValues.length)]);
26
+ };
27
+
28
+ export const RuneSymbols = forwardRef<HTMLDivElement, RuneSymbolsProps>(
29
+ ({ runes, count = 6, variant = 'gold', animation = 'glow', direction = 'horizontal', size = 'md', scattered = false, className, style, ...props }, ref) => {
30
+ const resolvedRunes = runes ? runes.map(r => RUNES[r as keyof typeof RUNES] || r) : getRandomRunes(count);
31
+ const animationClass = animation !== 'none' ? styles[animation] : '';
32
+
33
+ return (
34
+ <div
35
+ ref={ref}
36
+ className={`${styles.container} ${styles[variant]} ${styles[size]} ${direction === 'vertical' ? styles.vertical : ''} ${scattered ? styles.scattered : ''} ${animationClass} ${className || ''}`}
37
+ style={style}
38
+ {...props}
39
+ >
40
+ {resolvedRunes.map((rune, i) => (
41
+ <span
42
+ key={i}
43
+ className={styles.rune}
44
+ style={{ '--delay': `${i * 0.5}s`, ...(scattered ? { left: `${Math.random() * 80 + 10}%`, top: `${Math.random() * 80 + 10}%` } : {}) } as React.CSSProperties}
45
+ >
46
+ {rune}
47
+ </span>
48
+ ))}
49
+ </div>
50
+ );
51
+ }
52
+ );
53
+
54
+ RuneSymbols.displayName = 'RuneSymbols';
55
+ export default RuneSymbols;
@@ -0,0 +1,22 @@
1
+ .container { --rune-color: #c9a227; --rune-glow: rgba(201, 162, 39, 0.5); display: flex; gap: 1.5rem; font-size: 2rem; }
2
+ .rune { color: var(--rune-color); opacity: 0.6; transition: all 0.4s ease; animation: runeGlow 4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
3
+ .rune:hover { opacity: 1; text-shadow: 0 0 20px var(--rune-glow); transform: scale(1.1); }
4
+ @keyframes runeGlow { 0%, 100% { opacity: 0.4; text-shadow: none; } 50% { opacity: 0.8; text-shadow: 0 0 15px var(--rune-glow); } }
5
+ .floating .rune { animation: runeFloat 6s ease-in-out infinite; }
6
+ @keyframes runeFloat { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; } 25% { transform: translateY(-10px) rotate(5deg); opacity: 0.7; } 50% { transform: translateY(0) rotate(0deg); opacity: 0.5; } 75% { transform: translateY(10px) rotate(-5deg); opacity: 0.7; } }
7
+ .pulsing .rune { animation: runePulse 2s ease-in-out infinite; }
8
+ @keyframes runePulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 25px var(--rune-glow); } }
9
+ .flickering .rune { animation: runeFlicker 0.5s steps(2) infinite; }
10
+ @keyframes runeFlicker { 0% { opacity: 0.3; } 25% { opacity: 0.8; } 50% { opacity: 0.5; } 75% { opacity: 0.9; } 100% { opacity: 0.3; } }
11
+ .scattered { position: relative; width: 100%; height: 100%; }
12
+ .scattered .rune { position: absolute; }
13
+ .gold { --rune-color: #c9a227; --rune-glow: rgba(201, 162, 39, 0.5); }
14
+ .blood { --rune-color: #8b1a1a; --rune-glow: rgba(139, 26, 26, 0.5); }
15
+ .bone { --rune-color: #d4c5a9; --rune-glow: rgba(212, 197, 169, 0.5); }
16
+ .iron { --rune-color: #4a4a4a; --rune-glow: rgba(74, 74, 74, 0.5); }
17
+ .cyan { --rune-color: #00f0ff; --rune-glow: rgba(0, 240, 255, 0.5); }
18
+ .vertical { flex-direction: column; }
19
+ .sm { font-size: 1rem; gap: 0.75rem; }
20
+ .md { font-size: 2rem; gap: 1.5rem; }
21
+ .lg { font-size: 3rem; gap: 2rem; }
22
+ .xl { font-size: 4rem; gap: 3rem; }
@@ -0,0 +1,64 @@
1
+ .container {
2
+ position: relative;
3
+ overflow: hidden;
4
+ }
5
+
6
+ .base {
7
+ display: block;
8
+ width: 100%;
9
+ height: auto;
10
+ }
11
+
12
+ .layer {
13
+ position: absolute;
14
+ top: 0;
15
+ left: 0;
16
+ width: 100%;
17
+ height: 100%;
18
+ object-fit: cover;
19
+ opacity: 0;
20
+ mix-blend-mode: screen;
21
+ }
22
+
23
+ .red { filter: hue-rotate(-50deg) saturate(200%); }
24
+ .blue { filter: hue-rotate(50deg) saturate(200%); }
25
+
26
+ .container:hover .red {
27
+ opacity: 0.8;
28
+ animation: glitch-r 0.3s steps(2) infinite;
29
+ }
30
+
31
+ .container:hover .blue {
32
+ opacity: 0.8;
33
+ animation: glitch-b 0.3s steps(2) infinite;
34
+ }
35
+
36
+ .continuous .red {
37
+ opacity: 0.5;
38
+ animation: glitch-r 2s steps(3) infinite;
39
+ }
40
+
41
+ .continuous .blue {
42
+ opacity: 0.5;
43
+ animation: glitch-b 2s steps(3) infinite;
44
+ }
45
+
46
+ .low .layer { opacity: 0.3 !important; }
47
+ .high .layer { opacity: 0.9 !important; }
48
+ .high:hover .red, .high:hover .blue { animation-duration: 0.1s; }
49
+
50
+ @keyframes glitch-r {
51
+ 0% { transform: translate(0); clip-path: inset(20% 0 40% 0); }
52
+ 25% { transform: translate(-5px, 5px); clip-path: inset(50% 0 20% 0); }
53
+ 50% { transform: translate(5px, -5px); clip-path: inset(10% 0 60% 0); }
54
+ 75% { transform: translate(-3px, 3px); clip-path: inset(70% 0 10% 0); }
55
+ 100% { transform: translate(0); clip-path: inset(20% 0 40% 0); }
56
+ }
57
+
58
+ @keyframes glitch-b {
59
+ 0% { transform: translate(0); clip-path: inset(60% 0 10% 0); }
60
+ 25% { transform: translate(5px, -5px); clip-path: inset(20% 0 50% 0); }
61
+ 50% { transform: translate(-5px, 5px); clip-path: inset(80% 0 5% 0); }
62
+ 75% { transform: translate(3px, -3px); clip-path: inset(5% 0 70% 0); }
63
+ 100% { transform: translate(0); clip-path: inset(60% 0 10% 0); }
64
+ }
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, ImgHTMLAttributes } from 'react';
4
+ import styles from './glitch-image.module.css';
5
+
6
+ export interface GlitchImageProps extends ImgHTMLAttributes<HTMLImageElement> {
7
+ intensity?: 'low' | 'medium' | 'high';
8
+ continuous?: boolean;
9
+ }
10
+
11
+ export const GlitchImage = forwardRef<HTMLDivElement, GlitchImageProps>(
12
+ ({ src, alt = 'Image', intensity = 'medium', continuous = false, className, ...props }, ref) => {
13
+ const classes = [styles.container, styles[intensity], continuous && styles.continuous, className].filter(Boolean).join(' ');
14
+ return (
15
+ <div ref={ref} className={classes}>
16
+ <img src={src} alt={alt} className={styles.base} {...props} />
17
+ <img src={src} alt="" className={`${styles.layer} ${styles.red}`} aria-hidden="true" />
18
+ <img src={src} alt="" className={`${styles.layer} ${styles.blue}`} aria-hidden="true" />
19
+ </div>
20
+ );
21
+ }
22
+ );
23
+
24
+ GlitchImage.displayName = 'GlitchImage';
25
+ export default GlitchImage;
@@ -0,0 +1,49 @@
1
+ 'use client';
2
+
3
+ import { forwardRef, ImgHTMLAttributes, useId } from 'react';
4
+
5
+ export interface GlitchImageProps extends ImgHTMLAttributes<HTMLImageElement> {}
6
+
7
+ export const GlitchImage = forwardRef<HTMLDivElement, GlitchImageProps>(
8
+ ({ src, alt = 'Image', className = '', ...props }, ref) => {
9
+ const id = useId();
10
+ return (
11
+ <>
12
+ <style>{`
13
+ @keyframes glitch-r-${id} {
14
+ 0%, 100% { transform: translate(0); clip-path: inset(20% 0 40% 0); }
15
+ 25% { transform: translate(-5px, 5px); clip-path: inset(50% 0 20% 0); }
16
+ 50% { transform: translate(5px, -5px); clip-path: inset(10% 0 60% 0); }
17
+ 75% { transform: translate(-3px, 3px); clip-path: inset(70% 0 10% 0); }
18
+ }
19
+ @keyframes glitch-b-${id} {
20
+ 0%, 100% { transform: translate(0); clip-path: inset(60% 0 10% 0); }
21
+ 25% { transform: translate(5px, -5px); clip-path: inset(20% 0 50% 0); }
22
+ 50% { transform: translate(-5px, 5px); clip-path: inset(80% 0 5% 0); }
23
+ 75% { transform: translate(3px, -3px); clip-path: inset(5% 0 70% 0); }
24
+ }
25
+ `}</style>
26
+ <div ref={ref} className={`relative overflow-hidden group ${className}`}>
27
+ <img src={src} alt={alt} className="block w-full h-auto" {...props} />
28
+ <img
29
+ src={src}
30
+ alt=""
31
+ className="absolute inset-0 w-full h-full object-cover opacity-0 mix-blend-screen group-hover:opacity-80"
32
+ style={{ filter: 'hue-rotate(-50deg) saturate(200%)', animation: `glitch-r-${id} 0.3s steps(2) infinite` }}
33
+ aria-hidden="true"
34
+ />
35
+ <img
36
+ src={src}
37
+ alt=""
38
+ className="absolute inset-0 w-full h-full object-cover opacity-0 mix-blend-screen group-hover:opacity-80"
39
+ style={{ filter: 'hue-rotate(50deg) saturate(200%)', animation: `glitch-b-${id} 0.3s steps(2) infinite` }}
40
+ aria-hidden="true"
41
+ />
42
+ </div>
43
+ </>
44
+ );
45
+ }
46
+ );
47
+
48
+ GlitchImage.displayName = 'GlitchImage';
49
+ export default GlitchImage;
@@ -0,0 +1,73 @@
1
+ .container {
2
+ --glow-color: #00f0ff;
3
+ --glow-size: 10px;
4
+
5
+ position: relative;
6
+ padding: 2px;
7
+ border-radius: 0.5rem;
8
+ background: var(--glow-color);
9
+ }
10
+
11
+ .cyan { --glow-color: #00f0ff; }
12
+ .pink { --glow-color: #ff00ff; }
13
+ .green { --glow-color: #00ff88; }
14
+ .purple { --glow-color: #a855f7; }
15
+
16
+ .rainbow {
17
+ background: linear-gradient(90deg, #00f0ff, #ff00ff, #00ff88, #00f0ff);
18
+ background-size: 300% 100%;
19
+ }
20
+
21
+ .low { --glow-size: 5px; }
22
+ .medium { --glow-size: 10px; }
23
+ .high { --glow-size: 20px; }
24
+
25
+ .content {
26
+ position: relative;
27
+ background: hsl(var(--background, 0 0% 4%));
28
+ border-radius: calc(0.5rem - 2px);
29
+ z-index: 1;
30
+ }
31
+
32
+ /* Glow effect */
33
+ .container::before {
34
+ content: '';
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+ width: 100%;
39
+ height: 100%;
40
+ border-radius: 0.5rem;
41
+ background: inherit;
42
+ filter: blur(var(--glow-size));
43
+ opacity: 0.7;
44
+ z-index: -1;
45
+ }
46
+
47
+ /* Animation */
48
+ .animated {
49
+ animation: glow-pulse 2s ease-in-out infinite;
50
+ }
51
+
52
+ .rainbow.animated {
53
+ animation: glow-pulse 2s ease-in-out infinite, rainbow-border 3s linear infinite;
54
+ }
55
+
56
+ @keyframes glow-pulse {
57
+ 0%, 100% { filter: brightness(1); }
58
+ 50% { filter: brightness(1.3); }
59
+ }
60
+
61
+ @keyframes rainbow-border {
62
+ 0% { background-position: 0% 50%; }
63
+ 100% { background-position: 300% 50%; }
64
+ }
65
+
66
+ .container:hover {
67
+ filter: brightness(1.2);
68
+ }
69
+
70
+ .container:hover::before {
71
+ filter: blur(calc(var(--glow-size) * 1.5));
72
+ opacity: 0.9;
73
+ }