mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
110 lines
1.8 KiB
SCSS
110 lines
1.8 KiB
SCSS
.container {
|
|
width: 100%;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
gap: 1rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.appItem {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
background-color: var(--bg-card);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
transition:
|
|
transform 0.2s ease-in-out,
|
|
box-shadow 0.2s ease-in-out;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
}
|
|
|
|
.appItemError {
|
|
border: 2px solid #ffd700;
|
|
}
|
|
|
|
.previewImage {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
object-fit: cover;
|
|
background-color: var(--bg-subtle);
|
|
}
|
|
|
|
.placeholderImage {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: var(--bg-subtle);
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.appTitle {
|
|
padding: 0.75rem;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.loading,
|
|
.error,
|
|
.empty {
|
|
width: 100%;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.error {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.buttonContainer {
|
|
display: flex;
|
|
justify-content: center;
|
|
width: 100%;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.loadMoreButton {
|
|
padding: 0.75rem 1.5rem;
|
|
background-color: #22c55e;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
|
|
&:hover {
|
|
background-color: #16a34a;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: repeat(3, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|