Files
legolog/client/public/components/storefront.mjs
Benjamin Kyd 4a83c84d3d something
Former-commit-id: 41811c2d7d98c1d3ad65e0d1dd559de64f96845e
2022-03-25 15:57:12 +00:00

32 lines
750 B
JavaScript

import { RegisterComponent, Component } from './components.mjs';
class StoreFront extends Component {
static __IDENTIFY() { return 'storefront'; }
constructor() {
super(StoreFront);
}
Render() {
return {
template: `
<product-list-component id="featured"
title="Featured Lego Sets"
getroute="/api/sets/featured">
</product-list-component>
`,
style: `
product-list-component {
display: block;
margin: 0 auto;
}`,
};
}
OnceRendered() {
}
}
RegisterComponent(StoreFront);