-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
201 additions
and
2 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
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,8 @@ | ||
.store-page { | ||
min-height: 85vh; | ||
height: fit-content; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
} |
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,7 @@ | ||
--- | ||
title: "Store" | ||
date: 2020-01-25T23:11:13Z | ||
draft: false | ||
url: "/store" | ||
layout: store | ||
--- |
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,147 @@ | ||
{{ define "main" }} | ||
{{- partial "navbar_temp.html" . -}} | ||
<div class="store-page"> | ||
<div id="product-component-1636959994799"></div> | ||
<script type="text/javascript"> | ||
/*<![CDATA[*/ | ||
(function () { | ||
var scriptURL = | ||
"https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js"; | ||
if (window.ShopifyBuy) { | ||
if (window.ShopifyBuy.UI) { | ||
ShopifyBuyInit(); | ||
} else { | ||
loadScript(); | ||
} | ||
} else { | ||
loadScript(); | ||
} | ||
function loadScript() { | ||
var script = document.createElement("script"); | ||
script.async = true; | ||
script.src = scriptURL; | ||
( | ||
document.getElementsByTagName("head")[0] || | ||
document.getElementsByTagName("body")[0] | ||
).appendChild(script); | ||
script.onload = ShopifyBuyInit; | ||
} | ||
function ShopifyBuyInit() { | ||
var client = ShopifyBuy.buildClient({ | ||
domain: "carletoncss.myshopify.com", | ||
storefrontAccessToken: "d5a5f1618f7ea6ac7df47ce4d945a7d2", | ||
}); | ||
ShopifyBuy.UI.onReady(client).then(function (ui) { | ||
ui.createComponent("product", { | ||
id: "7072036388920", | ||
node: document.getElementById("product-component-1636959994799"), | ||
moneyFormat: "%24%7B%7Bamount%7D%7D", | ||
options: { | ||
product: { | ||
styles: { | ||
product: { | ||
"@media (min-width: 601px)": { | ||
"max-width": "calc(25% - 20px)", | ||
"margin-left": "20px", | ||
"margin-bottom": "50px", | ||
}, | ||
}, | ||
button: { | ||
":hover": { | ||
"background-color": "#ff0c46", | ||
}, | ||
"background-color": "#c40729", | ||
":focus": { | ||
"background-color": "#ff0c46", | ||
}, | ||
"border-radius": "8px", | ||
"padding-left": "32px", | ||
"padding-right": "32px", | ||
}, | ||
}, | ||
text: { | ||
button: "Add to cart", | ||
}, | ||
}, | ||
productSet: { | ||
styles: { | ||
products: { | ||
"@media (min-width: 601px)": { | ||
"margin-left": "-20px", | ||
}, | ||
}, | ||
}, | ||
}, | ||
modalProduct: { | ||
contents: { | ||
img: false, | ||
imgWithCarousel: true, | ||
button: false, | ||
buttonWithQuantity: true, | ||
}, | ||
styles: { | ||
product: { | ||
"@media (min-width: 601px)": { | ||
"max-width": "100%", | ||
"margin-left": "0px", | ||
"margin-bottom": "0px", | ||
}, | ||
}, | ||
button: { | ||
":hover": { | ||
"background-color": "#ff0c46", | ||
}, | ||
"background-color": "#c40729", | ||
":focus": { | ||
"background-color": "#ff0c46", | ||
}, | ||
"border-radius": "8px", | ||
"padding-left": "32px", | ||
"padding-right": "32px", | ||
}, | ||
}, | ||
text: { | ||
button: "Add to cart", | ||
}, | ||
}, | ||
option: {}, | ||
cart: { | ||
styles: { | ||
button: { | ||
":hover": { | ||
"background-color": "#ff0c46", | ||
}, | ||
"background-color": "#c40729", | ||
":focus": { | ||
"background-color": "#ff0c46", | ||
}, | ||
"border-radius": "8px", | ||
}, | ||
}, | ||
text: { | ||
total: "Subtotal", | ||
button: "Checkout", | ||
}, | ||
}, | ||
toggle: { | ||
styles: { | ||
toggle: { | ||
"background-color": "#c40729", | ||
":hover": { | ||
"background-color": "#ff0c46", | ||
}, | ||
":focus": { | ||
"background-color": "#ff0c46", | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}); | ||
}); | ||
} | ||
})(); | ||
/*]]>*/ | ||
</script> | ||
</div> | ||
{{ end }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.