diff --git a/assets/style.css b/assets/style.css index ac4ee9f..6e58682 100644 --- a/assets/style.css +++ b/assets/style.css @@ -23,19 +23,19 @@ @media (prefers-color-scheme: dark) { :root { --background: 200 30% 8%; - --foreground: 200 20% 96%; + --foreground: 200 20% 85%; --card: 200 25% 15%; - --card-foreground: 200 15% 85%; + --card-foreground: 200 15% 75%; --popover: 200 50% 8%; - --popover-foreground: 200 20% 96%; + --popover-foreground: 200 20% 85%; --primary: 200 70% 40%; - --primary-foreground: 0 0% 100%; + --primary-foreground: 0 0% 95%; --secondary: 200 30% 20%; - --secondary-foreground: 200 20% 96%; + --secondary-foreground: 200 20% 85%; --muted: 200 30% 20%; - --muted-foreground: 200 30% 65%; + --muted-foreground: 200 30% 60%; --accent: 200 70% 40%; - --accent-foreground: 0 0% 100%; + --accent-foreground: 0 0% 95%; --border: 200 30% 20%; --ring: 200 70% 40%; } @@ -55,6 +55,68 @@ body { background: hsl(var(--background)); transition: background-color 0.3s ease; min-height: 100vh; + position: relative; + overflow-x: hidden; +} + +/* Background Elements */ +body::before { + content: ''; + position: fixed; + inset: 0; + z-index: -2; + background: linear-gradient(to bottom, hsl(var(--background)), hsl(var(--primary) / 0.1), hsl(var(--background))); +} + +/* Gradient Orb */ +body::after { + content: ''; + position: fixed; + width: 1200px; + height: 1200px; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + z-index: -1; + background: radial-gradient(circle at center, + hsl(var(--primary) / 0.3), + hsl(var(--secondary) / 0.3), + hsl(var(--background)) 70% + ); + opacity: 0.6; + filter: blur(40px); + animation: gradient-move 30s ease-in-out infinite; +} + +/* Dotted Pattern */ +.container::before { + content: ''; + position: fixed; + inset: 0; + z-index: -1; + opacity: 0.35; + background-image: radial-gradient(circle at 1px 1px, hsl(var(--primary) / 0.5) 1px, transparent 0); + background-size: 32px 32px; + mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent); + pointer-events: none; +} + +@keyframes gradient-move { + 0% { + transform: translate(-50%, -50%) scale(1) rotate(0deg); + } + 25% { + transform: translate(-50%, -50%) scale(1.05) rotate(90deg); + } + 50% { + transform: translate(-50%, -50%) scale(0.95) rotate(180deg); + } + 75% { + transform: translate(-50%, -50%) scale(1.05) rotate(270deg); + } + 100% { + transform: translate(-50%, -50%) scale(1) rotate(360deg); + } } /* Layout */ @@ -62,15 +124,17 @@ body { max-width: 80rem; margin: 0 auto; padding: 1.5rem; + position: relative; } .grid { display: grid; gap: 1.5rem; + align-items: stretch; } .grid-cols-2 { - grid-template-columns: repeat(2, 1fr); + grid-template-columns: repeat(2, minmax(0, 1fr)); } /* Components */ @@ -79,22 +143,255 @@ body { border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); - transition: background-color 0.3s ease, border-color 0.3s ease; height: 100%; display: flex; flex-direction: column; } +/* Add glass effect only to root card */ +.card:not(.card .card) { + background: hsl(var(--card) / 0.5); + backdrop-filter: blur(16px); + border: 1px solid hsl(var(--border) / 0.5); +} + +/* Ensure nested cards remain solid */ +.card .card { + background: hsl(var(--card)); + backdrop-filter: none; +} + .card-header { - padding: 1.5rem; + display: flex; + flex-direction: column; + gap: 0.375rem; /* space-y-1.5 */ + padding: 1.5rem; /* p-6 */ border-bottom: 1px solid hsl(var(--border)); } +.card-header h2 { + margin: 0; + font-size: 1.25rem; + font-weight: 600; + line-height: 1; + letter-spacing: -0.025em; + color: hsl(var(--foreground)); +} + .card-content { - padding: 1.5rem; + padding: 1.5rem; /* p-6 */ flex: 1; } +.card-content h3 { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.875rem; + font-weight: 600; + color: hsl(var(--foreground)); + margin-bottom: 1rem; +} + +.card-content h3 svg { + width: 1rem; + height: 1rem; + color: hsl(var(--muted-foreground)); +} + +.card-section { + padding: 1rem; + border-radius: calc(var(--radius) - 0.25rem); + background: hsl(var(--secondary) / 0.7); + margin-bottom: 1rem; +} + +.card-section:last-child { + margin-bottom: 0; +} + +.card-row { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.card-row + .card-row { + margin-top: 0.5rem; +} + +/* Remove the extra margin from the license row */ +.card-row[style*="margin-top"] { + margin-top: 0.5rem !important; +} + +.card-row svg { + width: 1rem; + height: 1rem; + color: hsl(var(--muted-foreground)); +} + +.card-row span { + font-size: 0.875rem; + color: hsl(var(--foreground)); +} + +.card-row .label { + color: hsl(var(--muted-foreground)); + margin-right: 0.25rem; +} + +/* Update link styling */ +.card-row a { + color: hsl(var(--primary)); + text-decoration: none; + font-weight: 500; + font-size: 0.875rem; +} + +.card-row a:hover { + text-decoration: underline; +} + +/* Maintainers section styling */ +.maintainers-section { + width: 100%; + margin-top: 1.5rem; +} + +.maintainers-section h3 { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.875rem; + font-weight: 600; + color: hsl(var(--foreground)); + margin-bottom: 0.75rem; +} + +.maintainers-section h3 svg { + width: 1rem; + height: 1rem; + color: hsl(var(--muted-foreground)); +} + +.maintainers-table { + width: 100%; + border-spacing: 0; + font-size: 0.875rem; +} + +.maintainers-row { + display: flex; + align-items: center; + justify-content: space-between; + padding: 0.5rem 0; + border-bottom: 1px solid hsl(var(--border)); +} + +.maintainers-row:last-child { + border-bottom: none; +} + +.maintainer-name { + color: hsl(var(--foreground)); + font-weight: 500; +} + +.maintainer-links { + display: flex; + gap: 0.75rem; +} + +.maintainer-link { + display: inline-flex; + align-items: center; + gap: 0.375rem; + color: hsl(var(--primary)); + text-decoration: none; + font-size: 0.75rem; + font-weight: 500; +} + +.maintainer-link:hover { + text-decoration: underline; +} + +.maintainer-link svg { + color: hsl(var(--muted-foreground)); +} + +/* Remove old maintainers styling */ +#maintainersList { + display: inline; + color: hsl(var(--foreground)); + font-size: 0.875rem; +} + +#maintainersList span + span::before { + content: ', '; +} + +#maintainersContainer { + margin-top: 0.5rem; +} + +#maintainersContainer .card-row { + display: flex; + align-items: flex-start; +} + +#maintainersContainer .label { + margin-right: 0.5rem; +} + +/* Update badge styling */ +.badge { + display: inline-flex; + align-items: center; + justify-content: center; + height: 1.5rem; + padding: 0 0.75rem; + border-radius: 9999px; + font-size: 0.75rem; + font-weight: 500; + line-height: 1; + background: hsl(var(--primary) / 0.1); + color: hsl(var(--primary)); + white-space: nowrap; +} + +.badge-secondary { + background: hsl(var(--secondary)); + color: hsl(var(--secondary-foreground)); +} + +/* Fix ROS2 distributions badges */ +#ros2Distributions { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; + margin: 0; + padding-bottom: 0.5rem; +} + +#ros2Distributions .badge { + margin: 0; +} + +/* Fix tags badges */ +#tags { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; + margin: 0; +} + +#tags .badge { + margin: 0; +} + +/* Header */ .header-banner { position: relative; width: 100%; @@ -104,7 +401,6 @@ body { border-radius: var(--radius); overflow: hidden; border: 1px solid hsl(var(--border)); - transition: background-color 0.3s ease, border-color 0.3s ease; } .header-banner img { @@ -120,15 +416,14 @@ body { margin-bottom: 2rem; } +/* Update header icon */ .header-icon { width: 6rem; height: 6rem; + min-width: 6rem; border-radius: var(--radius); object-fit: contain; background: hsl(var(--secondary)); - padding: 0.75rem; - border: 1px solid hsl(var(--border)); - transition: background-color 0.3s ease; } .title { @@ -136,14 +431,12 @@ body { font-weight: 600; margin-bottom: 0.5rem; color: hsl(var(--foreground)); - transition: color 0.3s ease; line-height: 1.2; } .description { color: hsl(var(--muted-foreground)); font-size: 1.125rem; - transition: color 0.3s ease; } /* Tabs */ @@ -154,49 +447,60 @@ body { } .tabs-list { - display: flex; - gap: 0.5rem; - border-bottom: 1px solid hsl(var(--border)); - margin-bottom: 1.5rem; - padding: 0 0.5rem; + display: inline-flex; + height: 2.25rem; /* h-9 */ + items-center: center; + justify-content: center; + background: hsl(var(--muted)); + padding: 0.25rem; /* p-1 */ + border-radius: var(--radius); } .tab { position: relative; - padding: 0.75rem 1rem; + display: inline-flex; + align-items: center; + justify-content: center; + white-space: nowrap; + border-radius: calc(var(--radius) - 0.25rem); /* rounded-md */ + padding: 0 0.75rem; + height: 100%; + font-family: inherit; + font-size: 0.875rem; /* text-sm */ + font-weight: 500; /* font-medium */ + line-height: inherit; color: hsl(var(--muted-foreground)); - font-weight: 500; - font-size: 0.875rem; - cursor: pointer; - transition: all 0.2s ease; - background: none; + background: transparent; border: none; outline: none; user-select: none; - margin-bottom: -1px; + transition: all 0.15s ease; + cursor: pointer; } .tab:hover { color: hsl(var(--foreground)); } +.tab:focus-visible { + outline: none; + ring: 2px solid hsl(var(--ring)); + ring-offset: 2px; +} + .tab[data-state="active"] { + background: hsl(var(--background)); color: hsl(var(--foreground)); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); } .tab[data-state="active"]::after { - content: ''; - position: absolute; - left: 0; - bottom: 0; - width: 100%; - height: 2px; - background: hsl(var(--primary)); - border-radius: var(--radius) var(--radius) 0 0; + display: none; } .tab-content { display: none; + margin-top: 0.5rem; } .tab-content[data-state="active"] { @@ -207,18 +511,15 @@ body { .plugin-grid { display: grid; gap: 1rem; - grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); } .plugin-card { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1.5rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); - transition: all 0.3s ease; + overflow: hidden; + transition: all 0.2s ease; } .plugin-card:hover { @@ -228,33 +529,38 @@ body { .plugin-header { display: flex; - align-items: flex-start; gap: 1rem; + padding: 1rem; +} + +.plugin-icon-wrapper { + position: relative; + width: 4rem; + height: 4rem; + flex-shrink: 0; } .plugin-icon { - width: 3rem; - height: 3rem; - min-width: 3rem; + width: 100%; + height: 100%; border-radius: calc(var(--radius) - 0.25rem); object-fit: contain; background: hsl(var(--secondary)); padding: 0.5rem; - border: 1px solid hsl(var(--border)); } .plugin-info { flex: 1; min-width: 0; + display: flex; + flex-direction: column; + gap: 0.5rem; } .plugin-title { font-weight: 600; color: hsl(var(--foreground)); - margin-bottom: 0.25rem; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + font-size: 1rem; } .plugin-description { @@ -265,6 +571,45 @@ body { -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; + margin-bottom: 0.5rem; +} + +.plugin-meta { + display: flex; + align-items: center; + justify-content: space-between; + margin-top: auto; +} + +.plugin-stats { + display: flex; + gap: 1rem; +} + +.plugin-stat { + display: flex; + align-items: center; + gap: 0.375rem; + color: hsl(var(--muted-foreground)); + font-size: 0.75rem; +} + +.plugin-stat svg { + color: hsl(var(--muted-foreground)); +} + +.install-button { + height: 1.75rem; + padding: 0 0.75rem; + font-size: 0.75rem; + display: inline-flex; + align-items: center; + gap: 0.375rem; +} + +.install-button svg { + width: 0.875rem; + height: 0.875rem; } /* Images */ @@ -273,25 +618,6 @@ img { height: auto; } -/* Badges */ -.badge { - display: inline-flex; - align-items: center; - padding: 0.25rem 0.75rem; - border-radius: 9999px; - font-size: 0.75rem; - font-weight: 500; - background: hsl(var(--primary) / 0.1); - color: hsl(var(--primary)); - transition: all 0.3s ease; - margin: 0.25rem; -} - -.badge-secondary { - background: hsl(var(--secondary)); - color: hsl(var(--secondary-foreground)); -} - /* Loading state */ #loading { display: flex; @@ -300,15 +626,18 @@ img { min-height: 20rem; color: hsl(var(--muted-foreground)); font-size: 1.125rem; - transition: color 0.3s ease; } .hidden { - display: none; + display: none !important; } /* Responsive */ @media (max-width: 768px) { + .container { + padding: 1rem; + } + .grid-cols-2 { grid-template-columns: 1fr; } @@ -326,4 +655,426 @@ img { .plugin-grid { grid-template-columns: 1fr; } +} + +/* Button */ +.button { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 0.5rem; + border-radius: calc(var(--radius) - 0.25rem); + font-size: 0.875rem; + font-weight: 500; + line-height: 1; + padding: 0.5rem 0.75rem; + transition: all 0.15s ease; + cursor: pointer; + white-space: nowrap; + text-decoration: none; +} + +.button-outline { + background: transparent; + border: 1px solid hsl(var(--border)); + color: hsl(var(--foreground)); +} + +.button-outline:hover { + background: hsl(var(--accent) / 0.1); + color: hsl(var(--accent)); +} + +.button-group { + display: flex; + gap: 0.5rem; +} + +/* Header content styling */ +.header-content { + display: flex; + align-items: flex-start; + gap: 1.5rem; + margin-bottom: 2rem; +} + +.flex-1 { + flex: 1; + min-width: 0; +} + +.flex { + display: flex; +} + +.items-center { + align-items: center; +} + +.justify-between { + justify-content: space-between; +} + +/* Plugin Layout */ +.plugin-layout { + display: grid; + grid-template-columns: 350px 1fr; + gap: 1.5rem; + height: calc(100vh - 24rem); + min-height: 400px; +} + +/* Plugin List */ +.plugin-list { + border-right: 1px solid hsl(var(--border)); + overflow-y: auto; + padding-right: 1rem; +} + +.plugin-list-item { + display: flex; + gap: 1rem; + padding: 1rem; + border: 1px solid hsl(var(--border)); + border-radius: var(--radius); + cursor: pointer; + transition: all 0.15s ease; + margin-bottom: 0.75rem; +} + +.plugin-list-item:last-child { + margin-bottom: 0; +} + +.plugin-list-item:hover { + background: hsl(var(--accent) / 0.05); + border-color: hsl(var(--accent) / 0.2); +} + +.plugin-list-item.selected { + background: hsl(var(--card)); + border-color: hsl(var(--primary)); + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); +} + +.plugin-list-icon { + width: 3rem; + height: 3rem; + flex-shrink: 0; +} + +.plugin-list-info { + flex: 1; + min-width: 0; +} + +.plugin-list-title { + font-weight: 600; + color: hsl(var(--foreground)); + font-size: 0.875rem; +} + +.plugin-list-description { + color: hsl(var(--muted-foreground)); + font-size: 0.75rem; + line-height: 1.4; + margin-top: 0.25rem; + display: -webkit-box; + -webkit-box-orient: vertical; + overflow: hidden; +} + +/* Plugin Details */ +.plugin-details { + overflow-y: auto; + position: relative; + height: 100%; + background: hsl(var(--card)); +} + +.plugin-details-header { + padding: 1.5rem; + border-bottom: 1px solid hsl(var(--border)); +} + +.plugin-details-icon { + width: 4rem; + height: 4rem; + flex-shrink: 0; + border-radius: calc(var(--radius) - 0.25rem); + overflow: hidden; + border: 1px solid hsl(var(--border)); + background: hsl(var(--secondary)); +} + +.plugin-details-icon .plugin-icon { + width: 100%; + height: 100%; + object-fit: contain; + padding: 0.5rem; +} + +/* Plugin Images */ +.image-grid { + display: flex; + gap: 1rem; + overflow-x: auto; + padding-bottom: 1rem; + -webkit-overflow-scrolling: touch; +} + +.image-item { + position: relative; + flex-shrink: 0; + border-radius: var(--radius); + overflow: hidden; + border: 1px solid hsl(var(--border)); + background: hsl(var(--muted)); +} + +.image-item.main { + width: 500px; + height: 300px; +} + +.image-item.angle { + width: 300px; + height: 300px; +} + +.image-item img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.image-label { + position: absolute; + bottom: 0; + left: 0; + right: 0; + padding: 0.5rem 1rem; + background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent); + color: white; + font-size: 0.75rem; + font-weight: 500; +} + +/* Plugin Details Tabs */ +.plugin-details-tabs { + display: flex; + flex-direction: column; + gap: 1.5rem; +} + +.plugin-details-tabs-list { + display: inline-flex; + height: 2.25rem; + align-items: center; + justify-content: center; + background: hsl(var(--muted)); + padding: 0.25rem; + border-radius: var(--radius); +} + +.plugin-details-tab { + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + white-space: nowrap; + border-radius: calc(var(--radius) - 0.25rem); + padding: 0 0.75rem; + height: 100%; + font-family: inherit; + font-size: 0.875rem; + font-weight: 500; + line-height: inherit; + color: hsl(var(--muted-foreground)); + background: transparent; + border: none; + outline: none; + user-select: none; + transition: all 0.15s ease; + cursor: pointer; +} + +.plugin-details-tab:hover { + color: hsl(var(--foreground)); +} + +.plugin-details-tab:focus-visible { + outline: none; + ring: 2px solid hsl(var(--ring)); + ring-offset: 2px; +} + +.plugin-details-tab[data-state="active"] { + background: hsl(var(--background)); + color: hsl(var(--foreground)); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); +} + +.plugin-details-tab-content { + display: none; + padding: 1.5rem; + border-radius: var(--radius); + background: hsl(var(--secondary) / 0.7); + border: 1px solid hsl(var(--border)); +} + +.plugin-details-tab-content[data-state="active"] { + display: block; +} + +/* ROS2 Configuration */ +#detailsTopics { + display: grid; + gap: 0.5rem; +} + +/* Capabilities */ +#detailsCapabilities { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; +} + +/* Actions tab styling */ +#detailsActions { + margin: -1.5rem; + display: grid; + gap: 1px; + background: hsl(var(--border)); +} + +#detailsActions .card { + margin: 0; + border-radius: 0; + border: none; + background: hsl(var(--card)); +} + +#detailsActions .card .card-content { + padding: 1.5rem; +} + +/* Secondary Card Style */ +.card-secondary { + padding: 1rem; + border-radius: var(--radius); + background: hsl(var(--secondary) / 0.7); + border: 1px solid hsl(var(--border)); +} + +.card-secondary + .card-secondary { + margin-top: 1rem; +} + +.card-secondary h4 { + font-size: 0.875rem; + font-weight: 600; + margin-bottom: 1rem; + color: hsl(var(--foreground)); +} + +/* Update image grid container to match new styling */ +#detailsImages { + margin: -1.5rem -1.5rem 1.5rem -1.5rem; + padding: 1.5rem; + background: hsl(var(--card)); + border-bottom: 1px solid hsl(var(--border)); +} + +/* Nested cards in tab content */ +.plugin-details-tab-content .card { + background: hsl(var(--card)); + border: 1px solid hsl(var(--border)); + margin-top: 1rem; +} + +.plugin-details-tab-content .card:first-child { + margin-top: 0; +} + +/* Documentation section */ +.plugin-details-tab-content .card .card-header { + padding: 1rem; +} + +.plugin-details-tab-content .card .card-content { + padding: 1rem; +} + +/* Empty State */ +#emptyState { + position: absolute; + inset: 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 1.5rem; + text-align: center; + background: hsl(var(--card)); +} + +/* Card Sections */ +.card-section { + padding: 1rem; + border-radius: calc(var(--radius) - 0.25rem); + background: hsl(var(--secondary) / 0.7); + margin-bottom: 1rem; +} + +.card-section:last-child { + margin-bottom: 0; +} + +.card-section h3 { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.875rem; + font-weight: 600; + color: hsl(var(--foreground)); + margin-bottom: 1rem; +} + +.card-section h3 svg { + width: 1rem; + height: 1rem; + color: hsl(var(--muted-foreground)); +} + +/* Code Blocks */ +code { + font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + font-size: 0.875rem; +} + +/* Responsive adjustments */ +@media (max-width: 768px) { + .plugin-layout { + grid-template-columns: 1fr; + height: auto; + } + + .plugin-list { + border-right: none; + border-bottom: 1px solid hsl(var(--border)); + padding-right: 0; + padding-bottom: 1rem; + max-height: 400px; + } + + .image-grid { + flex-direction: column; + } + + .image-item.main, + .image-item.angle { + width: 100%; + height: 200px; + } } \ No newline at end of file diff --git a/index.html b/index.html index 9148bb0..dfcf48b 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,22 @@