Initial commit - skeleton
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
.DS_Store
|
||||
18
README.md
Normal file
18
README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Michael Pivato
|
||||
|
||||
A dead simple website showcasing my career and interests!
|
||||
|
||||
## Build
|
||||
|
||||
Ensure Go and npm are installed.
|
||||
|
||||
First download pico css:
|
||||
|
||||
`npm install`
|
||||
|
||||
Then to build the webserver, run `go build .`
|
||||
|
||||
## Debugging
|
||||
|
||||
Easiest way to debug/visualise the content is to use the inbuilt IDE browser. VS Code/Codium can display a preview side-by-side by clicking the Open Preview to the Side button.
|
||||
This will show changes live, exactly as the content will be rendered when run from another webserver (such as the Go webserver).
|
||||
61
index.html
Normal file
61
index.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Michael Pivato</title>
|
||||
<link rel="stylesheet" href="node_modules/@picocss/pico/css/pico.min.css" />
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<ul>
|
||||
<!--TODO: Initials top left-->
|
||||
<li></li>
|
||||
<!--Something useful here, not really sure what though-->
|
||||
<li></li>
|
||||
</ul>
|
||||
<!--TODO: Other useful links (e.g. github, seek profile)-->
|
||||
<ul></ul>
|
||||
</nav>
|
||||
<main class="container">
|
||||
<aside>
|
||||
<nav>
|
||||
<details>
|
||||
<summary>Career</summary>
|
||||
<ul>
|
||||
<li>
|
||||
<a class="secondary" href="#career"></a>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
</nav>
|
||||
</aside>
|
||||
<div role="document">
|
||||
<header>
|
||||
<hgroup>
|
||||
<h1>Michael Pivato</h1>
|
||||
<h2>Career summary and interests</h2>
|
||||
</hgroup>
|
||||
</header>
|
||||
<section id="career">
|
||||
<h2>Career</h2>
|
||||
<article>
|
||||
<hgroup>
|
||||
<h3>PowerHealth Solutions</h3>
|
||||
<h4>2019 - Current</h4>
|
||||
</hgroup>
|
||||
<h4>Key Responsibilities</h4>
|
||||
<ul>
|
||||
<li></li>
|
||||
</ul>
|
||||
<h4>Key Achievements</h4>
|
||||
<ul>
|
||||
<li></li>
|
||||
</ul>
|
||||
</article>
|
||||
</section>
|
||||
<section id="interests">
|
||||
<article></article>
|
||||
</section>
|
||||
<section id="hobbies"></section>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
25
main.go
Normal file
25
main.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
_ "embed"
|
||||
"flag"
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//go:embed node_modules/@picocss/pico/css/pico.min.css index.html
|
||||
var static embed.FS
|
||||
|
||||
func main() {
|
||||
var port int
|
||||
|
||||
flag.IntVar(&port, "port", 8080, "Port to listen on")
|
||||
|
||||
flag.Parse()
|
||||
|
||||
http.Handle("/", http.FileServer(http.FS(static)))
|
||||
log.Printf("Starting webserver on port %v", port)
|
||||
http.ListenAndServe(fmt.Sprintf(":%v", port), nil)
|
||||
}
|
||||
21
package-lock.json
generated
Normal file
21
package-lock.json
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "personal-website",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "personal-website",
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@picocss/pico": "^1.5.10"
|
||||
}
|
||||
},
|
||||
"node_modules/@picocss/pico": {
|
||||
"version": "1.5.10",
|
||||
"resolved": "https://registry.npmjs.org/@picocss/pico/-/pico-1.5.10.tgz",
|
||||
"integrity": "sha512-+LafMsrwPxXQMk6sI///TmSInCwwZmq+K7SikyL3N/4GhhwzyPC+TQLUEqmrLyjluR+uIpFFcqjty30Rtr6GxQ=="
|
||||
}
|
||||
}
|
||||
}
|
||||
15
package.json
Normal file
15
package.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "personal-website",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@picocss/pico": "^1.5.10"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user