mirror of
https://github.com/soconnor0919/robot-plugins.git
synced 2025-12-12 23:24:43 -05:00
Add SVG icons and enhance card design with visual hierarchy
This commit is contained in:
@@ -99,7 +99,7 @@ body::after {
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 1.5rem;
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.grid-cols-2 {
|
||||
@@ -107,7 +107,7 @@ body::after {
|
||||
}
|
||||
|
||||
.space-y-6 > * + * {
|
||||
margin-top: 1.5rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
@@ -131,11 +131,11 @@ body::after {
|
||||
flex-direction: column;
|
||||
gap: 0.375rem;
|
||||
padding: 1.5rem;
|
||||
border-bottom: 1px solid hsl(var(--border));
|
||||
}
|
||||
|
||||
.card-content {
|
||||
padding: 1.5rem;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
@@ -151,6 +151,18 @@ body::after {
|
||||
color: hsl(var(--muted-foreground));
|
||||
}
|
||||
|
||||
/* Sub Card */
|
||||
.sub-card {
|
||||
border-radius: calc(var(--radius) - 0.25rem);
|
||||
border: 1px solid hsl(var(--border));
|
||||
background: hsl(var(--secondary));
|
||||
color: hsl(var(--secondary-foreground));
|
||||
}
|
||||
|
||||
.sub-card-content {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
/* Header Card */
|
||||
.header-card {
|
||||
margin-bottom: 1.5rem;
|
||||
@@ -160,6 +172,7 @@ body::after {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.header-card img {
|
||||
@@ -192,7 +205,7 @@ body::after {
|
||||
.stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem;
|
||||
background: hsl(var(--secondary));
|
||||
border-radius: var(--radius);
|
||||
@@ -222,19 +235,32 @@ body::after {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.info-title {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: hsl(var(--card-foreground));
|
||||
.info-section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
border-bottom: 1px solid hsl(var(--border));
|
||||
}
|
||||
|
||||
.info-title {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: hsl(var(--card-foreground));
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.info-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.info-label {
|
||||
font-size: 0.875rem;
|
||||
color: hsl(var(--muted-foreground));
|
||||
@@ -255,6 +281,14 @@ body::after {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Icons */
|
||||
.icon {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
color: hsl(var(--muted-foreground));
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* Badge List */
|
||||
.badge-list {
|
||||
display: flex;
|
||||
@@ -278,8 +312,9 @@ body::after {
|
||||
}
|
||||
|
||||
.badge.secondary {
|
||||
background: hsl(var(--secondary));
|
||||
color: hsl(var(--secondary-foreground));
|
||||
background: hsl(var(--card));
|
||||
color: hsl(var(--card-foreground));
|
||||
border: 1px solid hsl(var(--border));
|
||||
}
|
||||
|
||||
.tag {
|
||||
@@ -290,17 +325,19 @@ body::after {
|
||||
border-radius: 9999px;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1;
|
||||
background: hsl(var(--secondary));
|
||||
color: hsl(var(--secondary-foreground));
|
||||
background: hsl(var(--card));
|
||||
color: hsl(var(--card-foreground));
|
||||
border: 1px solid hsl(var(--border));
|
||||
}
|
||||
|
||||
/* Code */
|
||||
code {
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
background: hsl(var(--secondary));
|
||||
background: hsl(var(--card));
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: calc(var(--radius) - 0.25rem);
|
||||
font-size: 0.875rem;
|
||||
border: 1px solid hsl(var(--border));
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
|
||||
140
index.html
140
index.html
@@ -32,6 +32,10 @@
|
||||
<div class="card-content">
|
||||
<div class="stats-grid">
|
||||
<div class="stat-item">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>
|
||||
<path d="M3.3 7l8.7 5 8.7-5"></path>
|
||||
</svg>
|
||||
<span class="stat-label">Available Plugins</span>
|
||||
<span id="pluginCount" class="stat-value"></span>
|
||||
</div>
|
||||
@@ -49,17 +53,39 @@
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="info-grid">
|
||||
<div class="info-item">
|
||||
<span class="info-label">Name</span>
|
||||
<span id="authorName" class="info-value"></span>
|
||||
</div>
|
||||
<div id="authorOrgContainer" class="info-item hidden">
|
||||
<span class="info-label">Organization</span>
|
||||
<span id="authorOrg" class="info-value"></span>
|
||||
</div>
|
||||
<div id="authorUrlContainer" class="info-item hidden">
|
||||
<span class="info-label">Profile</span>
|
||||
<a id="authorUrl" target="_blank" class="info-link">View Profile</a>
|
||||
<div class="sub-card">
|
||||
<div class="sub-card-content">
|
||||
<div class="info-item">
|
||||
<div class="info-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="12" cy="7" r="4"></circle>
|
||||
</svg>
|
||||
<span class="info-label">Name</span>
|
||||
</div>
|
||||
<span id="authorName" class="info-value"></span>
|
||||
</div>
|
||||
<div id="authorOrgContainer" class="info-item hidden">
|
||||
<div class="info-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect>
|
||||
<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>
|
||||
</svg>
|
||||
<span class="info-label">Organization</span>
|
||||
</div>
|
||||
<span id="authorOrg" class="info-value"></span>
|
||||
</div>
|
||||
<div id="authorUrlContainer" class="info-item hidden">
|
||||
<div class="info-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
|
||||
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
|
||||
</svg>
|
||||
<span class="info-label">Profile</span>
|
||||
</div>
|
||||
<a id="authorUrl" target="_blank" class="info-link">View Profile</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -73,26 +99,71 @@
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="info-grid">
|
||||
<div class="info-section">
|
||||
<h4 class="info-title">HRIStudio</h4>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Min Version</span>
|
||||
<code id="hriMin" class="info-value"></code>
|
||||
</div>
|
||||
<div id="hriRecommendedContainer" class="info-item hidden">
|
||||
<span class="info-label">Recommended</span>
|
||||
<code id="hriRecommended" class="info-value"></code>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ros2Container" class="info-section hidden">
|
||||
<h4 class="info-title">ROS 2</h4>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Distributions</span>
|
||||
<div id="ros2Distributions" class="badge-list"></div>
|
||||
</div>
|
||||
<div id="ros2RecommendedContainer" class="info-item hidden">
|
||||
<span class="info-label">Recommended</span>
|
||||
<code id="ros2Recommended" class="info-value"></code>
|
||||
<div class="sub-card">
|
||||
<div class="sub-card-content">
|
||||
<div class="info-section">
|
||||
<div class="info-section-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>
|
||||
<path d="m3.3 7 8.7 5 8.7-5"></path>
|
||||
</svg>
|
||||
<h4 class="info-title">HRIStudio</h4>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<div class="info-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M12 2v20"></path>
|
||||
<path d="M2 12h20"></path>
|
||||
</svg>
|
||||
<span class="info-label">Min Version</span>
|
||||
</div>
|
||||
<code id="hriMin" class="info-value"></code>
|
||||
</div>
|
||||
<div id="hriRecommendedContainer" class="info-item hidden">
|
||||
<div class="info-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"></path>
|
||||
<path d="m9 12 2 2 4-4"></path>
|
||||
</svg>
|
||||
<span class="info-label">Recommended</span>
|
||||
</div>
|
||||
<code id="hriRecommended" class="info-value"></code>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ros2Container" class="info-section hidden">
|
||||
<div class="info-section-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<circle cx="12" cy="12" r="10"></circle>
|
||||
<path d="M16.2 7.8c2.3 2.3 2.3 6.1 0 8.4"></path>
|
||||
<path d="M7.8 7.8c-2.3 2.3-2.3 6.1 0 8.4"></path>
|
||||
</svg>
|
||||
<h4 class="info-title">ROS 2</h4>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<div class="info-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M8 2h8"></path>
|
||||
<path d="M8 6h8"></path>
|
||||
<path d="M8 10h8"></path>
|
||||
<path d="M8 14h8"></path>
|
||||
<path d="M8 18h8"></path>
|
||||
<path d="M3 22h18"></path>
|
||||
</svg>
|
||||
<span class="info-label">Distributions</span>
|
||||
</div>
|
||||
<div id="ros2Distributions" class="badge-list"></div>
|
||||
</div>
|
||||
<div id="ros2RecommendedContainer" class="info-item hidden">
|
||||
<div class="info-header">
|
||||
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"></path>
|
||||
<path d="m9 12 2 2 4-4"></path>
|
||||
</svg>
|
||||
<span class="info-label">Recommended</span>
|
||||
</div>
|
||||
<code id="ros2Recommended" class="info-value"></code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -107,7 +178,11 @@
|
||||
<p class="card-description">Repository categories and features</p>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div id="tags" class="badge-list"></div>
|
||||
<div class="sub-card">
|
||||
<div class="sub-card-content">
|
||||
<div id="tags" class="badge-list"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -199,5 +274,4 @@
|
||||
loadRepositoryData();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
Reference in New Issue
Block a user