First commit of most of the pages laid out for the next phase.

This commit is contained in:
Zed A. Shaw 2025-05-27 22:57:54 -04:00
parent b9f811f1b5
commit f0dd939acd
16 changed files with 2601 additions and 0 deletions

28
scratchpad/json_decode.go Normal file
View file

@ -0,0 +1,28 @@
package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"os"
)
type User struct {
ID string `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
PhoneNumber string `json:"phoneNumber"`
}
func main() {
b, err := os.ReadFile("user.json")
if err != nil {
log.Fatalf("Failed to read file: %v\n", err);
}
var u User
json.NewDecoder(bytes.NewBuffer(b)).Decode(&u)
fmt.Printf("%#v", u)
}

27
scratchpad/template.html Normal file
View file

@ -0,0 +1,27 @@
<!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>
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
</header>
<blockstart>
<h1>Page Title</h1>
</blockstart>
<footer>
<h1>Footer</h1>
</footer>
</body>
</html>

6
scratchpad/user.json Normal file
View file

@ -0,0 +1,6 @@
{
"id": "0000001",
"name": "user",
"email": "user.email.com",
"phoneNumber": "+0001"
}