mirror of
https://github.com/soconnor0919/robot-plugins.git
synced 2025-12-15 08:24:45 -05:00
Add SVG icons and enhance card design with visual hierarchy
This commit is contained in:
@@ -99,7 +99,7 @@ body::after {
|
|||||||
|
|
||||||
.grid {
|
.grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1.5rem;
|
gap: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid-cols-2 {
|
.grid-cols-2 {
|
||||||
@@ -107,7 +107,7 @@ body::after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.space-y-6 > * + * {
|
.space-y-6 > * + * {
|
||||||
margin-top: 1.5rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@@ -131,11 +131,11 @@ body::after {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.375rem;
|
gap: 0.375rem;
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
|
border-bottom: 1px solid hsl(var(--border));
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-content {
|
.card-content {
|
||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
padding-top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
@@ -151,6 +151,18 @@ body::after {
|
|||||||
color: hsl(var(--muted-foreground));
|
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 */
|
||||||
.header-card {
|
.header-card {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
@@ -160,6 +172,7 @@ body::after {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-card img {
|
.header-card img {
|
||||||
@@ -192,7 +205,7 @@ body::after {
|
|||||||
.stat-item {
|
.stat-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.5rem;
|
gap: 0.75rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
background: hsl(var(--secondary));
|
background: hsl(var(--secondary));
|
||||||
border-radius: var(--radius);
|
border-radius: var(--radius);
|
||||||
@@ -222,19 +235,32 @@ body::after {
|
|||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info-title {
|
.info-section-header {
|
||||||
font-size: 0.875rem;
|
display: flex;
|
||||||
font-weight: 600;
|
align-items: center;
|
||||||
color: hsl(var(--card-foreground));
|
gap: 0.5rem;
|
||||||
padding-bottom: 0.5rem;
|
padding-bottom: 0.5rem;
|
||||||
border-bottom: 1px solid hsl(var(--border));
|
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 {
|
.info-item {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.info-label {
|
.info-label {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
color: hsl(var(--muted-foreground));
|
color: hsl(var(--muted-foreground));
|
||||||
@@ -255,6 +281,14 @@ body::after {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Icons */
|
||||||
|
.icon {
|
||||||
|
width: 1rem;
|
||||||
|
height: 1rem;
|
||||||
|
color: hsl(var(--muted-foreground));
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Badge List */
|
/* Badge List */
|
||||||
.badge-list {
|
.badge-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -278,8 +312,9 @@ body::after {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.badge.secondary {
|
.badge.secondary {
|
||||||
background: hsl(var(--secondary));
|
background: hsl(var(--card));
|
||||||
color: hsl(var(--secondary-foreground));
|
color: hsl(var(--card-foreground));
|
||||||
|
border: 1px solid hsl(var(--border));
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag {
|
.tag {
|
||||||
@@ -290,17 +325,19 @@ body::after {
|
|||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
background: hsl(var(--secondary));
|
background: hsl(var(--card));
|
||||||
color: hsl(var(--secondary-foreground));
|
color: hsl(var(--card-foreground));
|
||||||
|
border: 1px solid hsl(var(--border));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Code */
|
/* Code */
|
||||||
code {
|
code {
|
||||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||||
background: hsl(var(--secondary));
|
background: hsl(var(--card));
|
||||||
padding: 0.25rem 0.5rem;
|
padding: 0.25rem 0.5rem;
|
||||||
border-radius: calc(var(--radius) - 0.25rem);
|
border-radius: calc(var(--radius) - 0.25rem);
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
|
border: 1px solid hsl(var(--border));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Utilities */
|
/* Utilities */
|
||||||
|
|||||||
140
index.html
140
index.html
@@ -32,6 +32,10 @@
|
|||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="stats-grid">
|
<div class="stats-grid">
|
||||||
<div class="stat-item">
|
<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 class="stat-label">Available Plugins</span>
|
||||||
<span id="pluginCount" class="stat-value"></span>
|
<span id="pluginCount" class="stat-value"></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,17 +53,39 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="info-grid">
|
<div class="info-grid">
|
||||||
<div class="info-item">
|
<div class="sub-card">
|
||||||
<span class="info-label">Name</span>
|
<div class="sub-card-content">
|
||||||
<span id="authorName" class="info-value"></span>
|
<div class="info-item">
|
||||||
</div>
|
<div class="info-header">
|
||||||
<div id="authorOrgContainer" class="info-item hidden">
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
<span class="info-label">Organization</span>
|
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
||||||
<span id="authorOrg" class="info-value"></span>
|
<circle cx="12" cy="7" r="4"></circle>
|
||||||
</div>
|
</svg>
|
||||||
<div id="authorUrlContainer" class="info-item hidden">
|
<span class="info-label">Name</span>
|
||||||
<span class="info-label">Profile</span>
|
</div>
|
||||||
<a id="authorUrl" target="_blank" class="info-link">View Profile</a>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -73,26 +99,71 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="info-grid">
|
<div class="info-grid">
|
||||||
<div class="info-section">
|
<div class="sub-card">
|
||||||
<h4 class="info-title">HRIStudio</h4>
|
<div class="sub-card-content">
|
||||||
<div class="info-item">
|
<div class="info-section">
|
||||||
<span class="info-label">Min Version</span>
|
<div class="info-section-header">
|
||||||
<code id="hriMin" class="info-value"></code>
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
</div>
|
<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>
|
||||||
<div id="hriRecommendedContainer" class="info-item hidden">
|
<path d="m3.3 7 8.7 5 8.7-5"></path>
|
||||||
<span class="info-label">Recommended</span>
|
</svg>
|
||||||
<code id="hriRecommended" class="info-value"></code>
|
<h4 class="info-title">HRIStudio</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="info-item">
|
||||||
<div id="ros2Container" class="info-section hidden">
|
<div class="info-header">
|
||||||
<h4 class="info-title">ROS 2</h4>
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||||
<div class="info-item">
|
<path d="M12 2v20"></path>
|
||||||
<span class="info-label">Distributions</span>
|
<path d="M2 12h20"></path>
|
||||||
<div id="ros2Distributions" class="badge-list"></div>
|
</svg>
|
||||||
</div>
|
<span class="info-label">Min Version</span>
|
||||||
<div id="ros2RecommendedContainer" class="info-item hidden">
|
</div>
|
||||||
<span class="info-label">Recommended</span>
|
<code id="hriMin" class="info-value"></code>
|
||||||
<code id="ros2Recommended" 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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,7 +178,11 @@
|
|||||||
<p class="card-description">Repository categories and features</p>
|
<p class="card-description">Repository categories and features</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -199,5 +274,4 @@
|
|||||||
loadRepositoryData();
|
loadRepositoryData();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user