@oalacea/chaosui 0.5.0 → 0.5.1
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/buttons/cta-brutal/css/cta-brutal.module.css +175 -0
- package/{components/buttons/cta-brutal → buttons/cta-brutal/css}/index.tsx +25 -3
- package/buttons/cta-brutal/tailwind/index.tsx +85 -0
- package/buttons/dead-button/css/dead-button.module.css +216 -0
- package/buttons/dead-button/tailwind/index.tsx +90 -0
- package/buttons/deeper-button/css/deeper-button.module.css +141 -0
- package/{components/buttons/deeper-button → buttons/deeper-button/css}/index.tsx +14 -3
- package/buttons/deeper-button/tailwind/index.tsx +78 -0
- package/buttons/dual-choice/css/dual-choice.module.css +176 -0
- package/{components/buttons/dual-choice → buttons/dual-choice/css}/index.tsx +2 -0
- package/buttons/dual-choice/tailwind/index.tsx +89 -0
- package/{components/buttons/tension-bar → buttons/tension-bar/css}/index.tsx +22 -5
- package/buttons/tension-bar/css/tension-bar.module.css +204 -0
- package/buttons/tension-bar/tailwind/index.tsx +122 -0
- package/decorative/inscription/css/index.tsx +66 -0
- package/decorative/inscription/css/inscription.module.css +160 -0
- package/decorative/inscription/tailwind/index.tsx +91 -0
- package/decorative/ornaments/css/index.tsx +136 -0
- package/decorative/ornaments/css/ornaments.module.css +144 -0
- package/decorative/ornaments/tailwind/index.tsx +122 -0
- package/decorative/rune-symbols/css/index.tsx +116 -0
- package/decorative/rune-symbols/css/rune-symbols.module.css +116 -0
- package/decorative/rune-symbols/tailwind/index.tsx +108 -0
- package/decorative/sheet-music/css/index.tsx +144 -0
- package/decorative/sheet-music/css/sheet-music.module.css +152 -0
- package/decorative/sheet-music/tailwind/index.tsx +111 -0
- package/layout/horizontal-scroll/css/horizontal-scroll.module.css +93 -0
- package/{components/layout/horizontal-scroll → layout/horizontal-scroll/css}/index.tsx +41 -5
- package/layout/horizontal-scroll/tailwind/index.tsx +108 -0
- package/layout/spec-grid/css/index.tsx +103 -0
- package/layout/spec-grid/css/spec-grid.module.css +125 -0
- package/layout/spec-grid/tailwind/index.tsx +91 -0
- package/{components/layout/tower-pricing → layout/tower-pricing/css}/index.tsx +43 -8
- package/layout/tower-pricing/css/tower-pricing.module.css +177 -0
- package/layout/tower-pricing/tailwind/index.tsx +106 -0
- package/layout/tracklist/css/index.tsx +96 -0
- package/layout/tracklist/css/tracklist.module.css +141 -0
- package/layout/tracklist/tailwind/index.tsx +92 -0
- package/{components/layout/void-frame → layout/void-frame/css}/index.tsx +31 -3
- package/layout/void-frame/css/void-frame.module.css +141 -0
- package/layout/void-frame/tailwind/index.tsx +64 -0
- package/navigation/brutal-nav/css/brutal-nav.module.css +178 -0
- package/{components/navigation/brutal-nav → navigation/brutal-nav/css}/index.tsx +12 -3
- package/navigation/brutal-nav/tailwind/index.tsx +95 -0
- package/{components/navigation/progress-dots → navigation/progress-dots/css}/index.tsx +7 -2
- package/{components/navigation/progress-dots → navigation/progress-dots/css}/progress-dots.module.css +74 -13
- package/navigation/progress-dots/tailwind/index.tsx +105 -0
- package/{components/navigation/scattered-nav → navigation/scattered-nav/css}/scattered-nav.module.css +9 -1
- package/navigation/scattered-nav/tailwind/index.tsx +77 -0
- package/{components/navigation/scroll-indicator → navigation/scroll-indicator/css}/index.tsx +18 -4
- package/{components/navigation/scroll-indicator → navigation/scroll-indicator/css}/scroll-indicator.module.css +57 -10
- package/navigation/scroll-indicator/tailwind/index.tsx +107 -0
- package/{components/navigation/vertical-nav → navigation/vertical-nav/css}/index.tsx +13 -3
- package/{components/navigation/vertical-nav → navigation/vertical-nav/css}/vertical-nav.module.css +24 -5
- package/navigation/vertical-nav/tailwind/index.tsx +91 -0
- package/package.json +8 -33
- package/bin/cli.js +0 -308
- package/components/backgrounds/light-beams/index.tsx +0 -80
- package/components/backgrounds/light-beams/light-beams.module.css +0 -27
- package/components/buttons/cta-brutal/cta-brutal.module.css +0 -81
- package/components/buttons/dead-button/dead-button.module.css +0 -111
- package/components/buttons/deeper-button/deeper-button.module.css +0 -76
- package/components/buttons/dual-choice/dual-choice.module.css +0 -90
- package/components/buttons/tension-bar/tension-bar.module.css +0 -105
- package/components/decorative/coffee-stain/coffee-stain.module.css +0 -24
- package/components/decorative/coffee-stain/index.tsx +0 -55
- package/components/decorative/ornaments/index.tsx +0 -51
- package/components/decorative/ornaments/ornaments.module.css +0 -33
- package/components/decorative/rune-symbols/index.tsx +0 -55
- package/components/decorative/rune-symbols/rune-symbols.module.css +0 -22
- package/components/layout/horizontal-scroll/horizontal-scroll.module.css +0 -30
- package/components/layout/spec-grid/index.tsx +0 -56
- package/components/layout/spec-grid/spec-grid.module.css +0 -21
- package/components/layout/tower-pricing/tower-pricing.module.css +0 -27
- package/components/layout/tracklist/index.tsx +0 -45
- package/components/layout/tracklist/tracklist.module.css +0 -24
- package/components/layout/void-frame/void-frame.module.css +0 -38
- package/components/navigation/brutal-nav/brutal-nav.module.css +0 -85
- package/components/navigation/hexagon-menu/css/hexagon-menu.module.css +0 -55
- package/components/navigation/hexagon-menu/css/index.tsx +0 -35
- package/components/navigation/hexagon-menu/tailwind/index.tsx +0 -53
- /package/{components/backgrounds → backgrounds}/glow-orbs/glow-orbs.module.css +0 -0
- /package/{components/backgrounds → backgrounds}/glow-orbs/index.tsx +0 -0
- /package/{components/backgrounds → backgrounds}/noise-canvas/index.tsx +0 -0
- /package/{components/backgrounds → backgrounds}/noise-canvas/noise-canvas.module.css +0 -0
- /package/{components/backgrounds → backgrounds}/particle-field/index.tsx +0 -0
- /package/{components/backgrounds → backgrounds}/particle-field/particle-field.module.css +0 -0
- /package/{components/buttons → buttons}/chaos-button/chaos-button.module.css +0 -0
- /package/{components/buttons → buttons}/chaos-button/index.tsx +0 -0
- /package/{components/buttons/dead-button → buttons/dead-button/css}/index.tsx +0 -0
- /package/{components/buttons → buttons}/glitch-button/glitch-button.module.css +0 -0
- /package/{components/buttons → buttons}/glitch-button/index.tsx +0 -0
- /package/{components/chaos-vars.css → chaos-vars.css} +0 -0
- /package/{components/cyber → cyber}/cyber-avatar/css/cyber-avatar.module.css +0 -0
- /package/{components/cyber → cyber}/cyber-avatar/css/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-avatar/tailwind/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-input/css/cyber-input.module.css +0 -0
- /package/{components/cyber → cyber}/cyber-input/css/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-input/tailwind/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-loader/css/cyber-loader.module.css +0 -0
- /package/{components/cyber → cyber}/cyber-loader/css/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-loader/tailwind/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-modal/css/cyber-modal.module.css +0 -0
- /package/{components/cyber → cyber}/cyber-modal/css/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-modal/tailwind/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-slider/css/cyber-slider.module.css +0 -0
- /package/{components/cyber → cyber}/cyber-slider/css/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-slider/tailwind/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-tooltip/css/cyber-tooltip.module.css +0 -0
- /package/{components/cyber → cyber}/cyber-tooltip/css/index.tsx +0 -0
- /package/{components/cyber → cyber}/cyber-tooltip/tailwind/index.tsx +0 -0
- /package/{components/effects → effects}/cursor-follower/cursor-follower.module.css +0 -0
- /package/{components/effects → effects}/cursor-follower/index.tsx +0 -0
- /package/{components/effects → effects}/glitch-image/css/glitch-image.module.css +0 -0
- /package/{components/effects → effects}/glitch-image/css/index.tsx +0 -0
- /package/{components/effects → effects}/glitch-image/tailwind/index.tsx +0 -0
- /package/{components/effects → effects}/glowing-border/css/glowing-border.module.css +0 -0
- /package/{components/effects → effects}/glowing-border/css/index.tsx +0 -0
- /package/{components/effects → effects}/glowing-border/tailwind/index.tsx +0 -0
- /package/{components/effects → effects}/screen-distortion/index.tsx +0 -0
- /package/{components/effects → effects}/screen-distortion/screen-distortion.module.css +0 -0
- /package/{components/effects → effects}/warning-tape/index.tsx +0 -0
- /package/{components/effects → effects}/warning-tape/warning-tape.module.css +0 -0
- /package/{components/layout → layout}/data-grid/css/data-grid.module.css +0 -0
- /package/{components/layout → layout}/data-grid/css/index.tsx +0 -0
- /package/{components/layout → layout}/data-grid/tailwind/index.tsx +0 -0
- /package/{components/layout → layout}/hologram-card/css/hologram-card.module.css +0 -0
- /package/{components/layout → layout}/hologram-card/css/index.tsx +0 -0
- /package/{components/layout → layout}/hologram-card/tailwind/index.tsx +0 -0
- /package/{components/navigation/scattered-nav → navigation/scattered-nav/css}/index.tsx +0 -0
- /package/{components/neon → neon}/neon-alert/css/index.tsx +0 -0
- /package/{components/neon → neon}/neon-alert/css/neon-alert.module.css +0 -0
- /package/{components/neon → neon}/neon-alert/tailwind/index.tsx +0 -0
- /package/{components/neon → neon}/neon-badge/css/index.tsx +0 -0
- /package/{components/neon → neon}/neon-badge/css/neon-badge.module.css +0 -0
- /package/{components/neon → neon}/neon-badge/tailwind/index.tsx +0 -0
- /package/{components/neon → neon}/neon-button/css/index.tsx +0 -0
- /package/{components/neon → neon}/neon-button/css/neon-button.module.css +0 -0
- /package/{components/neon → neon}/neon-button/tailwind/index.tsx +0 -0
- /package/{components/neon → neon}/neon-divider/css/index.tsx +0 -0
- /package/{components/neon → neon}/neon-divider/css/neon-divider.module.css +0 -0
- /package/{components/neon → neon}/neon-divider/tailwind/index.tsx +0 -0
- /package/{components/neon → neon}/neon-progress/css/index.tsx +0 -0
- /package/{components/neon → neon}/neon-progress/css/neon-progress.module.css +0 -0
- /package/{components/neon → neon}/neon-progress/tailwind/index.tsx +0 -0
- /package/{components/neon → neon}/neon-tabs/css/index.tsx +0 -0
- /package/{components/neon → neon}/neon-tabs/css/neon-tabs.module.css +0 -0
- /package/{components/neon → neon}/neon-tabs/tailwind/index.tsx +0 -0
- /package/{components/neon → neon}/neon-toggle/css/index.tsx +0 -0
- /package/{components/neon → neon}/neon-toggle/css/neon-toggle.module.css +0 -0
- /package/{components/neon → neon}/neon-toggle/tailwind/index.tsx +0 -0
- /package/{components/overlays → overlays}/noise-overlay/index.tsx +0 -0
- /package/{components/overlays → overlays}/noise-overlay/noise-overlay.module.css +0 -0
- /package/{components/overlays → overlays}/scanlines/index.tsx +0 -0
- /package/{components/overlays → overlays}/scanlines/scanlines.module.css +0 -0
- /package/{components/overlays → overlays}/static-flicker/index.tsx +0 -0
- /package/{components/overlays → overlays}/static-flicker/static-flicker.module.css +0 -0
- /package/{components/overlays → overlays}/vignette/index.tsx +0 -0
- /package/{components/overlays → overlays}/vignette/vignette.module.css +0 -0
- /package/{components/text → text}/ascii-art/css/ascii-art.module.css +0 -0
- /package/{components/text → text}/ascii-art/css/index.tsx +0 -0
- /package/{components/text → text}/ascii-art/tailwind/index.tsx +0 -0
- /package/{components/text → text}/blood-drip/css/blood-drip.module.css +0 -0
- /package/{components/text → text}/blood-drip/css/index.tsx +0 -0
- /package/{components/text → text}/blood-drip/tailwind/index.tsx +0 -0
- /package/{components/text → text}/char-glitch/css/char-glitch.module.css +0 -0
- /package/{components/text → text}/char-glitch/css/index.tsx +0 -0
- /package/{components/text → text}/char-glitch/tailwind/index.tsx +0 -0
- /package/{components/text → text}/countdown-display/css/countdown-display.module.css +0 -0
- /package/{components/text → text}/countdown-display/css/index.tsx +0 -0
- /package/{components/text → text}/countdown-display/tailwind/index.tsx +0 -0
- /package/{components/text → text}/distortion-text/distortion-text.module.css +0 -0
- /package/{components/text → text}/distortion-text/index.tsx +0 -0
- /package/{components/text → text}/falling-text/falling-text.module.css +0 -0
- /package/{components/text → text}/falling-text/index.tsx +0 -0
- /package/{components/text → text}/flicker-text/flicker-text.module.css +0 -0
- /package/{components/text → text}/flicker-text/index.tsx +0 -0
- /package/{components/text → text}/giant-layers/css/giant-layers.module.css +0 -0
- /package/{components/text → text}/giant-layers/css/index.tsx +0 -0
- /package/{components/text → text}/giant-layers/tailwind/index.tsx +0 -0
- /package/{components/text → text}/glitch-text/glitch-text.module.css +0 -0
- /package/{components/text → text}/glitch-text/index.tsx +0 -0
- /package/{components/text → text}/reveal-text/css/index.tsx +0 -0
- /package/{components/text → text}/reveal-text/css/reveal-text.module.css +0 -0
- /package/{components/text → text}/reveal-text/tailwind/index.tsx +0 -0
- /package/{components/text → text}/rotate-text/css/index.tsx +0 -0
- /package/{components/text → text}/rotate-text/css/rotate-text.module.css +0 -0
- /package/{components/text → text}/rotate-text/tailwind/index.tsx +0 -0
- /package/{components/text → text}/strike-reveal/css/index.tsx +0 -0
- /package/{components/text → text}/strike-reveal/css/strike-reveal.module.css +0 -0
- /package/{components/text → text}/strike-reveal/tailwind/index.tsx +0 -0
- /package/{components/text → text}/terminal-output/css/index.tsx +0 -0
- /package/{components/text → text}/terminal-output/css/terminal-output.module.css +0 -0
- /package/{components/text → text}/terminal-output/tailwind/index.tsx +0 -0
- /package/{components/text → text}/typing-text/css/index.tsx +0 -0
- /package/{components/text → text}/typing-text/css/typing-text.module.css +0 -0
- /package/{components/text → text}/typing-text/tailwind/index.tsx +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { forwardRef, HTMLAttributes, ReactNode, useRef, useState, useEffect } from 'react';
|
|
4
|
+
|
|
5
|
+
export interface HorizontalScrollProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
variant?: 'cyan' | 'green' | 'amber' | 'blood';
|
|
8
|
+
panelSize?: 'full' | 'large' | 'medium' | 'small';
|
|
9
|
+
fadeEdges?: boolean;
|
|
10
|
+
showIndicators?: boolean;
|
|
11
|
+
gap?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const variantStyles = {
|
|
15
|
+
cyan: { scrollbar: 'scrollbar-thumb-cyan-400', indicator: 'border-cyan-400 hover:bg-cyan-400 hover:shadow-[0_0_10px_#00f0ff]' },
|
|
16
|
+
green: { scrollbar: 'scrollbar-thumb-emerald-400', indicator: 'border-emerald-400 hover:bg-emerald-400 hover:shadow-[0_0_10px_#00ff88]' },
|
|
17
|
+
amber: { scrollbar: 'scrollbar-thumb-amber-400', indicator: 'border-amber-400 hover:bg-amber-400 hover:shadow-[0_0_10px_#ffaa00]' },
|
|
18
|
+
blood: { scrollbar: 'scrollbar-thumb-red-800', indicator: 'border-red-800 hover:bg-red-800 hover:shadow-[0_0_10px_#8b1a1a]' },
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const sizeClasses = {
|
|
22
|
+
full: 'w-screen',
|
|
23
|
+
large: 'w-[80vw]',
|
|
24
|
+
medium: 'w-[60vw]',
|
|
25
|
+
small: 'w-[40vw]',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const HorizontalScroll = forwardRef<HTMLDivElement, HorizontalScrollProps>(
|
|
29
|
+
({ children, variant = 'cyan', panelSize = 'large', fadeEdges = false, showIndicators = false, gap = 2, className = '', ...props }, ref) => {
|
|
30
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
31
|
+
const [activeIndex, setActiveIndex] = useState(0);
|
|
32
|
+
const [panelCount, setPanelCount] = useState(0);
|
|
33
|
+
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
const container = containerRef.current;
|
|
36
|
+
if (!container) return;
|
|
37
|
+
const panels = container.querySelectorAll('[data-panel]');
|
|
38
|
+
setPanelCount(panels.length);
|
|
39
|
+
|
|
40
|
+
const handleScroll = () => {
|
|
41
|
+
if (!container || panels.length === 0) return;
|
|
42
|
+
const panelWidth = container.scrollWidth / panels.length;
|
|
43
|
+
setActiveIndex(Math.round(container.scrollLeft / panelWidth));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
container.addEventListener('scroll', handleScroll, { passive: true });
|
|
47
|
+
return () => container.removeEventListener('scroll', handleScroll);
|
|
48
|
+
}, [children]);
|
|
49
|
+
|
|
50
|
+
const scrollToPanel = (index: number) => {
|
|
51
|
+
const container = containerRef.current;
|
|
52
|
+
if (!container || panelCount === 0) return;
|
|
53
|
+
const panelWidth = container.scrollWidth / panelCount;
|
|
54
|
+
container.scrollTo({ left: panelWidth * index, behavior: 'smooth' });
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
const colors = variantStyles[variant];
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<div className={className}>
|
|
61
|
+
<div
|
|
62
|
+
ref={(node) => {
|
|
63
|
+
(containerRef as React.MutableRefObject<HTMLDivElement | null>).current = node;
|
|
64
|
+
if (typeof ref === 'function') ref(node);
|
|
65
|
+
else if (ref) ref.current = node;
|
|
66
|
+
}}
|
|
67
|
+
className={`
|
|
68
|
+
w-full overflow-x-auto overflow-y-hidden snap-x snap-mandatory scroll-smooth
|
|
69
|
+
scrollbar-thin scrollbar-track-black/30 ${colors.scrollbar}
|
|
70
|
+
${fadeEdges ? '[mask-image:linear-gradient(90deg,transparent_0%,black_5%,black_95%,transparent_100%)]' : ''}
|
|
71
|
+
`}
|
|
72
|
+
{...props}
|
|
73
|
+
>
|
|
74
|
+
<div className="flex w-max" style={{ gap: `${gap}rem`, padding: '1rem 0' }}>
|
|
75
|
+
{Array.isArray(children)
|
|
76
|
+
? children.map((child, i) => (
|
|
77
|
+
<div key={i} data-panel className={`flex-none snap-start ${sizeClasses[panelSize]}`}>
|
|
78
|
+
{child}
|
|
79
|
+
</div>
|
|
80
|
+
))
|
|
81
|
+
: <div data-panel className={`flex-none snap-start ${sizeClasses[panelSize]}`}>{children}</div>
|
|
82
|
+
}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
{showIndicators && panelCount > 1 && (
|
|
87
|
+
<div className="flex justify-center gap-2 mt-4">
|
|
88
|
+
{Array.from({ length: panelCount }).map((_, i) => (
|
|
89
|
+
<button
|
|
90
|
+
key={i}
|
|
91
|
+
className={`
|
|
92
|
+
w-2 h-2 rounded-full bg-black/30 border transition-all duration-300
|
|
93
|
+
${colors.indicator}
|
|
94
|
+
${i === activeIndex ? `${variant === 'cyan' ? 'bg-cyan-400 shadow-[0_0_10px_#00f0ff]' : variant === 'green' ? 'bg-emerald-400 shadow-[0_0_10px_#00ff88]' : variant === 'amber' ? 'bg-amber-400 shadow-[0_0_10px_#ffaa00]' : 'bg-red-800 shadow-[0_0_10px_#8b1a1a]'}` : ''}
|
|
95
|
+
`}
|
|
96
|
+
onClick={() => scrollToPanel(i)}
|
|
97
|
+
aria-label={`Go to panel ${i + 1}`}
|
|
98
|
+
/>
|
|
99
|
+
))}
|
|
100
|
+
</div>
|
|
101
|
+
)}
|
|
102
|
+
</div>
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
HorizontalScroll.displayName = 'HorizontalScroll';
|
|
108
|
+
export default HorizontalScroll;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { forwardRef, HTMLAttributes } from 'react';
|
|
4
|
+
import styles from './spec-grid.module.css';
|
|
5
|
+
|
|
6
|
+
export interface SpecItem {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
unit?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
highlighted?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SpecGridProps extends HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
/** Spec items */
|
|
17
|
+
specs: SpecItem[];
|
|
18
|
+
/** Color variant */
|
|
19
|
+
variant?: 'cyan' | 'green' | 'amber' | 'blood';
|
|
20
|
+
/** Grid columns */
|
|
21
|
+
columns?: number;
|
|
22
|
+
/** Show terminal header */
|
|
23
|
+
showHeader?: boolean;
|
|
24
|
+
/** Header title */
|
|
25
|
+
headerTitle?: string;
|
|
26
|
+
/** Compact mode */
|
|
27
|
+
compact?: boolean;
|
|
28
|
+
/** Striped rows */
|
|
29
|
+
striped?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const SpecGrid = forwardRef<HTMLDivElement, SpecGridProps>(
|
|
33
|
+
(
|
|
34
|
+
{
|
|
35
|
+
specs,
|
|
36
|
+
variant = 'cyan',
|
|
37
|
+
columns,
|
|
38
|
+
showHeader = false,
|
|
39
|
+
headerTitle = 'SYSTEM SPECS',
|
|
40
|
+
compact = false,
|
|
41
|
+
striped = false,
|
|
42
|
+
className,
|
|
43
|
+
style,
|
|
44
|
+
...props
|
|
45
|
+
},
|
|
46
|
+
ref
|
|
47
|
+
) => {
|
|
48
|
+
return (
|
|
49
|
+
<div
|
|
50
|
+
ref={ref}
|
|
51
|
+
className={`
|
|
52
|
+
${styles.grid}
|
|
53
|
+
${styles[variant]}
|
|
54
|
+
${compact ? styles.compact : ''}
|
|
55
|
+
${striped ? styles.striped : ''}
|
|
56
|
+
${className || ''}
|
|
57
|
+
`}
|
|
58
|
+
style={{
|
|
59
|
+
gridTemplateColumns: columns ? `repeat(${columns}, 1fr)` : undefined,
|
|
60
|
+
...style,
|
|
61
|
+
}}
|
|
62
|
+
{...props}
|
|
63
|
+
>
|
|
64
|
+
{showHeader && (
|
|
65
|
+
<div className={styles.header}>
|
|
66
|
+
<span>{headerTitle}</span>
|
|
67
|
+
<div className={styles.headerDots}>
|
|
68
|
+
<span className={styles.dot} />
|
|
69
|
+
<span className={styles.dot} />
|
|
70
|
+
<span className={styles.dot} />
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
)}
|
|
74
|
+
|
|
75
|
+
{specs.map((spec, index) => (
|
|
76
|
+
<div
|
|
77
|
+
key={index}
|
|
78
|
+
className={`
|
|
79
|
+
${styles.item}
|
|
80
|
+
${spec.icon ? styles.hasIcon : ''}
|
|
81
|
+
${spec.highlighted ? styles.highlighted : ''}
|
|
82
|
+
`}
|
|
83
|
+
>
|
|
84
|
+
{spec.icon && <span className={styles.icon}>{spec.icon}</span>}
|
|
85
|
+
<div className={styles.content}>
|
|
86
|
+
<span className={styles.label}>{spec.label}</span>
|
|
87
|
+
<span className={styles.value}>
|
|
88
|
+
{spec.value}
|
|
89
|
+
{spec.unit && <span className={styles.unit}>{spec.unit}</span>}
|
|
90
|
+
</span>
|
|
91
|
+
{spec.description && (
|
|
92
|
+
<span className={styles.description}>{spec.description}</span>
|
|
93
|
+
)}
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
))}
|
|
97
|
+
</div>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
SpecGrid.displayName = 'SpecGrid';
|
|
103
|
+
export default SpecGrid;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.grid {
|
|
2
|
+
--spec-accent: #00f0ff;
|
|
3
|
+
--spec-bg: rgba(0, 0, 0, 0.5);
|
|
4
|
+
--spec-border: rgba(255, 255, 255, 0.1);
|
|
5
|
+
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
8
|
+
gap: 1px;
|
|
9
|
+
background: var(--spec-border);
|
|
10
|
+
border: 1px solid var(--spec-border);
|
|
11
|
+
font-family: 'Share Tech Mono', monospace;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.item {
|
|
15
|
+
padding: 1.5rem;
|
|
16
|
+
background: var(--spec-bg);
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 0.5rem;
|
|
20
|
+
transition: all 0.3s ease;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.item:hover {
|
|
24
|
+
background: rgba(0, 240, 255, 0.05);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.label {
|
|
28
|
+
font-size: 0.65rem;
|
|
29
|
+
text-transform: uppercase;
|
|
30
|
+
letter-spacing: 0.2em;
|
|
31
|
+
color: var(--spec-accent);
|
|
32
|
+
opacity: 0.8;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.value {
|
|
36
|
+
font-size: 1.5rem;
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
color: #fff;
|
|
39
|
+
line-height: 1.2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.unit {
|
|
43
|
+
font-size: 0.75rem;
|
|
44
|
+
color: rgba(255, 255, 255, 0.4);
|
|
45
|
+
margin-left: 0.25rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.description {
|
|
49
|
+
font-size: 0.75rem;
|
|
50
|
+
color: rgba(255, 255, 255, 0.5);
|
|
51
|
+
margin-top: 0.5rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* With icons */
|
|
55
|
+
.hasIcon {
|
|
56
|
+
flex-direction: row;
|
|
57
|
+
align-items: flex-start;
|
|
58
|
+
gap: 1rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.icon {
|
|
62
|
+
font-size: 1.5rem;
|
|
63
|
+
color: var(--spec-accent);
|
|
64
|
+
opacity: 0.6;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.content {
|
|
68
|
+
flex: 1;
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
gap: 0.25rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Highlight important specs */
|
|
75
|
+
.highlighted {
|
|
76
|
+
background: rgba(0, 240, 255, 0.1);
|
|
77
|
+
border-left: 2px solid var(--spec-accent);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Terminal style header */
|
|
81
|
+
.header {
|
|
82
|
+
grid-column: 1 / -1;
|
|
83
|
+
padding: 0.75rem 1.5rem;
|
|
84
|
+
background: var(--spec-accent);
|
|
85
|
+
color: #000;
|
|
86
|
+
font-size: 0.7rem;
|
|
87
|
+
font-weight: 700;
|
|
88
|
+
text-transform: uppercase;
|
|
89
|
+
letter-spacing: 0.2em;
|
|
90
|
+
display: flex;
|
|
91
|
+
justify-content: space-between;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.headerDots {
|
|
96
|
+
display: flex;
|
|
97
|
+
gap: 0.5rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dot {
|
|
101
|
+
width: 8px;
|
|
102
|
+
height: 8px;
|
|
103
|
+
border-radius: 50%;
|
|
104
|
+
background: rgba(0, 0, 0, 0.3);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Variants */
|
|
108
|
+
.cyan { --spec-accent: #00f0ff; }
|
|
109
|
+
.green { --spec-accent: #00ff88; }
|
|
110
|
+
.amber { --spec-accent: #ffaa00; }
|
|
111
|
+
.blood { --spec-accent: #8b1a1a; }
|
|
112
|
+
|
|
113
|
+
/* Compact mode */
|
|
114
|
+
.compact .item {
|
|
115
|
+
padding: 1rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.compact .value {
|
|
119
|
+
font-size: 1.25rem;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Striped */
|
|
123
|
+
.striped .item:nth-child(even) {
|
|
124
|
+
background: rgba(255, 255, 255, 0.02);
|
|
125
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { forwardRef, HTMLAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
export interface SpecItem {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string | number;
|
|
8
|
+
unit?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
highlighted?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface SpecGridProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
specs: SpecItem[];
|
|
16
|
+
variant?: 'cyan' | 'green' | 'amber' | 'blood';
|
|
17
|
+
columns?: number;
|
|
18
|
+
showHeader?: boolean;
|
|
19
|
+
headerTitle?: string;
|
|
20
|
+
compact?: boolean;
|
|
21
|
+
striped?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const variantStyles = {
|
|
25
|
+
cyan: { accent: 'text-cyan-400', headerBg: 'bg-cyan-400', hoverBg: 'hover:bg-cyan-400/5', borderHighlight: 'border-l-cyan-400' },
|
|
26
|
+
green: { accent: 'text-emerald-400', headerBg: 'bg-emerald-400', hoverBg: 'hover:bg-emerald-400/5', borderHighlight: 'border-l-emerald-400' },
|
|
27
|
+
amber: { accent: 'text-amber-400', headerBg: 'bg-amber-400', hoverBg: 'hover:bg-amber-400/5', borderHighlight: 'border-l-amber-400' },
|
|
28
|
+
blood: { accent: 'text-red-800', headerBg: 'bg-red-800', hoverBg: 'hover:bg-red-800/5', borderHighlight: 'border-l-red-800' },
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const SpecGrid = forwardRef<HTMLDivElement, SpecGridProps>(
|
|
32
|
+
({ specs, variant = 'cyan', columns, showHeader = false, headerTitle = 'SYSTEM SPECS', compact = false, striped = false, className = '', style, ...props }, ref) => {
|
|
33
|
+
const colors = variantStyles[variant];
|
|
34
|
+
const gridCols = columns ? { gridTemplateColumns: `repeat(${columns}, 1fr)` } : {};
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<div
|
|
38
|
+
ref={ref}
|
|
39
|
+
className={`
|
|
40
|
+
grid auto-rows-auto gap-px border border-white/10 bg-white/10
|
|
41
|
+
font-['Share_Tech_Mono',monospace]
|
|
42
|
+
${!columns ? 'grid-cols-[repeat(auto-fit,minmax(200px,1fr))]' : ''}
|
|
43
|
+
${className}
|
|
44
|
+
`}
|
|
45
|
+
style={{ ...gridCols, ...style }}
|
|
46
|
+
{...props}
|
|
47
|
+
>
|
|
48
|
+
{showHeader && (
|
|
49
|
+
<div className={`col-span-full py-3 px-6 ${colors.headerBg} text-black text-[0.7rem] font-bold uppercase tracking-[0.2em] flex justify-between items-center`}>
|
|
50
|
+
<span>{headerTitle}</span>
|
|
51
|
+
<div className="flex gap-2">
|
|
52
|
+
<span className="w-2 h-2 rounded-full bg-black/30" />
|
|
53
|
+
<span className="w-2 h-2 rounded-full bg-black/30" />
|
|
54
|
+
<span className="w-2 h-2 rounded-full bg-black/30" />
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
)}
|
|
58
|
+
|
|
59
|
+
{specs.map((spec, index) => (
|
|
60
|
+
<div
|
|
61
|
+
key={index}
|
|
62
|
+
className={`
|
|
63
|
+
${compact ? 'p-4' : 'p-6'} bg-black/50 flex gap-4 transition-all duration-300
|
|
64
|
+
${colors.hoverBg}
|
|
65
|
+
${spec.icon ? 'flex-row items-start' : 'flex-col gap-2'}
|
|
66
|
+
${spec.highlighted ? `bg-cyan-400/10 border-l-2 ${colors.borderHighlight}` : ''}
|
|
67
|
+
${striped && index % 2 === 1 ? 'bg-white/[0.02]' : ''}
|
|
68
|
+
`}
|
|
69
|
+
>
|
|
70
|
+
{spec.icon && <span className={`text-2xl ${colors.accent} opacity-60`}>{spec.icon}</span>}
|
|
71
|
+
<div className="flex flex-col gap-1 flex-1">
|
|
72
|
+
<span className={`text-[0.65rem] uppercase tracking-[0.2em] ${colors.accent} opacity-80`}>
|
|
73
|
+
{spec.label}
|
|
74
|
+
</span>
|
|
75
|
+
<span className={`${compact ? 'text-xl' : 'text-2xl'} font-bold text-white leading-tight`}>
|
|
76
|
+
{spec.value}
|
|
77
|
+
{spec.unit && <span className="text-xs text-white/40 ml-1">{spec.unit}</span>}
|
|
78
|
+
</span>
|
|
79
|
+
{spec.description && (
|
|
80
|
+
<span className="text-xs text-white/50 mt-2">{spec.description}</span>
|
|
81
|
+
)}
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
))}
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
|
|
90
|
+
SpecGrid.displayName = 'SpecGrid';
|
|
91
|
+
export default SpecGrid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { forwardRef, HTMLAttributes } from 'react';
|
|
3
|
+
import { forwardRef, HTMLAttributes, ReactNode } from 'react';
|
|
4
4
|
import styles from './tower-pricing.module.css';
|
|
5
5
|
|
|
6
6
|
export interface PricingTier {
|
|
@@ -16,18 +16,40 @@ export interface PricingTier {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface TowerPricingProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
/** Pricing tiers */
|
|
19
20
|
tiers: PricingTier[];
|
|
21
|
+
/** Color variant */
|
|
20
22
|
variant?: 'gold' | 'blood' | 'cyan' | 'bone';
|
|
23
|
+
/** Show connectors between tiers */
|
|
21
24
|
showConnectors?: boolean;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
export const TowerPricing = forwardRef<HTMLDivElement, TowerPricingProps>(
|
|
25
|
-
(
|
|
28
|
+
(
|
|
29
|
+
{
|
|
30
|
+
tiers,
|
|
31
|
+
variant = 'gold',
|
|
32
|
+
showConnectors = false,
|
|
33
|
+
className,
|
|
34
|
+
...props
|
|
35
|
+
},
|
|
36
|
+
ref
|
|
37
|
+
) => {
|
|
26
38
|
return (
|
|
27
|
-
<div
|
|
39
|
+
<div
|
|
40
|
+
ref={ref}
|
|
41
|
+
className={`${styles.tower} ${styles[variant]} ${className || ''}`}
|
|
42
|
+
{...props}
|
|
43
|
+
>
|
|
28
44
|
{tiers.map((tier, index) => (
|
|
29
|
-
<div
|
|
30
|
-
|
|
45
|
+
<div
|
|
46
|
+
key={tier.name}
|
|
47
|
+
className={`${styles.tier} ${tier.featured ? styles.featured : ''}`}
|
|
48
|
+
>
|
|
49
|
+
{tier.featured && tier.featuredLabel && (
|
|
50
|
+
<span className={styles.featuredBadge}>{tier.featuredLabel}</span>
|
|
51
|
+
)}
|
|
52
|
+
|
|
31
53
|
<div className={styles.tierHeader}>
|
|
32
54
|
<span className={styles.tierName}>{tier.name}</span>
|
|
33
55
|
<div className={styles.tierPrice}>
|
|
@@ -36,15 +58,28 @@ export const TowerPricing = forwardRef<HTMLDivElement, TowerPricingProps>(
|
|
|
36
58
|
{tier.period && <span className={styles.period}>/{tier.period}</span>}
|
|
37
59
|
</div>
|
|
38
60
|
</div>
|
|
61
|
+
|
|
39
62
|
<ul className={styles.tierFeatures}>
|
|
40
63
|
{tier.features.map((feature, i) => (
|
|
41
|
-
<li key={i} className={styles.feature}
|
|
64
|
+
<li key={i} className={styles.feature}>
|
|
65
|
+
<span className={styles.featureIcon}>✦</span>
|
|
66
|
+
{feature}
|
|
67
|
+
</li>
|
|
42
68
|
))}
|
|
43
69
|
</ul>
|
|
70
|
+
|
|
44
71
|
<div className={styles.tierAction}>
|
|
45
|
-
<button
|
|
72
|
+
<button
|
|
73
|
+
className={styles.actionButton}
|
|
74
|
+
onClick={tier.onSelect}
|
|
75
|
+
>
|
|
76
|
+
{tier.buttonText || 'Select'}
|
|
77
|
+
</button>
|
|
46
78
|
</div>
|
|
47
|
-
|
|
79
|
+
|
|
80
|
+
{showConnectors && index < tiers.length - 1 && (
|
|
81
|
+
<span className={styles.connector} />
|
|
82
|
+
)}
|
|
48
83
|
</div>
|
|
49
84
|
))}
|
|
50
85
|
</div>
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
.tower {
|
|
2
|
+
--tower-accent: #c9a227;
|
|
3
|
+
--tower-bg: rgba(0, 0, 0, 0.6);
|
|
4
|
+
--tower-border: rgba(255, 255, 255, 0.1);
|
|
5
|
+
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 0;
|
|
9
|
+
max-width: 400px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tier {
|
|
13
|
+
position: relative;
|
|
14
|
+
padding: 2rem;
|
|
15
|
+
background: var(--tower-bg);
|
|
16
|
+
border: 1px solid var(--tower-border);
|
|
17
|
+
border-top: none;
|
|
18
|
+
transition: all 0.3s ease;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.tier:first-child {
|
|
22
|
+
border-top: 1px solid var(--tower-border);
|
|
23
|
+
border-radius: 4px 4px 0 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.tier:last-child {
|
|
27
|
+
border-radius: 0 0 4px 4px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.tier:hover {
|
|
31
|
+
background: rgba(201, 162, 39, 0.05);
|
|
32
|
+
border-color: var(--tower-accent);
|
|
33
|
+
z-index: 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Featured tier */
|
|
37
|
+
.featured {
|
|
38
|
+
border-color: var(--tower-accent);
|
|
39
|
+
background: rgba(201, 162, 39, 0.1);
|
|
40
|
+
transform: scale(1.02);
|
|
41
|
+
z-index: 2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.featured::before {
|
|
45
|
+
content: '';
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: -1px;
|
|
48
|
+
right: -1px;
|
|
49
|
+
top: -1px;
|
|
50
|
+
height: 3px;
|
|
51
|
+
background: var(--tower-accent);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.featuredBadge {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: -12px;
|
|
57
|
+
left: 50%;
|
|
58
|
+
transform: translateX(-50%);
|
|
59
|
+
padding: 0.25rem 1rem;
|
|
60
|
+
background: var(--tower-accent);
|
|
61
|
+
color: #000;
|
|
62
|
+
font-size: 0.65rem;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
text-transform: uppercase;
|
|
65
|
+
letter-spacing: 0.1em;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.tierHeader {
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
align-items: baseline;
|
|
72
|
+
margin-bottom: 1rem;
|
|
73
|
+
padding-bottom: 1rem;
|
|
74
|
+
border-bottom: 1px solid var(--tower-border);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.tierName {
|
|
78
|
+
font-family: 'Cinzel', serif;
|
|
79
|
+
font-size: 1.25rem;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
color: var(--tower-accent);
|
|
82
|
+
letter-spacing: 0.1em;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tierPrice {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: baseline;
|
|
88
|
+
gap: 0.25rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.currency {
|
|
92
|
+
font-size: 1rem;
|
|
93
|
+
color: rgba(255, 255, 255, 0.5);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.amount {
|
|
97
|
+
font-size: 2rem;
|
|
98
|
+
font-weight: 700;
|
|
99
|
+
color: #fff;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.period {
|
|
103
|
+
font-size: 0.75rem;
|
|
104
|
+
color: rgba(255, 255, 255, 0.4);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.tierFeatures {
|
|
108
|
+
list-style: none;
|
|
109
|
+
margin: 1rem 0;
|
|
110
|
+
padding: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.feature {
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: 0.75rem;
|
|
117
|
+
padding: 0.5rem 0;
|
|
118
|
+
font-size: 0.875rem;
|
|
119
|
+
color: rgba(255, 255, 255, 0.8);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.featureIcon {
|
|
123
|
+
color: var(--tower-accent);
|
|
124
|
+
font-size: 0.75rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.tierAction {
|
|
128
|
+
margin-top: 1.5rem;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.actionButton {
|
|
132
|
+
width: 100%;
|
|
133
|
+
padding: 0.875rem 1.5rem;
|
|
134
|
+
background: transparent;
|
|
135
|
+
border: 1px solid var(--tower-accent);
|
|
136
|
+
color: var(--tower-accent);
|
|
137
|
+
font-family: inherit;
|
|
138
|
+
font-size: 0.8rem;
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
text-transform: uppercase;
|
|
141
|
+
letter-spacing: 0.15em;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
transition: all 0.3s ease;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.actionButton:hover {
|
|
147
|
+
background: var(--tower-accent);
|
|
148
|
+
color: #000;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.featured .actionButton {
|
|
152
|
+
background: var(--tower-accent);
|
|
153
|
+
color: #000;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.featured .actionButton:hover {
|
|
157
|
+
background: transparent;
|
|
158
|
+
color: var(--tower-accent);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Variants */
|
|
162
|
+
.gold { --tower-accent: #c9a227; }
|
|
163
|
+
.blood { --tower-accent: #8b1a1a; }
|
|
164
|
+
.cyan { --tower-accent: #00f0ff; }
|
|
165
|
+
.bone { --tower-accent: #d4c5a9; }
|
|
166
|
+
|
|
167
|
+
/* Connector lines between tiers */
|
|
168
|
+
.connector {
|
|
169
|
+
position: absolute;
|
|
170
|
+
left: 50%;
|
|
171
|
+
bottom: -1px;
|
|
172
|
+
transform: translateX(-50%);
|
|
173
|
+
width: 1px;
|
|
174
|
+
height: 20px;
|
|
175
|
+
background: var(--tower-accent);
|
|
176
|
+
opacity: 0.3;
|
|
177
|
+
}
|