Files
T
daniel aad91824a9 feat: Add individual components system with unified web interface
Major Features Added:
🎯 Unified filter interface (Templates, Agents, Commands, MCPs)
🤖 Individual Agent components (react-performance, api-security, database-optimization)
⚡ Custom Command components (check-file, generate-tests)
🔌 MCP integration configs (DeepGraph, GitHub, databases, etc.)
📱 Card flip functionality with installation commands
🎨 Compact stats badges design
📚 Comprehensive Docusaurus documentation

Technical Improvements:
- Modular component architecture in cli-tool/components/
- Real-time GitHub API integration for component loading
- Smart installation command generation per component type
- Responsive design with terminal theme consistency
- Individual component contribution workflows

Web Interface Enhancements:
- Removed mode separation, unified single view
- Interactive filter bar with component counts
- Installation command copying functionality
- Component-specific "Add New" cards with contribution modals
- Enhanced loading states and error handling

Documentation Updates:
- New /docs/components/ section with detailed guides
- Updated navigation and cross-references
- Installation methods for each component type
- Best practices for templates vs individual components

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-29 12:55:04 -05:00

2012 lines
38 KiB
CSS

/* Terminal theme CSS based on Claude Code Analytics dashboard */
:root {
/* Dark theme colors (terminal style) */
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--border-primary: #30363d;
--border-secondary: #21262d;
--text-primary: #c9d1d9;
--text-secondary: #7d8590;
--text-accent: #d57455;
--text-success: #3fb950;
--text-warning: #f97316;
--text-error: #f85149;
--text-info: #a5d6ff;
--shadow-primary: rgba(0, 0, 0, 0.4);
--shadow-secondary: rgba(1, 4, 9, 0.85);
}
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.4;
transition: background-color 0.3s ease, color 0.3s ease;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
.header {
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-primary);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 1rem 0;
gap: 1rem;
}
.header .terminal-header {
border-bottom: none;
padding-bottom: 0;
margin-bottom: 0;
flex: 1;
}
.header .ascii-title {
margin-bottom: 0.5rem;
}
.header .ascii-art {
font-size: clamp(0.4rem, 0.8vw, 0.6rem);
line-height: 1;
color: var(--text-accent);
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
margin: 0;
overflow: visible;
white-space: pre;
text-align: left;
width: 100%;
}
.header .terminal-subtitle {
display: block;
color: var(--text-secondary);
font-size: 0.8rem;
margin: 0;
text-align: left;
}
.header .status-dot {
display: inline-block;
margin-right: 0.5rem;
}
.header-actions {
display: flex;
gap: 1rem;
align-items: center;
}
.github-link, .header-btn {
display: flex;
align-items: center;
gap: 0.4rem;
color: var(--text-primary);
text-decoration: none;
padding: 0.4rem 0.8rem;
border-radius: 6px;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
transition: all 0.2s ease;
font-size: 0.85rem;
font-weight: normal;
}
.github-link:hover, .header-btn:hover {
background: var(--bg-primary);
border-color: var(--border-secondary);
transform: translateY(-1px);
}
/* Terminal main content */
.terminal {
max-width: 1400px;
margin: 0 auto;
padding: 20px;
}
.terminal-header {
border-bottom: 1px solid var(--border-primary);
padding-bottom: 20px;
margin-bottom: 30px;
position: relative;
}
.ascii-title {
margin-bottom: 20px;
}
.ascii-art {
color: var(--text-accent);
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: clamp(0.3rem, 0.8vw, 0.7rem);
line-height: 1.1;
margin: 0;
overflow-x: auto;
white-space: pre;
text-align: left;
}
.terminal-title {
color: var(--text-accent);
font-size: 1.25rem;
font-weight: normal;
display: flex;
align-items: center;
gap: 8px;
justify-content: center;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--text-success);
animation: pulse 2s infinite;
flex-shrink: 0;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
.terminal-subtitle {
color: var(--text-secondary);
font-size: 0.875rem;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
/* Command blocks */
.command-block {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
}
.command-label {
color: var(--text-accent);
font-size: 1rem;
font-weight: normal;
margin-bottom: 8px;
}
.command-description {
color: var(--text-secondary);
font-size: 0.875rem;
margin-bottom: 16px;
}
.command-line {
display: flex;
align-items: center;
gap: 1rem;
background: var(--bg-tertiary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 12px 16px;
}
.prompt {
color: var(--text-success);
font-weight: bold;
flex-shrink: 0;
}
.command {
flex: 1;
color: var(--text-primary);
font-family: inherit;
font-size: 0.875rem;
background: none;
border: none;
outline: none;
}
.copy-btn {
background: var(--text-info);
color: var(--bg-primary);
border: none;
padding: 6px 12px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
transition: background 0.2s ease;
font-family: inherit;
}
.copy-btn:hover {
opacity: 0.8;
}
/* Stats section - Compact Badges */
.stats-section {
margin: 1rem 0;
text-align: center;
}
.stats-badges {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
padding: 1rem 0;
}
.stat-badge-link {
text-decoration: none;
transition: all 0.2s ease;
display: inline-block;
}
.stat-badge-link:hover {
transform: translateY(-2px);
filter: brightness(1.1);
}
.stat-badge {
height: 20px;
display: block;
transition: all 0.2s ease;
}
/* Steps section */
.steps-section {
margin-bottom: 40px;
}
.steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 20px;
}
.step-card {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 8px;
padding: 20px;
position: relative;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
min-height: 200px;
}
.step-card:hover {
border-color: var(--text-accent);
box-shadow: 0 4px 12px var(--shadow-primary);
}
.step-number {
position: absolute;
top: -10px;
left: 20px;
background: var(--text-accent);
color: var(--bg-primary);
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
font-weight: bold;
}
.step-content {
flex: 1;
display: flex;
flex-direction: column;
}
.step-content h3 {
color: var(--text-primary);
font-size: 1.1rem;
font-weight: normal;
margin-bottom: 8px;
margin-top: 10px;
}
.step-content p {
color: var(--text-secondary);
font-size: 0.875rem;
margin-bottom: 16px;
flex: 1;
}
.step-highlight {
background: var(--bg-tertiary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 12px;
text-align: center;
margin-top: auto;
}
.command-line {
margin-top: auto;
}
.highlight-text {
color: var(--text-info);
font-size: 0.8rem;
}
.command-note {
color: var(--text-secondary);
font-style: italic;
margin-left: 10px;
}
/* Install and intro sections */
.intro-section,
.additional-tools {
margin-bottom: 30px;
}
/* Add New Template Card Styles */
.add-template-card {
background: linear-gradient(135deg, var(--text-success) 0%, #2d7d32 100%);
border: 1px solid var(--text-success);
position: relative;
overflow: hidden;
}
.add-template-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
pointer-events: none;
}
.add-template-card:hover {
border-color: #2d7d32;
box-shadow: 0 6px 20px rgba(63, 185, 80, 0.3);
transform: translateY(-2px);
}
.add-template-card .framework-logo {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
color: white;
}
.add-template-card .template-title {
color: white;
font-weight: 600;
}
.add-template-card .template-description {
color: rgba(255, 255, 255, 0.9);
}
.add-template-card .card-back {
background: linear-gradient(135deg, #2d7d32 0%, #1b5e20 100%);
}
.add-template-card .command-display h3 {
color: white;
}
.add-template-info {
text-align: left;
margin-bottom: 1rem;
}
.add-template-info p {
color: rgba(255, 255, 255, 0.9);
font-size: 0.85rem;
margin-bottom: 0.75rem;
}
.add-template-info ul {
color: rgba(255, 255, 255, 0.85);
font-size: 0.8rem;
margin-left: 1rem;
line-height: 1.4;
}
.add-template-info li {
margin-bottom: 0.25rem;
}
.contribute-btn {
background: rgba(255, 255, 255, 0.2) !important;
color: white !important;
border: 1px solid rgba(255, 255, 255, 0.3) !important;
font-weight: 500;
}
.contribute-btn:hover {
background: rgba(255, 255, 255, 0.3) !important;
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Tools section */
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 20px;
margin-top: 20px;
}
.tool-card {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 8px;
padding: 20px;
transition: all 0.3s ease;
}
.tool-card:hover {
border-color: var(--text-accent);
box-shadow: 0 4px 12px var(--shadow-primary);
}
.tool-icon {
font-size: 2rem;
margin-bottom: 12px;
}
.tool-card h3 {
color: var(--text-primary);
font-size: 1.1rem;
font-weight: normal;
margin-bottom: 8px;
}
.tool-card p {
color: var(--text-secondary);
font-size: 0.875rem;
margin-bottom: 16px;
line-height: 1.5;
}
/* Templates grid */
.templates-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
/* Template card */
.template-card {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 8px;
overflow: hidden;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
height: 200px;
perspective: 1000px;
}
.template-card:hover {
border-color: var(--text-accent);
box-shadow: 0 4px 12px var(--shadow-primary);
}
.card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.6s;
transform-style: preserve-3d;
}
.template-card.flipped .card-inner {
transform: rotateY(180deg);
}
.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1.5rem;
}
.card-back {
transform: rotateY(180deg);
background: var(--bg-tertiary);
}
.framework-logo {
width: 64px;
height: 64px;
margin-bottom: 1rem;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.5rem;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
}
.framework-logo i {
font-size: 2.5rem;
}
.template-title {
font-size: 1.1rem;
font-weight: normal;
color: var(--text-primary);
margin-bottom: 0.5rem;
}
.template-description {
color: var(--text-secondary);
font-size: 0.8rem;
text-align: center;
}
.coming-soon {
opacity: 0.6;
pointer-events: none;
}
.coming-soon-badge {
position: absolute;
top: 1rem;
right: 1rem;
background: var(--text-warning);
color: var(--bg-primary);
padding: 0.25rem 0.75rem;
border-radius: 12px;
font-size: 0.7rem;
font-weight: normal;
}
/* Command display on card back */
.command-display {
text-align: center;
width: 100%;
}
.command-display h3 {
font-size: 1rem;
margin-bottom: 1rem;
color: var(--text-accent);
font-weight: normal;
}
.command-code {
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
padding: 12px;
border-radius: 6px;
font-family: inherit;
font-size: 0.8rem;
word-break: break-all;
margin-bottom: 1rem;
color: var(--text-primary);
}
.action-buttons {
display: flex;
gap: 0.75rem;
justify-content: center;
flex-wrap: wrap;
}
.view-files-btn,
.copy-command-btn {
border: none;
padding: 6px 12px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
flex: 1;
min-width: 80px;
font-weight: normal;
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border-primary);
}
.view-files-btn:hover,
.copy-command-btn:hover {
background: var(--border-primary);
color: var(--text-primary);
transform: translateY(-1px);
}
/* Footer */
.footer {
background: var(--bg-secondary);
border-top: 1px solid var(--border-primary);
color: var(--text-secondary);
padding: 2rem 0;
margin-top: 2rem;
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.footer-links {
display: flex;
gap: 1rem;
}
.footer-link {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-secondary);
text-decoration: none;
font-size: 0.875rem;
transition: color 0.2s ease;
}
.footer-link:hover {
color: var(--text-primary);
}
.footer-link svg {
flex-shrink: 0;
}
/* Loading and error states */
.loading {
text-align: center;
color: var(--text-secondary);
font-size: 1rem;
padding: 2rem;
grid-column: 1 / -1;
}
.loading::after {
content: '';
animation: dots 1.5s infinite;
}
@keyframes dots {
0%, 20% { content: ''; }
40% { content: '.'; }
60% { content: '..'; }
80%, 100% { content: '...'; }
}
.error-message {
grid-column: 1 / -1;
text-align: center;
color: var(--text-error);
background: var(--bg-secondary);
border: 1px solid var(--text-error);
border-radius: 8px;
padding: 2rem;
}
.error-message h3 {
margin-bottom: 1rem;
font-size: 1.1rem;
font-weight: normal;
}
.retry-btn {
background: var(--text-error);
color: var(--bg-primary);
border: none;
padding: 0.75rem 1.5rem;
border-radius: 6px;
cursor: pointer;
margin-top: 1rem;
font-size: 0.875rem;
transition: opacity 0.2s ease;
font-family: inherit;
}
.retry-btn:hover {
opacity: 0.8;
}
/* Copy feedback animations */
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOutRight {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
/* Responsive design */
@media (max-width: 768px) {
.terminal {
padding: 15px;
}
.header-content {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
.header-actions {
gap: 0.75rem;
width: 100%;
justify-content: flex-start;
}
.github-link, .header-btn {
padding: 0.35rem 0.7rem;
font-size: 0.8rem;
}
.header .ascii-art {
font-size: 0.3rem;
overflow: visible;
}
.header .terminal-subtitle {
font-size: 0.75rem;
text-align: left;
}
.terminal-title {
font-size: 1.1rem;
}
.ascii-art {
font-size: clamp(0.3rem, 0.6vw, 0.6rem);
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: var(--border-primary) var(--bg-secondary);
}
.ascii-art::-webkit-scrollbar {
height: 4px;
}
.ascii-art::-webkit-scrollbar-track {
background: var(--bg-secondary);
}
.ascii-art::-webkit-scrollbar-thumb {
background: var(--border-primary);
border-radius: 2px;
}
.stats-badges {
gap: 0.75rem;
padding: 0.5rem 0;
}
.stat-badge {
height: 18px;
}
.steps-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.tools-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.templates-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.template-card {
height: 180px;
}
.command-line {
flex-direction: column;
align-items: stretch;
gap: 0.5rem;
}
.command {
text-align: center;
}
.footer-content {
flex-direction: column;
text-align: center;
}
.step-card {
padding: 15px;
}
.tool-card {
padding: 15px;
}
}
/* Extra small screens */
@media (max-width: 480px) {
.header .ascii-art {
font-size: 0.25rem;
overflow: visible;
}
.header .terminal-subtitle {
font-size: 0.7rem;
text-align: left;
}
.header-content {
padding: 0.75rem 0;
}
.stat-card {
min-width: 200px;
max-width: 250px;
padding: 0.75rem;
}
.stat-label {
font-size: 0.75rem;
}
}
/* Modal styles */
.modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
}
.modal-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
animation: fadeIn 0.3s ease;
}
.modal-content {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 8px;
max-width: 800px;
width: 100%;
max-height: 80vh;
overflow: hidden;
animation: slideIn 0.3s ease;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid var(--border-primary);
}
.modal-header h3 {
color: var(--text-accent);
font-size: 1.1rem;
font-weight: normal;
margin: 0;
}
.modal-close {
background: none;
border: none;
color: var(--text-secondary);
font-size: 1.5rem;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s ease;
}
.modal-close:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.modal-body {
padding: 20px;
max-height: 60vh;
overflow-y: auto;
}
.modal-description {
color: var(--text-secondary);
margin-bottom: 20px;
font-size: 0.875rem;
}
.files-table {
border: 1px solid var(--border-primary);
border-radius: 6px;
overflow: hidden;
}
.table-header {
display: grid;
grid-template-columns: 2fr 2fr 1fr;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-primary);
}
.column-header {
padding: 12px 16px;
color: var(--text-accent);
font-size: 0.8rem;
font-weight: normal;
border-right: 1px solid var(--border-primary);
}
.column-header:last-child {
border-right: none;
}
.table-row {
display: grid;
grid-template-columns: 2fr 2fr 1fr;
border-bottom: 1px solid var(--border-secondary);
}
.table-row:last-child {
border-bottom: none;
}
.table-row > div {
padding: 12px 16px;
font-size: 0.8rem;
border-right: 1px solid var(--border-secondary);
word-break: break-all;
}
.table-row > div:last-child {
border-right: none;
}
.file-source {
color: var(--text-secondary);
font-family: inherit;
}
.file-link {
color: var(--text-info);
text-decoration: none;
transition: color 0.2s ease;
}
.file-link:hover {
color: var(--text-accent);
text-decoration: underline;
}
.file-destination {
color: var(--text-primary);
font-family: inherit;
}
.file-type {
color: var(--text-info);
font-size: 0.75rem;
text-align: center;
}
.modal-footer {
margin-top: 20px;
text-align: center;
}
.file-count {
color: var(--text-secondary);
font-size: 0.8rem;
margin-bottom: 15px;
}
.modal-actions {
display: flex;
justify-content: center;
margin-top: 15px;
}
.github-folder-link {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-primary);
text-decoration: none;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.8rem;
transition: all 0.2s ease;
}
.github-folder-link:hover {
background: var(--bg-primary);
border-color: var(--text-accent);
color: var(--text-accent);
}
.github-folder-link svg {
flex-shrink: 0;
}
/* Modal animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
/* Contribution modal styles */
.contribute-modal {
max-width: 900px;
}
.contribute-intro {
margin-bottom: 30px;
}
.contribute-intro p {
color: var(--text-secondary);
font-size: 0.9rem;
line-height: 1.5;
}
.contribute-steps {
display: flex;
flex-direction: column;
gap: 25px;
margin-bottom: 30px;
}
.contribute-step {
display: flex;
gap: 20px;
align-items: flex-start;
padding: 20px;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: 8px;
transition: all 0.2s ease;
}
.contribute-step:hover {
border-color: var(--text-accent);
box-shadow: 0 2px 8px var(--shadow-primary);
}
.step-number-contrib {
flex-shrink: 0;
width: 40px;
height: 40px;
background: var(--text-accent);
color: var(--bg-primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1rem;
}
.step-content-contrib {
flex: 1;
}
.step-content-contrib h4 {
color: var(--text-primary);
font-size: 1.1rem;
font-weight: 500;
margin: 0 0 8px 0;
}
.step-content-contrib p {
color: var(--text-secondary);
font-size: 0.875rem;
line-height: 1.5;
margin: 0 0 15px 0;
}
.step-content-contrib ul {
color: var(--text-secondary);
font-size: 0.875rem;
line-height: 1.5;
margin: 15px 0 0 20px;
}
.step-content-contrib li {
margin-bottom: 5px;
}
.step-content-contrib a {
color: var(--text-info);
text-decoration: none;
}
.step-content-contrib a:hover {
color: var(--text-accent);
text-decoration: underline;
}
.step-command {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 12px;
margin: 10px 0;
font-family: inherit;
}
.step-command code {
flex: 1;
color: var(--text-primary);
font-size: 0.8rem;
background: none;
border: none;
font-family: inherit;
}
.step-command .copy-btn {
background: var(--text-success);
color: var(--bg-primary);
border: none;
padding: 6px 12px;
border-radius: 4px;
font-size: 0.75rem;
cursor: pointer;
transition: opacity 0.2s ease;
font-family: inherit;
}
.step-command .copy-btn:hover {
opacity: 0.8;
}
.contribution-types {
display: flex;
flex-direction: column;
gap: 15px;
margin: 15px 0;
}
.contrib-type {
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 15px;
}
.contrib-type strong {
color: var(--text-accent);
font-size: 0.9rem;
}
.contrib-type small {
color: var(--text-secondary);
font-size: 0.8rem;
}
.contrib-type code {
background: var(--bg-secondary);
color: var(--text-info);
padding: 2px 6px;
border-radius: 3px;
font-size: 0.8rem;
font-family: inherit;
}
.claude-prompt {
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
border-radius: 8px;
padding: 20px;
margin: 15px 0;
}
.claude-prompt h5 {
color: var(--text-accent);
font-size: 0.9rem;
font-weight: 500;
margin: 0 0 15px 0;
display: flex;
align-items: center;
gap: 8px;
}
.prompt-text {
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: 6px;
padding: 15px;
margin-bottom: 15px;
position: relative;
}
.prompt-text pre {
color: var(--text-primary);
font-size: 0.8rem;
line-height: 1.4;
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
font-family: inherit;
}
.copy-prompt-btn {
background: var(--text-info);
color: var(--bg-primary);
border: none;
padding: 8px 16px;
border-radius: 4px;
font-size: 0.8rem;
cursor: pointer;
transition: opacity 0.2s ease;
font-family: inherit;
display: flex;
align-items: center;
gap: 6px;
}
.copy-prompt-btn:hover {
opacity: 0.8;
}
.contribute-footer {
border-top: 1px solid var(--border-primary);
padding-top: 20px;
margin-top: 20px;
}
.help-section h4 {
color: var(--text-accent);
font-size: 1rem;
font-weight: 500;
margin: 0 0 8px 0;
}
.help-section p {
color: var(--text-secondary);
font-size: 0.875rem;
margin: 0;
}
.help-section a {
color: var(--text-info);
text-decoration: none;
}
.help-section a:hover {
color: var(--text-accent);
text-decoration: underline;
}
/* Modal responsive design */
@media (max-width: 768px) {
.modal-overlay {
padding: 10px;
}
.modal-content {
max-height: 90vh;
}
.contribute-modal {
max-width: 100%;
}
.modal-header,
.modal-body {
padding: 15px;
}
.contribute-steps {
gap: 20px;
}
.contribute-step {
flex-direction: column;
gap: 15px;
padding: 15px;
}
.step-number-contrib {
width: 35px;
height: 35px;
font-size: 0.9rem;
align-self: flex-start;
}
.step-command {
flex-direction: column;
align-items: stretch;
gap: 8px;
}
.step-command code {
text-align: center;
word-break: break-all;
}
.contribution-types {
gap: 12px;
}
.contrib-type {
padding: 12px;
}
.claude-prompt {
padding: 15px;
}
.prompt-text pre {
font-size: 0.75rem;
}
.table-header,
.table-row {
grid-template-columns: 1fr;
}
.column-header,
.table-row > div {
border-right: none;
border-bottom: 1px solid var(--border-secondary);
}
.column-header:last-child,
.table-row > div:last-child {
border-bottom: none;
}
}
/* Unified Filter Section */
.unified-filter-section {
margin: 2rem 0;
}
.unified-filter-bar {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 12px;
padding: 1.5rem;
margin-top: 1.5rem;
text-align: center;
}
.unified-filter-bar .filter-label {
color: var(--text-accent);
font-size: 1rem;
font-weight: 600;
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.unified-filter-bar .filter-label:before {
content: ">";
color: var(--text-success);
font-weight: bold;
}
.unified-filter-bar .filter-buttons {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
.unified-filter-bar .filter-btn {
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border-primary);
padding: 0.75rem 1.25rem;
border-radius: 8px;
cursor: pointer;
font-family: inherit;
font-size: 0.9rem;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
white-space: nowrap;
}
.unified-filter-bar .filter-btn:hover {
background: var(--bg-primary);
color: var(--text-primary);
border-color: var(--text-accent);
transform: translateY(-1px);
}
.unified-filter-bar .filter-btn.active {
background: var(--text-accent);
color: var(--bg-primary);
border-color: var(--text-accent);
font-weight: 600;
box-shadow: 0 4px 12px rgba(213, 116, 85, 0.3);
}
/* Unified Grid */
.unified-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.unified-grid.templates-mode {
/* Template specific styles if needed */
}
.unified-grid.components-mode {
/* Component specific styles if needed */
}
/* Components Grid */
.components-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.component-category {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 12px;
padding: 1.5rem;
transition: all 0.3s ease;
}
.component-category:hover {
border-color: var(--text-accent);
transform: translateY(-2px);
box-shadow: 0 8px 25px var(--shadow-primary);
}
.category-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1rem;
}
.category-icon {
font-size: 1.5rem;
}
.category-title {
color: var(--text-accent);
font-size: 1.1rem;
font-weight: 600;
margin: 0;
}
.category-description {
color: var(--text-secondary);
font-size: 0.85rem;
margin-bottom: 1.5rem;
line-height: 1.5;
}
.component-items {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.component-item {
background: var(--bg-tertiary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 0.75rem;
transition: all 0.2s ease;
cursor: pointer;
}
.component-item:hover {
border-color: var(--text-accent);
background: var(--bg-primary);
}
.component-name {
color: var(--text-primary);
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 0.25rem;
}
.component-description {
color: var(--text-secondary);
font-size: 0.75rem;
line-height: 1.4;
margin-bottom: 0.5rem;
}
.component-command {
font-family: 'Monaco', 'Menlo', monospace;
font-size: 0.7rem;
color: var(--text-success);
background: var(--bg-primary);
padding: 0.25rem 0.5rem;
border-radius: 3px;
border: 1px solid var(--border-primary);
}
/* Responsive adjustments for unified interface */
@media (max-width: 768px) {
.unified-filter-bar .filter-buttons {
gap: 0.5rem;
}
.unified-filter-bar .filter-btn {
padding: 0.6rem 1rem;
font-size: 0.85rem;
}
.unified-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.unified-filter-bar {
padding: 1rem;
}
.components-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.component-category {
padding: 1rem;
}
}
/* ==== COMPONENT FILTER AND MODULAR INTERFACE ==== */
/* Component Filter Bar */
.component-filter-bar {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 2rem;
text-align: center;
}
.filter-label {
color: var(--text-accent);
font-size: 1rem;
font-weight: 600;
margin-bottom: 1rem;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.filter-label:before {
content: ">";
color: var(--text-success);
font-weight: bold;
}
.filter-buttons {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
.filter-btn {
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border-primary);
padding: 0.75rem 1.25rem;
border-radius: 8px;
cursor: pointer;
font-family: inherit;
font-size: 0.85rem;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
white-space: nowrap;
}
.filter-btn:hover {
background: var(--bg-primary);
color: var(--text-primary);
border-color: var(--text-accent);
transform: translateY(-1px);
}
.filter-btn.active {
background: var(--text-accent);
color: var(--bg-primary);
border-color: var(--text-accent);
font-weight: 600;
box-shadow: 0 4px 12px rgba(213, 116, 85, 0.3);
}
/* Components Container */
.components-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.5rem;
}
/* Add Component Cards */
.add-component-card {
background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
border: 2px dashed var(--border-primary);
transition: all 0.3s ease;
}
.add-component-card:hover {
border-color: var(--text-accent);
border-style: solid;
background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
transform: translateY(-5px);
box-shadow: 0 10px 30px var(--shadow-primary);
}
.add-component-card .component-icon {
font-size: 2rem;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.7; transform: scale(1.1); }
}
/* Component Type Badge */
.component-type-badge {
position: absolute;
top: 12px;
right: 12px;
padding: 0.25rem 0.5rem;
border-radius: 12px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: white;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Component Icon Styling */
.component-icon {
font-size: 1.8rem;
display: inline-block;
vertical-align: middle;
}
.framework-logo .component-icon {
font-size: 2.5rem;
}
/* Installation Notes */
.install-note {
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 0.75rem;
margin: 0.75rem 0;
color: var(--text-secondary);
font-size: 0.8rem;
line-height: 1.4;
}
/* Enhanced Component Modal */
.component-modal {
max-width: 800px;
}
.component-modal-title {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.component-modal-title h3 {
margin: 0;
flex: 1;
}
.component-modal-title .component-icon {
font-size: 1.5rem;
}
.component-modal-title .component-type-badge {
position: static;
margin-left: auto;
}
.component-details {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.component-description {
color: var(--text-secondary);
font-size: 0.9rem;
line-height: 1.6;
padding: 1rem;
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: 8px;
}
.installation-section h4,
.component-content h4 {
color: var(--text-accent);
font-size: 1rem;
font-weight: 600;
margin: 0 0 0.75rem 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.component-preview {
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
border-radius: 8px;
padding: 1rem;
max-height: 300px;
overflow-y: auto;
}
.component-preview pre {
margin: 0;
color: var(--text-primary);
font-size: 0.8rem;
line-height: 1.4;
white-space: pre-wrap;
word-wrap: break-word;
}
.component-preview code {
font-family: inherit;
color: var(--text-info);
}
/* Contribute Component Modal */
.contribute-component-modal .component-structure {
background: var(--bg-primary);
border: 1px solid var(--border-secondary);
border-radius: 6px;
padding: 1rem;
margin: 0.75rem 0;
}
.contribute-component-modal .component-structure strong {
color: var(--text-accent);
font-size: 0.85rem;
display: block;
margin-bottom: 0.5rem;
}
.contribute-component-modal .component-structure pre {
color: var(--text-secondary);
font-size: 0.75rem;
line-height: 1.4;
margin: 0;
white-space: pre-wrap;
}
/* Enhanced Loading States */
.loading {
grid-column: 1 / -1;
text-align: center;
color: var(--text-secondary);
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: 12px;
padding: 3rem 2rem;
font-size: 1rem;
position: relative;
overflow: hidden;
}
.loading:before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(213, 116, 85, 0.1),
transparent
);
animation: loading-shimmer 2s infinite;
}
@keyframes loading-shimmer {
0% { left: -100%; }
100% { left: 100%; }
}
/* Responsive Design for Component Interface */
@media (max-width: 768px) {
.unified-filter-bar .filter-buttons {
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
.unified-filter-bar .filter-btn {
width: 100%;
max-width: 280px;
justify-content: center;
padding: 0.6rem 1rem;
font-size: 0.85rem;
}
.filter-buttons {
gap: 0.5rem;
}
.filter-btn {
padding: 0.5rem 0.75rem;
font-size: 0.8rem;
}
.components-container {
grid-template-columns: 1fr;
gap: 1rem;
}
.component-filter-bar {
padding: 1rem;
}
.component-modal {
max-width: 100%;
}
.component-modal-title {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.component-modal-title .component-type-badge {
margin-left: 0;
}
.component-preview {
max-height: 200px;
padding: 0.75rem;
}
.component-preview pre {
font-size: 0.75rem;
}
}
/* Focus and Accessibility */
.filter-btn:focus,
.mode-btn:focus {
outline: 2px solid var(--text-accent);
outline-offset: 2px;
}
.template-card:focus {
outline: 2px solid var(--text-accent);
outline-offset: 4px;
}
/* High contrast mode adjustments */
@media (prefers-contrast: high) {
.component-type-badge {
border: 1px solid white;
}
.filter-btn.active {
box-shadow: 0 0 0 2px var(--bg-primary);
}
.add-component-card:hover {
border-width: 3px;
}
}