Can now generate a lot of the static content from templates in pages/ WARNING: I kept seeing page _templates_ getting corrupted on rendering, which is no bueno.
This commit is contained in:
parent
7e48768e36
commit
c64874cb51
12 changed files with 516 additions and 608 deletions
|
|
@ -11,7 +11,16 @@
|
||||||
</head>
|
</head>
|
||||||
<body data-testid="{{.PageId}}">
|
<body data-testid="{{.PageId}}">
|
||||||
<header>
|
<header>
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{{embed}}
|
{{embed}}
|
||||||
|
|
|
||||||
|
|
@ -5,67 +5,28 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
<script defer src="/js/alpine.js"></script>
|
||||||
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
</head>
|
</head>
|
||||||
|
<body data-testid="base-page">
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<header>
|
<header>
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<blockstart>
|
<blockstart>
|
||||||
|
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
<footer>
|
|
||||||
<h1>Footer</h1>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 200px;">Some Image</shape>
|
|
||||||
|
|
||||||
<p x-text="Game.description">Description</p>
|
|
||||||
</block>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 7;">
|
|
||||||
<h2>Current Status</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<h2>Planned Work</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 2; --text: 9">
|
|
||||||
<h2>Read The Code</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
<button><a href="https://git.learnjsthehardway.com/learn-code-the-hard-way/turings-tarpit">View the Git</a></button>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
|
|
|
||||||
|
|
@ -5,24 +5,22 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
<script defer src="/js/alpine.js"></script>
|
||||||
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
</head>
|
</head>
|
||||||
|
<body data-testid="error-index-page">
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<header>
|
<header>
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<blockstart>
|
<blockstart>
|
||||||
|
|
@ -30,11 +28,9 @@
|
||||||
<p>You have an error.</p>
|
<p>You have an error.</p>
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,29 +5,27 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
<script defer src="/js/alpine.js"></script>
|
||||||
<script src="/js/code.js"></script>
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
|
</head>
|
||||||
|
<body data-testid="game-1-turings-tarpit-index-page">
|
||||||
|
<header>
|
||||||
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
|
</header>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let req = new GetJson("/api/game/1/index.json");
|
let req = new GetJson("/api/game/1/index.json");
|
||||||
</script>
|
</script>
|
||||||
</head>
|
|
||||||
|
|
||||||
<body x-init="Game = await req.theData()" x-data="{Game: {}}">
|
|
||||||
<header>
|
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart>
|
<blockstart>
|
||||||
<shape style="--w: 100%; --h: 300px">Gameplay Demo Video</shape>
|
<shape style="--w: 100%; --h: 300px">Gameplay Demo Video</shape>
|
||||||
|
|
@ -65,11 +63,9 @@
|
||||||
|
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,30 +5,27 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
<script defer src="/js/alpine.js"></script>
|
||||||
<script src="/js/code.js"></script>
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
|
</head>
|
||||||
|
<body data-testid="game-index-page">
|
||||||
|
<header>
|
||||||
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
|
</header>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let Games = new GetJson("/api/game/index.json");
|
let Games = new GetJson("/api/game/index.json");
|
||||||
</script>
|
</script>
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart>
|
<blockstart>
|
||||||
<block style="--w: 100%; --value: 7">
|
<block style="--w: 100%; --value: 7">
|
||||||
<h1>Zed's Trash Ass Games</h1>
|
<h1>Zed's Trash Ass Games</h1>
|
||||||
|
|
@ -44,29 +41,6 @@
|
||||||
</template>
|
</template>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
||||||
<block style="--value: 7">
|
|
||||||
<grid style="--cols: 2">
|
|
||||||
<shape>Left Image</shape>
|
|
||||||
<div>
|
|
||||||
<h2>Checkout my Git</h2>
|
|
||||||
<p>I put al of my code online for people to read and study. If you're curious about the code behind my games or anything else I make then take a look at my git. It's like a buffet of half-finished genius.</p>
|
|
||||||
|
|
||||||
<a href="https://git.learnjsthehardway.com"><button style="--value: 2; --text: 9">View my Git</button></a>
|
|
||||||
</div>
|
|
||||||
</grid>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<h1>Footer</h1>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
x DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
<block>
|
||||||
<h2>Planned Work</h2>
|
<h2>Planned Work</h2>
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
||||||
|
|
@ -80,11 +54,9 @@ x DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos j
|
||||||
|
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,23 +5,22 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
<script defer src="/js/alpine.js"></script>
|
||||||
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
</head>
|
</head>
|
||||||
|
<body data-testid="index-page">
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body data-testid="home-page">
|
|
||||||
<header>
|
<header>
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<blockstart>
|
<blockstart>
|
||||||
|
|
@ -91,11 +90,9 @@
|
||||||
|
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,31 +5,30 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
<script defer src="/js/alpine.js"></script>
|
||||||
<script src="/js/code.js"></script>
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
|
</head>
|
||||||
|
<body data-testid="live-index-page">
|
||||||
|
<header>
|
||||||
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
|
</header>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let req = new GetJson("/api/stream/1");
|
let req = new GetJson("/api/stream/1");
|
||||||
let link_req = new GetJson("/api/stream/1/links");
|
let link_req = new GetJson("/api/stream/1/links");
|
||||||
</script>
|
</script>
|
||||||
</head>
|
|
||||||
|
|
||||||
<body x-init="Stream = await req.theData()" x-data="{Stream: {}}">
|
|
||||||
<header>
|
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
|
<div x-init="Stream = await req.theData()" x-data="{Stream: {}}">
|
||||||
<blockstart>
|
<blockstart>
|
||||||
|
|
||||||
<shape style="--w: 100%; --h: 350px">
|
<shape style="--w: 100%; --h: 350px">
|
||||||
|
|
@ -60,12 +59,11 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,23 +5,22 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
<script defer src="/js/alpine.js"></script>
|
||||||
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
</head>
|
</head>
|
||||||
|
<body data-testid="login-index-page">
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body data-testid="login-page">
|
|
||||||
<header>
|
<header>
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<blockstart style="min-height: 90vw">
|
<blockstart style="min-height: 90vw">
|
||||||
|
|
@ -48,11 +47,9 @@
|
||||||
</block>
|
</block>
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,23 +5,22 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
<script defer src="/js/alpine.js"></script>
|
||||||
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
</head>
|
</head>
|
||||||
|
<body data-testid="register-index-page">
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body data-testid="register-page">
|
|
||||||
<header>
|
<header>
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<blockstart style="min-height: 90vw">
|
<blockstart style="min-height: 90vw">
|
||||||
|
|
@ -50,11 +49,9 @@
|
||||||
</block>
|
</block>
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,31 +5,30 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
<script defer src="/js/alpine.js"></script>
|
||||||
<script src="/js/code.js"></script>
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
|
</head>
|
||||||
|
<body data-testid="stream-1-index-page">
|
||||||
|
<header>
|
||||||
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
|
</header>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let req = new GetJson("/api/stream/1");
|
let req = new GetJson("/api/stream/1");
|
||||||
let link_req = new GetJson("/api/stream/1/links");
|
let link_req = new GetJson("/api/stream/1/links");
|
||||||
</script>
|
</script>
|
||||||
</head>
|
|
||||||
|
|
||||||
<body x-init="Stream = await req.theData()" x-data="{Stream: {}}">
|
|
||||||
<header>
|
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
|
<div x-init="Stream = await req.theData()" x-data="{Stream: {}}">
|
||||||
<blockstart>
|
<blockstart>
|
||||||
|
|
||||||
<block style="--value: 7">
|
<block style="--value: 7">
|
||||||
|
|
@ -84,12 +83,11 @@ i poutine jianbing chambray.</p>
|
||||||
</block>
|
</block>
|
||||||
|
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -5,30 +5,27 @@
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>ZedShaw's Game Thing</title>
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
<script defer src="/js/alpine.js"></script>
|
||||||
<script src="/js/code.js"></script>
|
<script src="/js/code.js"></script>
|
||||||
|
<title>ZedShaw.games</title>
|
||||||
|
</head>
|
||||||
|
<body data-testid="stream-index-page">
|
||||||
|
<header>
|
||||||
|
<blockstart style="background-color: var(--value0)">
|
||||||
|
<block style="--value: 0; --text: 9" class="horizontal">
|
||||||
|
<a href="/">🏡</a>
|
||||||
|
<a href="/live/">Live</a>
|
||||||
|
<a href="/stream/">Streams</a>
|
||||||
|
<a href="/game/">Games</a>
|
||||||
|
<a href="/register/">Register</a>
|
||||||
|
<a href="/login/">Login</a>
|
||||||
|
</block>
|
||||||
|
</blockstart>
|
||||||
|
</header>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let Streams = new GetJson("/api/stream/");
|
let Streams = new GetJson("/api/stream/");
|
||||||
</script>
|
</script>
|
||||||
</head>
|
|
||||||
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart>
|
<blockstart>
|
||||||
<block style="--value: 7">
|
<block style="--value: 7">
|
||||||
|
|
@ -48,35 +45,11 @@
|
||||||
</stream>
|
</stream>
|
||||||
</template>
|
</template>
|
||||||
</block>
|
</block>
|
||||||
|
|
||||||
</blockstart>
|
</blockstart>
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<h1>Footer</h1>
|
<h1>Footer</h1>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
ral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<h2>Planned Work</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 2; --text: 9">
|
|
||||||
<h2>Read The Code</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
<button><a href="https://git.learnjsthehardway.com/learn-code-the-hard-way/turings-tarpit">View the Git</a></button>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<h1>Footer</h1>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,24 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
"flag"
|
||||||
"zedshaw.games/webapp/zed"
|
"zedshaw.games/webapp/zed"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
type config struct {
|
||||||
log.Println("Generating site from pages to public.")
|
source string
|
||||||
zed.RenderPages("./pages", "./public", "layouts/main")
|
target string
|
||||||
|
layouts string
|
||||||
|
}
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
var cfg config
|
||||||
|
|
||||||
|
flag.StringVar(&cfg.source, "source", "./pages", "The templates to load and process.")
|
||||||
|
flag.StringVar(&cfg.target, "target", "./public", "The target to write the resulting content.")
|
||||||
|
flag.StringVar(&cfg.layouts, "layouts", "layouts/main", "The default layout to use, must be a template in <source>")
|
||||||
|
|
||||||
|
log.Println("Generating site from pages to public.")
|
||||||
|
|
||||||
|
zed.RenderPages(cfg.source, cfg.target, cfg.layouts)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue