@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
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
.frame {
|
|
2
|
-
--frame-color: #c9a227;
|
|
3
|
-
--frame-bg: rgba(0, 0, 0, 0.5);
|
|
4
|
-
position: relative;
|
|
5
|
-
padding: 2rem;
|
|
6
|
-
background: var(--frame-bg);
|
|
7
|
-
border: 1px solid var(--frame-color);
|
|
8
|
-
}
|
|
9
|
-
.corner { position: absolute; width: 20px; height: 20px; border-color: var(--frame-color); border-style: solid; }
|
|
10
|
-
.cornerTopLeft { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
|
|
11
|
-
.cornerTopRight { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
|
|
12
|
-
.cornerBottomLeft { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
|
|
13
|
-
.cornerBottomRight { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
|
|
14
|
-
.extended .corner { width: 30px; height: 30px; }
|
|
15
|
-
.extended .corner::before, .extended .corner::after { content: ''; position: absolute; background: var(--frame-color); }
|
|
16
|
-
.extended .cornerTopLeft::before, .extended .cornerBottomLeft::before { left: 5px; width: 1px; height: 15px; }
|
|
17
|
-
.extended .cornerTopLeft::before { top: 5px; }
|
|
18
|
-
.extended .cornerBottomLeft::before { bottom: 5px; }
|
|
19
|
-
.extended .cornerTopRight::before, .extended .cornerBottomRight::before { right: 5px; width: 1px; height: 15px; }
|
|
20
|
-
.extended .cornerTopRight::before { top: 5px; }
|
|
21
|
-
.extended .cornerBottomRight::before { bottom: 5px; }
|
|
22
|
-
.extended .cornerTopLeft::after, .extended .cornerTopRight::after { top: 5px; height: 1px; width: 15px; }
|
|
23
|
-
.extended .cornerTopLeft::after { left: 5px; }
|
|
24
|
-
.extended .cornerTopRight::after { right: 5px; }
|
|
25
|
-
.extended .cornerBottomLeft::after, .extended .cornerBottomRight::after { bottom: 5px; height: 1px; width: 15px; }
|
|
26
|
-
.extended .cornerBottomLeft::after { left: 5px; }
|
|
27
|
-
.extended .cornerBottomRight::after { right: 5px; }
|
|
28
|
-
.ornate .corner { width: 40px; height: 40px; }
|
|
29
|
-
.ornate::before { content: '✦'; position: absolute; top: -0.5em; left: 50%; transform: translateX(-50%); color: var(--frame-color); font-size: 1rem; }
|
|
30
|
-
.ornate::after { content: '✦'; position: absolute; bottom: -0.5em; left: 50%; transform: translateX(-50%); color: var(--frame-color); font-size: 1rem; }
|
|
31
|
-
.gold { --frame-color: #c9a227; }
|
|
32
|
-
.bone { --frame-color: #d4c5a9; }
|
|
33
|
-
.blood { --frame-color: #8b1a1a; }
|
|
34
|
-
.iron { --frame-color: #4a4a4a; }
|
|
35
|
-
.cyan { --frame-color: #00f0ff; }
|
|
36
|
-
.glow { box-shadow: 0 0 20px rgba(201, 162, 39, 0.2); }
|
|
37
|
-
.glow.cyan { box-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
|
|
38
|
-
.glow.blood { box-shadow: 0 0 20px rgba(139, 26, 26, 0.3); }
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/* brutal-nav - Nav brutaliste chaotique avec status */
|
|
2
|
-
.nav {
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
right: 0;
|
|
7
|
-
z-index: 1000;
|
|
8
|
-
background: var(--chaos-void, #0a0a0a);
|
|
9
|
-
border-bottom: 3px solid var(--chaos-blood, #ff0040);
|
|
10
|
-
font-family: var(--chaos-font-mono, 'Space Mono', monospace);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.inner { display: flex; align-items: stretch; height: 60px; }
|
|
14
|
-
|
|
15
|
-
.brand {
|
|
16
|
-
background: var(--chaos-blood, #ff0040);
|
|
17
|
-
color: var(--chaos-void, #0a0a0a);
|
|
18
|
-
font-family: var(--chaos-font-display, 'Bebas Neue', sans-serif);
|
|
19
|
-
font-size: 1.5rem;
|
|
20
|
-
padding: 0 2rem;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
letter-spacing: 0.1em;
|
|
24
|
-
text-transform: uppercase;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.links { display: flex; flex: 1; }
|
|
28
|
-
|
|
29
|
-
.link {
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
padding: 0 1.5rem;
|
|
33
|
-
font-size: 0.75rem;
|
|
34
|
-
letter-spacing: 0.15em;
|
|
35
|
-
text-transform: uppercase;
|
|
36
|
-
color: var(--chaos-bone-dark, #888);
|
|
37
|
-
text-decoration: none;
|
|
38
|
-
border-right: 1px solid rgba(255, 255, 255, 0.1);
|
|
39
|
-
position: relative;
|
|
40
|
-
transition: all 0.15s;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.link:hover { background: var(--chaos-blood, #ff0040); color: var(--chaos-void, #0a0a0a); }
|
|
44
|
-
|
|
45
|
-
.linkActive {
|
|
46
|
-
background: rgba(255, 0, 64, 0.1);
|
|
47
|
-
color: var(--chaos-blood, #ff0040);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.linkActive::after {
|
|
51
|
-
content: '';
|
|
52
|
-
position: absolute;
|
|
53
|
-
bottom: 0;
|
|
54
|
-
left: 0;
|
|
55
|
-
right: 0;
|
|
56
|
-
height: 3px;
|
|
57
|
-
background: var(--chaos-blood, #ff0040);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.status {
|
|
61
|
-
margin-left: auto;
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
gap: 2rem;
|
|
65
|
-
padding: 0 2rem;
|
|
66
|
-
background: rgba(0, 0, 0, 0.5);
|
|
67
|
-
border-left: 1px solid rgba(255, 255, 255, 0.1);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.statusItem { display: flex; flex-direction: column; gap: 0.2rem; }
|
|
71
|
-
.statusLabel { font-size: 0.5rem; color: var(--chaos-bone-dark, #666); letter-spacing: 0.2em; text-transform: uppercase; }
|
|
72
|
-
.statusValue { font-size: 0.7rem; color: var(--chaos-blood, #ff0040); font-weight: bold; }
|
|
73
|
-
.statusOnline { display: flex; align-items: center; gap: 0.5rem; }
|
|
74
|
-
|
|
75
|
-
.dot { width: 8px; height: 8px; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
|
|
76
|
-
.dotOnline { background: #00ff00; box-shadow: 0 0 10px #00ff00; }
|
|
77
|
-
.dotOffline { background: #ff0040; }
|
|
78
|
-
.dotWarning { background: #ffaa00; animation: blink 0.5s infinite; }
|
|
79
|
-
|
|
80
|
-
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
|
|
81
|
-
@keyframes blink { 50% { opacity: 0; } }
|
|
82
|
-
|
|
83
|
-
.variantHeavy { border-bottom-width: 5px; }
|
|
84
|
-
.variantHeavy .brand { clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); padding-right: 3rem; }
|
|
85
|
-
.variantDouble { border-bottom: 2px solid var(--chaos-blood, #ff0040); box-shadow: 0 4px 0 0 var(--chaos-blood, #ff0040); }
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
.menu {
|
|
2
|
-
--hex-color: #00f0ff;
|
|
3
|
-
--hex-size: 5rem;
|
|
4
|
-
--hex-offset: 2.5rem;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-wrap: wrap;
|
|
7
|
-
gap: 0.5rem;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.cyan { --hex-color: #00f0ff; }
|
|
12
|
-
.pink { --hex-color: #ff00ff; }
|
|
13
|
-
.green { --hex-color: #00ff88; }
|
|
14
|
-
.purple { --hex-color: #a855f7; }
|
|
15
|
-
|
|
16
|
-
.sm { --hex-size: 3.75rem; --hex-offset: 1.875rem; }
|
|
17
|
-
.md { --hex-size: 5rem; --hex-offset: 2.5rem; }
|
|
18
|
-
.lg { --hex-size: 6.25rem; --hex-offset: 3.125rem; }
|
|
19
|
-
|
|
20
|
-
.item {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
width: var(--hex-size);
|
|
26
|
-
height: calc(var(--hex-size) * 1.1547);
|
|
27
|
-
padding: 0.5rem;
|
|
28
|
-
background: rgba(0, 0, 0, 0.6);
|
|
29
|
-
border: 2px solid var(--hex-color);
|
|
30
|
-
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
transition: all 0.3s ease;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.item:hover {
|
|
36
|
-
background: rgba(0, 240, 255, 0.2);
|
|
37
|
-
box-shadow: 0 0 20px var(--hex-color);
|
|
38
|
-
transform: scale(1.1);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.icon {
|
|
42
|
-
font-size: calc(var(--hex-size) / 3);
|
|
43
|
-
color: var(--hex-color);
|
|
44
|
-
margin-bottom: 0.25rem;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.label {
|
|
48
|
-
font-family: var(--font-display, 'Orbitron', sans-serif);
|
|
49
|
-
font-size: 0.5625rem;
|
|
50
|
-
font-weight: 600;
|
|
51
|
-
text-transform: uppercase;
|
|
52
|
-
letter-spacing: 0.0625em;
|
|
53
|
-
color: rgba(255, 255, 255, 0.9);
|
|
54
|
-
text-align: center;
|
|
55
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { forwardRef, HTMLAttributes } from 'react';
|
|
4
|
-
import styles from './hexagon-menu.module.css';
|
|
5
|
-
|
|
6
|
-
export interface HexagonMenuItem {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
icon?: React.ReactNode;
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface HexagonMenuProps extends HTMLAttributes<HTMLElement> {
|
|
14
|
-
items: HexagonMenuItem[];
|
|
15
|
-
variant?: 'cyan' | 'pink' | 'green' | 'purple';
|
|
16
|
-
size?: 'sm' | 'md' | 'lg';
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const HexagonMenu = forwardRef<HTMLElement, HexagonMenuProps>(
|
|
20
|
-
({ items, variant = 'cyan', size = 'md', className, ...props }, ref) => {
|
|
21
|
-
return (
|
|
22
|
-
<nav ref={ref} className={`${styles.menu} ${styles[variant]} ${styles[size]} ${className || ''}`} {...props}>
|
|
23
|
-
{items.map((item, i) => (
|
|
24
|
-
<button key={item.id} className={styles.item} onClick={item.onClick} style={{ marginTop: i % 2 === 1 ? 'var(--hex-offset)' : 0 }}>
|
|
25
|
-
{item.icon && <span className={styles.icon}>{item.icon}</span>}
|
|
26
|
-
<span className={styles.label}>{item.label}</span>
|
|
27
|
-
</button>
|
|
28
|
-
))}
|
|
29
|
-
</nav>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
HexagonMenu.displayName = 'HexagonMenu';
|
|
35
|
-
export default HexagonMenu;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { forwardRef, HTMLAttributes } from 'react';
|
|
4
|
-
|
|
5
|
-
export interface HexagonMenuItem {
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
icon?: React.ReactNode;
|
|
9
|
-
onClick?: () => void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface HexagonMenuProps extends HTMLAttributes<HTMLElement> {
|
|
13
|
-
items: HexagonMenuItem[];
|
|
14
|
-
variant?: 'cyan' | 'pink' | 'green' | 'purple';
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const variantStyles = {
|
|
18
|
-
cyan: { border: 'border-cyan-400', hover: 'hover:bg-cyan-400/20 hover:shadow-[0_0_20px_#00f0ff]', icon: 'text-cyan-400' },
|
|
19
|
-
pink: { border: 'border-fuchsia-500', hover: 'hover:bg-fuchsia-500/20 hover:shadow-[0_0_20px_#ff00ff]', icon: 'text-fuchsia-500' },
|
|
20
|
-
green: { border: 'border-emerald-400', hover: 'hover:bg-emerald-400/20 hover:shadow-[0_0_20px_#00ff88]', icon: 'text-emerald-400' },
|
|
21
|
-
purple: { border: 'border-purple-500', hover: 'hover:bg-purple-500/20 hover:shadow-[0_0_20px_#a855f7]', icon: 'text-purple-500' },
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const HexagonMenu = forwardRef<HTMLElement, HexagonMenuProps>(
|
|
25
|
-
({ items, variant = 'cyan', className = '', ...props }, ref) => {
|
|
26
|
-
const colors = variantStyles[variant];
|
|
27
|
-
return (
|
|
28
|
-
<nav ref={ref} className={`flex flex-wrap gap-2 justify-center ${className}`} {...props}>
|
|
29
|
-
{items.map((item, i) => (
|
|
30
|
-
<button
|
|
31
|
-
key={item.id}
|
|
32
|
-
className={`
|
|
33
|
-
flex flex-col items-center justify-center w-20 h-[92px] p-2
|
|
34
|
-
bg-black/60 border-2 ${colors.border}
|
|
35
|
-
transition-all duration-300 cursor-pointer
|
|
36
|
-
${colors.hover} hover:scale-110 active:scale-105
|
|
37
|
-
`}
|
|
38
|
-
style={{ clipPath: 'polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)', marginTop: i % 2 === 1 ? '40px' : '0' }}
|
|
39
|
-
onClick={item.onClick}
|
|
40
|
-
>
|
|
41
|
-
{item.icon && <span className={`text-2xl ${colors.icon} mb-1`}>{item.icon}</span>}
|
|
42
|
-
<span className="font-['Orbitron',sans-serif] text-[9px] font-semibold uppercase tracking-wide text-white/90 text-center">
|
|
43
|
-
{item.label}
|
|
44
|
-
</span>
|
|
45
|
-
</button>
|
|
46
|
-
))}
|
|
47
|
-
</nav>
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
HexagonMenu.displayName = 'HexagonMenu';
|
|
53
|
-
export default HexagonMenu;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|