velxio/frontend/src/components/examples/ExamplesGallery.css

335 lines
5.0 KiB
CSS
Raw Normal View History

/**
* Examples Gallery Styles
*/
.examples-gallery {
min-height: 100vh;
background-color: #1e1e1e;
color: #fff;
padding: 40px 20px;
}
.examples-nav {
max-width: 1200px;
margin: 0 auto 20px auto;
}
.back-link {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background-color: #2d2d2d;
color: #fff;
text-decoration: none;
border-radius: 6px;
border: 1px solid #444;
font-size: 14px;
transition: all 0.2s;
}
.back-link:hover {
background-color: #3d3d3d;
border-color: #007acc;
color: #007acc;
}
.examples-header {
text-align: center;
margin-bottom: 40px;
}
.examples-header h1 {
font-size: 48px;
margin: 0 0 10px 0;
font-weight: 300;
}
.examples-header p {
font-size: 20px;
color: #aaa;
margin: 0;
}
/* Filters */
.examples-filters {
max-width: 1200px;
margin: 0 auto 40px auto;
display: flex;
flex-direction: column;
gap: 20px;
}
.filter-group {
display: flex;
align-items: center;
gap: 15px;
}
.filter-group label {
font-size: 14px;
color: #aaa;
min-width: 80px;
}
.filter-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.filter-button {
padding: 8px 16px;
border: 1px solid #444;
background-color: #2d2d2d;
color: #fff;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
}
.filter-button:hover {
background-color: #3d3d3d;
border-color: #555;
}
.filter-button.active {
background-color: #007acc;
border-color: #007acc;
color: #fff;
}
/* Examples Grid */
.examples-grid {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 24px;
}
.example-card {
background-color: #2d2d2d;
border: 1px solid #444;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: all 0.3s;
display: flex;
flex-direction: column;
}
.example-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
border-color: #007acc;
}
.example-thumbnail {
width: 100%;
height: 200px;
background-color: #1e1e1e;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.example-thumbnail img {
width: 100%;
height: 100%;
object-fit: contain;
}
.example-preview-image {
background-color: #1a1a1a;
}
.example-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
height: 100%;
}
.example-placeholder-new {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
border: 2px dashed #444;
}
.placeholder-icon {
font-size: 72px;
opacity: 0.7;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}
.placeholder-text {
display: flex;
flex-direction: column;
gap: 6px;
text-align: center;
}
.component-count,
.wire-count {
font-size: 13px;
color: #aaa;
font-weight: 500;
}
.component-count {
color: #00d9ff;
}
.wire-count {
color: #fbbf24;
}
.example-icon {
font-size: 64px;
opacity: 0.5;
}
.example-components-count {
font-size: 12px;
color: #888;
}
.example-info {
padding: 16px;
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
.example-title {
font-size: 18px;
font-weight: 600;
margin: 0;
color: #fff;
}
.example-description {
font-size: 14px;
color: #aaa;
margin: 0;
line-height: 1.5;
flex: 1;
}
.example-meta {
display: flex;
align-items: center;
gap: 10px;
margin-top: auto;
}
.example-difficulty {
padding: 4px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
color: #1e1e1e;
}
.example-category {
font-size: 12px;
color: #888;
text-transform: capitalize;
}
/* Empty State */
.examples-empty {
max-width: 1200px;
margin: 60px auto;
text-align: center;
color: #888;
font-size: 16px;
}
/* Responsive */
@media (max-width: 768px) {
.examples-header h1 {
font-size: 32px;
}
.examples-header p {
font-size: 16px;
}
.examples-grid {
grid-template-columns: 1fr;
}
.filter-group {
flex-direction: column;
align-items: flex-start;
}
.filter-group label {
min-width: auto;
}
}
/* Board tabs */
.examples-board-tabs {
max-width: 1200px;
margin: 0 auto 24px auto;
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 0 4px;
}
.board-tab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border-radius: 20px;
border: 1px solid #555;
background: #2d2d2d;
color: #ccc;
font-size: 0.82rem;
font-weight: 500;
cursor: pointer;
transition: all 0.18s;
white-space: nowrap;
}
.board-tab:hover {
border-color: #888;
color: #fff;
background: #3a3a3a;
}
.board-tab.active {
font-weight: 700;
}
.board-tab-count {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
border-radius: 9px;
background: rgba(255,255,255,0.18);
font-size: 0.72rem;
font-weight: 700;
padding: 0 4px;
}