improve listing
This commit is contained in:
@@ -33,6 +33,7 @@ class PageHome extends HTMLElement {
|
||||
<listing-card
|
||||
listing-id="${i + 1}"
|
||||
title="${t('home.placeholderTitle')}"
|
||||
price="699"
|
||||
location="${t('home.placeholderLocation')}"
|
||||
></listing-card>
|
||||
`).join('');
|
||||
@@ -56,17 +57,5 @@ style.textContent = /* css */`
|
||||
page-home section h2 {
|
||||
margin-bottom: var(--space-lg);
|
||||
}
|
||||
|
||||
page-home .listings-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
page-home .listings-grid {
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
}
|
||||
}
|
||||
`;
|
||||
document.head.appendChild(style);
|
||||
|
||||
Reference in New Issue
Block a user