Skip to main content
Glama
dashboard.css13.1 kB
/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background-color: #f5f7fa; color: #2d3748; line-height: 1.6; } /* Dashboard Container */ .dashboard-container { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; } /* Header */ .dashboard-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1rem 2rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; } .header-content h1 { font-size: 1.5rem; font-weight: 600; } .header-actions { display: flex; align-items: center; gap: 1rem; } .health-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.1); border-radius: 20px; font-size: 0.875rem; } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; animation: pulse 2s infinite; } .status-dot.healthy { background: #10b981; } .status-dot.unhealthy { background: #ef4444; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Main Content */ .dashboard-main { display: grid; grid-template-columns: 300px 1fr; max-width: 1400px; margin: 0 auto; gap: 2rem; padding: 2rem; flex: 1; } /* Sidebar */ .dashboard-sidebar { background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); padding: 1.5rem; height: fit-content; position: sticky; top: 2rem; } .sidebar-section { margin-bottom: 2rem; } .sidebar-section:last-child { margin-bottom: 0; } .sidebar-section h3 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin-bottom: 1rem; } .category-filters { display: flex; flex-direction: column; gap: 0.5rem; } .category-btn { background: none; border: none; padding: 0.75rem 1rem; text-align: left; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-size: 0.875rem; color: #6b7280; } .category-btn:hover { background: #f3f4f6; color: #374151; } .category-btn.active { background: #e0e7ff; color: #3730a3; font-weight: 500; } .search-container { position: relative; } .search-input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.875rem; transition: border-color 0.2s; } .search-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .methods-list { max-height: 400px; overflow-y: auto; } .method-item { padding: 0.75rem; border-radius: 8px; cursor: pointer; transition: all 0.2s; margin-bottom: 0.5rem; border: 1px solid transparent; } .method-item:hover { background: #f9fafb; border-color: #e5e7eb; } .method-item.active { background: #eff6ff; border-color: #3b82f6; } .method-item-name { font-weight: 500; color: #1f2937; font-size: 0.875rem; } .method-item-description { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; } .method-item-category { display: inline-block; background: #f3f4f6; color: #6b7280; padding: 0.125rem 0.5rem; border-radius: 12px; font-size: 0.625rem; font-weight: 500; margin-top: 0.5rem; } /* Content Area */ .dashboard-content { background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); overflow: hidden; } /* Welcome Screen */ .welcome-screen { padding: 3rem; text-align: center; } .welcome-content h2 { font-size: 2rem; font-weight: 600; color: #1f2937; margin-bottom: 1rem; } .welcome-content p { font-size: 1.125rem; color: #6b7280; margin-bottom: 2rem; } .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 2rem 0; } .feature-card { background: #f8fafc; padding: 1.5rem; border-radius: 12px; border: 1px solid #e2e8f0; } .feature-card h3 { font-size: 1.25rem; font-weight: 600; color: #1e293b; margin-bottom: 0.5rem; } .feature-card p { color: #64748b; font-size: 0.875rem; } .welcome-instruction { font-size: 1rem; color: #6b7280; font-style: italic; } /* Method Details */ .method-details { padding: 2rem; } .method-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; } .method-header h2 { font-size: 1.75rem; font-weight: 600; color: #1f2937; margin-bottom: 0.5rem; } .method-meta { display: flex; align-items: center; gap: 1rem; } .method-category { background: #ddd6fe; color: #5b21b6; padding: 0.25rem 0.75rem; border-radius: 16px; font-size: 0.75rem; font-weight: 500; } .method-description { color: #6b7280; font-size: 0.875rem; } .method-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; } .content-section h3 { font-size: 1.25rem; font-weight: 600; color: #1f2937; margin-bottom: 1rem; } /* Parameters */ .parameters-container { margin-bottom: 1.5rem; } .parameter-group { margin-bottom: 1rem; padding: 1rem; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; } .parameter-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-weight: 500; color: #374151; } .required-indicator { color: #ef4444; font-size: 0.75rem; } .parameter-description { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.5rem; } .parameter-input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.875rem; transition: border-color 0.2s; } .parameter-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .parameter-input.textarea { min-height: 80px; resize: vertical; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; } .execute-section { display: flex; gap: 1rem; } /* Response */ .response-container { border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; } .response-tabs { display: flex; background: #f9fafb; border-bottom: 1px solid #e5e7eb; } .tab-btn { background: none; border: none; padding: 0.75rem 1rem; cursor: pointer; font-size: 0.875rem; color: #6b7280; transition: all 0.2s; } .tab-btn:hover { color: #374151; background: #f3f4f6; } .tab-btn.active { color: #3730a3; background: white; border-bottom: 2px solid #3730a3; } .response-content { min-height: 300px; } .tab-content { display: none; padding: 1rem; } .tab-content.active { display: block; } .response-placeholder { display: flex; align-items: center; justify-content: center; height: 268px; color: #9ca3af; font-style: italic; } .response-success { border-left: 4px solid #10b981; background: #f0fdf4; padding: 1rem; border-radius: 0 6px 6px 0; } .response-error { border-left: 4px solid #ef4444; background: #fef2f2; padding: 1rem; border-radius: 0 6px 6px 0; } /* Buttons */ .btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; } .btn-primary { background: #667eea; color: white; } .btn-primary:hover { background: #5a67d8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .btn-secondary { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; } .btn-secondary:hover { background: #e5e7eb; border-color: #9ca3af; } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; } /* Footer */ .dashboard-footer { background: white; border-top: 1px solid #e5e7eb; padding: 1rem 2rem; } .footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; } .footer-section { display: flex; align-items: center; gap: 1rem; } .footer-btn { background: none; border: none; color: #6b7280; font-size: 0.875rem; cursor: pointer; padding: 0.5rem; transition: color 0.2s; } .footer-btn:hover { color: #374151; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .loading-spinner { background: white; padding: 2rem; border-radius: 12px; text-align: center; } .spinner { width: 40px; height: 40px; border: 4px solid #f3f4f6; border-top: 4px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Test Runner */ .test-runner { padding: 2rem; } .test-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; } .test-header h2 { font-size: 1.75rem; font-weight: 600; color: #1f2937; margin-bottom: 0.5rem; } .test-controls { display: flex; gap: 1rem; margin-bottom: 2rem; } .test-results { border: 1px solid #e5e7eb; border-radius: 8px; min-height: 400px; padding: 1rem; background: #f9fafb; } .test-placeholder { display: flex; align-items: center; justify-content: center; height: 368px; color: #9ca3af; font-style: italic; } /* Utility Classes */ .loading { text-align: center; color: #9ca3af; font-style: italic; padding: 2rem; } .no-params { color: #9ca3af; font-style: italic; text-align: center; padding: 2rem; } /* Responsive Design */ @media (max-width: 1024px) { .dashboard-main { grid-template-columns: 250px 1fr; gap: 1rem; padding: 1rem; } .method-content { grid-template-columns: 1fr; gap: 1.5rem; } } @media (max-width: 768px) { .dashboard-main { grid-template-columns: 1fr; } .dashboard-sidebar { position: static; margin-bottom: 1rem; } .header-content { flex-direction: column; gap: 1rem; text-align: center; } .feature-grid { grid-template-columns: 1fr; } } /* Code Highlighting */ pre[class*="language-"] { margin: 0; border-radius: 6px; } code[class*="language-"] { font-size: 0.875rem; }/* Templ ate Selector */ .template-selector { display: flex; gap: 0.5rem; } .template-selector .parameter-input { flex: 1; } .btn-small { padding: 0.5rem 0.75rem; font-size: 0.75rem; } .template-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; } .template-modal-content { background: white; border-radius: 12px; width: 90%; max-width: 600px; max-height: 80vh; display: flex; flex-direction: column; } .template-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid #e5e7eb; } .template-modal-header h3 { font-size: 1.25rem; font-weight: 600; color: #1f2937; } .template-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #6b7280; } .template-modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; } .template-list { display: flex; flex-direction: column; gap: 1rem; } .template-item { padding: 1rem; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all 0.2s; } .template-item:hover { background: #f9fafb; border-color: #667eea; } .template-name { font-weight: 500; color: #1f2937; margin-bottom: 0.25rem; } .template-path { font-size: 0.75rem; color: #6b7280; font-family: monospace; margin-bottom: 0.5rem; } .template-description { font-size: 0.875rem; color: #4b5563; } .template-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/indrasishbanerjee/aem-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server