ruch
Version:
Revolutionary React TypeScript CLI with hexagonal architecture & AI-powered development assistance. Create maintainable, scalable applications with domain-driven design and integrated AI tooling.
303 lines (262 loc) • 4.8 kB
CSS
/* App.css */
.app {
height: 100vh;
display: flex;
flex-direction: column;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
sans-serif;
background: #f8fafc;
}
.app-header {
background: white;
border-bottom: 1px solid #e2e8f0;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.app-header h1 {
margin: 0;
color: #1e293b;
font-size: 1.5rem;
}
.stats {
display: flex;
gap: 1rem;
}
.stat {
padding: 0.5rem 1rem;
background: #f1f5f9;
border-radius: 6px;
font-size: 0.875rem;
font-weight: 500;
color: #475569;
}
.stat.circular {
background: #fef2f2;
color: #dc2626;
}
.app-content {
flex: 1;
display: flex;
overflow: hidden;
}
.graph-section {
flex: 1;
display: flex;
flex-direction: column;
background: white;
margin: 1rem;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.graph-controls {
padding: 1rem;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
background: #f8fafc;
}
.control-item {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
color: #475569;
cursor: pointer;
}
.refresh-button {
padding: 0.5rem 1rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 0.875rem;
transition: background-color 0.2s;
}
.refresh-button:hover {
background: #2563eb;
}
.graph-container {
flex: 1;
position: relative;
}
.sidebar {
width: 300px;
background: white;
border-left: 1px solid #e2e8f0;
padding: 1.5rem;
overflow-y: auto;
}
.node-details h3 {
margin: 0 0 1rem 0;
color: #1e293b;
font-size: 1.25rem;
}
.detail-item {
margin-bottom: 0.75rem;
font-size: 0.875rem;
}
.detail-item strong {
color: #374151;
margin-right: 0.5rem;
}
.domain-type {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.domain-type.core {
background: #dbeafe;
color: #1d4ed8;
}
.domain-type.shared {
background: #dcfce7;
color: #16a34a;
}
.domain-type.feature {
background: #fef3c7;
color: #d97706;
}
.circular-warning {
background: #fef2f2;
color: #dc2626;
padding: 0.75rem;
border-radius: 6px;
font-size: 0.875rem;
margin: 1rem 0;
border: 1px solid #fecaca;
}
.detail-section {
margin: 1.5rem 0;
}
.detail-section h4 {
margin: 0 0 0.5rem 0;
color: #374151;
font-size: 1rem;
}
.domain-list {
list-style: none;
padding: 0;
margin: 0;
}
.clickable-domain {
padding: 0.5rem;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
}
.clickable-domain:hover {
background: #f1f5f9;
}
.clickable-domain .domain-type {
width: 8px;
height: 8px;
border-radius: 50%;
padding: 0;
}
.instructions h3 {
margin: 0 0 1rem 0;
color: #1e293b;
font-size: 1.25rem;
}
.instructions ul {
padding-left: 1.5rem;
color: #64748b;
font-size: 0.875rem;
line-height: 1.6;
}
.circular-deps {
margin-top: 2rem;
padding: 1rem;
background: #fef2f2;
border-radius: 6px;
border: 1px solid #fecaca;
}
.circular-deps h4 {
margin: 0 0 0.75rem 0;
color: #dc2626;
font-size: 1rem;
}
.cycle {
font-family: 'Monaco', 'Menlo', monospace;
font-size: 0.75rem;
color: #dc2626;
background: white;
padding: 0.5rem;
border-radius: 4px;
margin-bottom: 0.5rem;
border: 1px solid #fecaca;
}
/* Loading and error states */
.loading-container,
.error-container,
.empty-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
color: #64748b;
}
.loading-container h2,
.error-container h2,
.empty-container h2 {
margin: 1rem 0 0.5rem 0;
color: #1e293b;
}
.loading-container p,
.error-container p,
.empty-container p {
margin: 0.5rem 0;
max-width: 400px;
}
.spinner {
width: 40px;
height: 40px;
border: 4px solid #e2e8f0;
border-top: 4px solid #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.retry-button {
margin-top: 1rem;
padding: 0.75rem 1.5rem;
background: #3b82f6;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.2s;
}
.retry-button:hover {
background: #2563eb;
}
.empty-container code {
background: #f1f5f9;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-family: 'Monaco', 'Menlo', monospace;
font-size: 0.875rem;
}