diff --git a/.gitignore b/.gitignore index 9a78a47..b3271df 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,6 @@ _testmain.go *.swp bin/ + +www/public/ +www/data/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6bcb705 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "www/themes/minimal"] + path = www/themes/minimal + url = https://github.com/calintat/minimal diff --git a/Makefile b/Makefile index 5652ead..1a9f339 100644 --- a/Makefile +++ b/Makefile @@ -21,3 +21,6 @@ test: bin/pomo: bindata.go @echo mkdir bin 2>/dev/null || true go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo + +www/data/readme.json: + cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > $@ diff --git a/www/config.toml b/www/config.toml new file mode 100644 index 0000000..6a36817 --- /dev/null +++ b/www/config.toml @@ -0,0 +1,19 @@ +baseURL = "pomo" +languageCode = "en-us" +title = "Pomo" +theme = "minimal" +#disqusShortname = "username" # delete this to disable disqus comments +#googleAnalytics = "" + +[params] + author = "Kevin Schoon" + description = "Pomodoro Command Line Interface" + githubUsername = "#" + accent = "red" + showBorder = true + backgroundColor = "white" + font = "Raleway" # should match the name on Google Fonts! + highlight = true + highlightStyle = "solarized-dark" + highlightLanguages = ["go", "haskell", "kotlin", "scala", "swift"] + profilePic = "/tomato.png" diff --git a/www/layouts/index.html b/www/layouts/index.html new file mode 100644 index 0000000..5ff68c5 --- /dev/null +++ b/www/layouts/index.html @@ -0,0 +1,26 @@ +{{ partial "header" . }} + +
+ +
+ + {{ with .Site.Params.profilePic }} {{ end }} + +

{{ .Site.Title }}

+ +

{{ markdownify .Site.Params.Description }}

+ +
+ +
+ + +
+ +
+ {{ index .Site.Data.readme "content" | markdownify }} +
+ +
diff --git a/www/static/css/main.css b/www/static/css/main.css new file mode 100644 index 0000000..fea7746 --- /dev/null +++ b/www/static/css/main.css @@ -0,0 +1,109 @@ +html, +body { + height: 100%; +} + +body { + padding-top: 55px; + display: flex; + text-align: center; + flex-direction: column; +} + +main { + margin: auto; + padding: 25px; + flex: 1 0 auto; + max-width: 750px; +} + +/*footer*/ + +.copyright { + margin: 15px 0; +} + +/*home page*/ + +/* +.intro { + transform: translateY(22vh); +} +*/ + +.intro>h1 { + color: #212121; + font-size: 12vh; +} + +.intro>h2 { + color: #757575; + font-size: 3vmin; +} + +.intro>.profile { + width: 10vh; + height: 10vh; + border-radius: 50%; +} + +div.readme { + text-align: left !important; + padding-top: 100px; +} + +/*apply accent colour to links*/ + +a:link, +a:visited { + color: var(--accent); +} + +a.icon:hover { + text-decoration: none; +} + +a:hover { + color: var(--accent) !important; +} + +/*paginator at bottom of list view*/ + +.pages { + padding: 15px 0; +} + +.pages-icon { + padding: 0 15px; +} + +/*list item for posts and projects*/ + +.item { + padding: 10px 0; +} + +.item-tag { + background-color: var(--accent); +} + +/*navigation bar icons*/ + +.navbar-icon { + font-size: 125%; + display: inline-block !important; +} + +/*coloured borders at top and bottom of the page*/ + +.navbar.navbar-default { + border-top: var(--border-width) solid var(--accent); +} + +footer { + border-bottom: var(--border-width) solid var(--accent); +} + +img { + max-width: 100%; +} diff --git a/www/static/tomato.png b/www/static/tomato.png new file mode 100644 index 0000000..1908645 Binary files /dev/null and b/www/static/tomato.png differ diff --git a/www/themes/minimal b/www/themes/minimal new file mode 160000 index 0000000..7d92985 --- /dev/null +++ b/www/themes/minimal @@ -0,0 +1 @@ +Subproject commit 7d929851ffdd5a0752d8b1f05596cf7cbf907982