-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MWPW-139915: catalog load swc from Milo (#149)
- Loading branch information
Showing
7 changed files
with
367 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
.catalog.app { | ||
display: flex; | ||
min-height: 400px; | ||
justify-content: center; | ||
} | ||
|
||
|
||
@media screen and (min-width: 1200px) { | ||
.catalog.app { | ||
display: flex; | ||
display: grid; | ||
gap: 36px; | ||
justify-content: center; | ||
grid-template-columns: 240px auto; | ||
min-height: 400px; | ||
} | ||
|
||
merch-sidenav { | ||
min-width: 240px; | ||
} | ||
} | ||
|
||
.catalog > merch-sidenav { | ||
grid-column: 1 / span 1; | ||
order: 0; | ||
} | ||
|
||
.catalog > merch-cards { | ||
order: 1; | ||
align-self: baseline; | ||
grid-column: 2 / span 1; | ||
order: 1; | ||
padding: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
/* eslint-disable chai-friendly/no-unused-expressions */ | ||
import { getLibs } from '../../scripts/utils.js'; | ||
|
||
export default async function init(el) { | ||
el.classList.add('app'); | ||
const miloLibs = getLibs(); | ||
import(`${miloLibs}/deps/lit-all.min.js`); | ||
import(`${miloLibs}/blocks/merch-cards/merch-cards.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/theme.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/button.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/icons/checkmark.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/icons/chevron.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/help-text.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/icon.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/icons-ui.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/icons-workflow.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/menu.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/overlay.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/popover.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/reactive-controllers.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/search.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/shared.js`); | ||
import(`${miloLibs}/features/spectrum-web-components/dist/textfield.js`); | ||
el.classList.add('merch', 'app'); | ||
el.innerHTML = ''; | ||
return el; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is only for loading lit only once on hlx.page and hlx.live |
Large diffs are not rendered by default.
Oops, something went wrong.