-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (111 loc) · 5.71 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html>
<head>
<title>Simple html page running on docker</title>
<!-- adding snipcart -->
<link rel="preconnect" href="https://app.snipcart.com">
<link rel="preconnect" href="https://cdn.snipcart.com">
<link rel="stylesheet" href="https://cdn.snipcart.com/themes/v3.7.1/default/snipcart.css" />
<!-- custom styles -->
<style>
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 10px;
font-size: 16px;
}
@media screen and (max-width: 600px) {
body {
font-size: 14px;
}
}
/* Add to cart button styling */
.snipcart-add-item {
background-color: #ff6347; /* Tomato color */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
transition: 0.3s;
}
.snipcart-add-item:hover {
background-color: #ff4943; /* Darker tomato color when hovered */
}
</style>
</head>
<body>
<main>
<h1>Version: 1.0.2</h1>
<p>Basic versioning APP </p>
<p> This is the 3d version of a very simple versioning app.</p>
<p> and a simple eshop Cart</p>
<p>new update 1.0.2</p>
<p>Go and clone this <a href="https://github.com/stefanogram/docker-aws">here</a>
</p>
<p>create a <a href="https://github.com/stefanogram/docker-aws/pulls">Pull Request</a> in the Github repo </p>
<p>Wait a couple of minutes and see your changes</p>
<br>
<p>You can find the full documentation <a href="https://devops.stefanogramm.com/devops/">here</a>
</p>
<hr>
<hr>
<hr>
<!-- snipcart template to add cart -->
<div>
<h2>Just a keep it simple product</h2>
<p>Keep it simple</p>
<p>Price: $ <span class="price">50.00</span>
</p>
<button class="snipcart-add-item" data-item-id="1" data-item-price="50.00" data-item-url="/" data-item-name="Keep it simple" data-item-description="Just Simple" data-item-image="https://preview.redd.it/bhm73iaapb581.gif?format=png8&s=4bb766b69e37e4ea0361ab09db7704ec626f2e35"> Add to Cart </button>
</div>
</main>
<!-- snipcart juat a test open api here -->
<script>
window.SnipcartSettings = {
publicApiKey: 'M2EzODMzZTctMzljOS00YTBmLTkxYzgtMmYwYWEwZDk2ZDNkNjM2OTU3NTk3ODQ0MDg5MjQ0',
loadStrategy: 'on-user-interaction',
};
(() => {
var c, d;
(d = (c = window.SnipcartSettings).version) != null || (c.version = "3.0");
var s, S;
(S = (s = window.SnipcartSettings).timeoutDuration) != null || (s.timeoutDuration = 2750);
var l, p;
(p = (l = window.SnipcartSettings).domain) != null || (l.domain = "cdn.snipcart.com");
var w, u;
(u = (w = window.SnipcartSettings).protocol) != null || (w.protocol = "https");
var f = window.SnipcartSettings.version.includes("v3.0.0-ci") || window.SnipcartSettings.version != "3.0" && window.SnipcartSettings.version.localeCompare("3.4.0", void 0, {
numeric: !0,
sensitivity: "base"
}) === -1,
m = ["focus", "mouseover", "touchmove", "scroll", "keydown"];
window.LoadSnipcart = o;
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", r) : r();
function r() {
window.SnipcartSettings.loadStrategy ? window.SnipcartSettings.loadStrategy === "on-user-interaction" && (m.forEach(t => document.addEventListener(t, o)), setTimeout(o, window.SnipcartSettings.timeoutDuration)) : o()
}
var a = !1;
function o() {
if (a) return;
a = !0;
let t = document.getElementsByTagName("head")[0],
e = document.querySelector("#snipcart"),
i = document.querySelector(`src[src^="${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}"][src$="snipcart.js"]`),
n = document.querySelector(`link[href^="${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}"][href$="snipcart.css"]`);
e || (e = document.createElement("div"), e.id = "snipcart", e.setAttribute("hidden", "true"), document.body.appendChild(e)), v(e), i || (i = document.createElement("script"), i.src = `${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}/themes/v${window.SnipcartSettings.version}/default/snipcart.js`, i.async = !0, t.appendChild(i)), n || (n = document.createElement("link"), n.rel = "stylesheet", n.type = "text/css", n.href = `${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}/themes/v${window.SnipcartSettings.version}/default/snipcart.css`, t.prepend(n)), m.forEach(g => document.removeEventListener(g, o))
}
function v(t) {
!f || (t.dataset.apiKey = window.SnipcartSettings.publicApiKey, window.SnipcartSettings.addProductBehavior && (t.dataset.configAddProductBehavior = window.SnipcartSettings.addProductBehavior), window.SnipcartSettings.modalStyle && (t.dataset.configModalStyle = window.SnipcartSettings.modalStyle), window.SnipcartSettings.currency && (t.dataset.currency = window.SnipcartSettings.currency), window.SnipcartSettings.templatesUrl && (t.dataset.templatesUrl = window.SnipcartSettings.templatesUrl))
}
})();
</script>
</body>
</html>