-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.html
130 lines (126 loc) · 6.51 KB
/
site.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
121
122
123
124
125
126
127
128
129
130
<!doctype html>
<html lang="en">
<head>
<base href="/" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,user-scalable=yes" />
<link rel="preconnect" crossorigin href="https://fonts.googleapis.com" />
<meta name="generator" content="HAX" />
<title>HAX playground | @haxtheweb/create</title>
<meta name="description" content="Playspace to learn about the @haxtheweb/create hax cli and commands." />
<meta name="keywords" content="npm, @haxthweb, @haxtheweb/create, hax, haxcms, haxsite, webcomponents, cli, web, lit, haxtheweb, penn state" />
<meta property="og:description" content="Free, open source, forever, transformative, unleashing creativity in a sustainable way." />
<meta property="og:title" content="HAX The Web" />
<meta property="og:site_name" content="HAX The Web" />
<meta property="og:type" content="website" />
<meta property="og:image" content="assets/icon-512x512.png" />
<meta property="og:url" content="https://playground.hax.cloud/" />
<link rel="next" href="/login.php" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="robots" content="index, follow" />
<meta name="application-name" content="HAX The Web" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="HAX The Web" />
<meta name="msapplication-tap-highlight" content="no" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="canonical" href="https://playground.hax.cloud/" />
<link rel="manifest" href="manifest.json" />
<link rel="mask-icon" href="assets/safari-pinned-tab.svg" color="#1e407c" />
<meta name="msapplication-TileColor" content="#1e407c" />
<meta name="msapplication-TileImage" content="assets/mstile-144x144.png" />
<link rel="icon" href="assets/favicon.ico" />
<link rel="apple-touch-icon" href="assets/icon-48x48.png" />
<link rel="apple-touch-icon" sizes="72x72" href="assets/icon-72x72.png" />
<link rel="apple-touch-icon" sizes="96x96" href="assets/icon-96x96.png" />
<link rel="apple-touch-icon" sizes="144x144" href="assets/icon-144x144.png" />
<link rel="apple-touch-icon" sizes="192x192" href="assets/icon-192x192.png" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png" />
<meta name="theme-color" content="#1e407c" />
<link
rel="preload"
href="https://fonts.googleapis.com/css2?family=Roboto&family=Press+Start+2P&display=swap"
as="style"
onload="this.onload=null;this.rel='stylesheet';"
/>
<link rel="stylesheet" href="./styles.css" />
</head>
<body vocab="http://schema.org/" prefix="oer:http://oerschema.org cc:http://creativecommons.org/ns dc:http://purl.org/dc/terms/">
<div id="top">
<img class="traveler" src="./assets/icon-96x96.png" alt="HAX Traveler logo" loading="eager"/>
<rpg-character height="32" width="24"></rpg-character>
<ul>
<li><a href="https://playground.hax.cloud/">play</a></li>
<li><a href="https://hax.cloud/">demo</a></li>
<li><a href="https://rpg-me.hax.cloud/">rpg</a></li>
<li><a href="https://haxtheweb.org" target="_blank">learn</a></li>
<li><a href="https://hax.cloud/docplayer.html" target="_blank">elements</a></li>
<li><a href="https://github.com/haxtheweb/create" target="_blank">cli</a></li>
<li><a href="https://github.com/haxtheweb/haxcms-nodejs" target="_blank">nodejs</a></li>
<li><a href="https://github.com/haxtheweb/haxcms-php" target="_blank">php</a></li>
<li><a href="https://github.com/haxtheweb/desktop" target="_blank">desktop</a></li>
<li><a href="https://github.com/haxtheweb" target="_blank">github</a></li>
</ul>
</div>
<header>
<div class="attention">
<h1><strong>></strong>hax<blink>█</blink></h1>
</div>
<div class="command">
<a href="./index.html">webcomponent</a>
</div>
<div class="command">
<a href="./site.html" class="active">site</a>
</div>
</header>
<main>
<p>
<code>npm install --global @haxtheweb/create</code> then <code>hax start</code> provides a simple way to create
<strong>new websites</strong> and <strong>web components</strong>!
</p>
<p>Use
<code>hax site mysite --y</code> to create a website! </p>
<h2>Here it is running in the browser!</h2>
<label for="recipe">Remote load recipe:</label><input id="recipe" placeholder="Link to a recipe via URL 🧑🍳" /><button>Load Recipe</button>
</main>
<div class="container">
<create-playground type="site" name="mysite"></create-playground>
</div>
<footer>
<div>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32"></rpg-character>
<rpg-character height="48" width="32" walking></rpg-character>
</div>
<div><img class="traveler" src="./assets/icon-96x96.png" alt="HAX Traveler logo" loading="eager"/>
HAXTheWeb <strong>|</strong> The Pennsylvania State University © 2019</div>
<img class="psu-logo" src="./assets/images/Penn-State-Mark.png" alt="Pennsylvania State University logo" loading="lazy" fetchpriority="low" />
</footer>
<script type="module">
import "./create-playground.js";
import "@haxtheweb/rpg-character/rpg-character.js";
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XC5S35Q0F4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XC5S35Q0F4');
document.querySelector('button').addEventListener('click', (e) => {
window.location = window.location.origin + window.location.pathname + "?recipe=" + document.querySelector('#recipe').value;
});
</script>
</body>
</html>