diff --git a/assets/styles.css b/assets/styles.css index c52316317..1a33ea71f 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -23,13 +23,15 @@ body { .cart { margin: 25px 100px; - float: right; border: 1px solid #d8d8d8; - padding: 10px 30px; + padding: 30px 30px; + margin-left: auto; + width: 50px; + justify-content: flex-end; background-color: white; + box-shadow: 2px 15px -12px rgba(0, 0, 0, 0.57); -webkit-box-shadow: 0px 2px 15px -12px rgba(0, 0, 0, 0.57); -moz-box-shadow: 0px 2px 15px -12px rgba(0, 0, 0, 0.57); - box-shadow: 2px 15px -12px rgba(0, 0, 0, 0.57); } .color-circle { diff --git a/components/ProductDisplay.js b/components/ProductDisplay.js new file mode 100644 index 000000000..df5c81632 --- /dev/null +++ b/components/ProductDisplay.js @@ -0,0 +1,79 @@ +app.component('product-display', { + props: { + premium: { + type: Boolean, + required: true + }, + details: { + type: Array, + required: true + } + }, + template: + /*html*/ + `
In Stock
+Out of Stock
+ +Shipping: {{ shipping }}
+ +