+164 -0 +/-8 browse
1 | diff --git a/.gitignore b/.gitignore |
2 | index 9a78a47..b3271df 100644 |
3 | --- a/.gitignore |
4 | +++ b/.gitignore |
5 | @@ -26,3 +26,6 @@ _testmain.go |
6 | *.swp |
7 | |
8 | bin/ |
9 | + |
10 | + www/public/ |
11 | + www/data/ |
12 | diff --git a/.gitmodules b/.gitmodules |
13 | new file mode 100644 |
14 | index 0000000..6bcb705 |
15 | --- /dev/null |
16 | +++ b/.gitmodules |
17 | @@ -0,0 +1,3 @@ |
18 | + [submodule "www/themes/minimal"] |
19 | + path = www/themes/minimal |
20 | + url = https://github.com/calintat/minimal |
21 | diff --git a/Makefile b/Makefile |
22 | index 5652ead..1a9f339 100644 |
23 | --- a/Makefile |
24 | +++ b/Makefile |
25 | @@ -21,3 +21,6 @@ test: |
26 | bin/pomo: bindata.go |
27 | @echo mkdir bin 2>/dev/null || true |
28 | go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo |
29 | + |
30 | + www/data/readme.json: |
31 | + cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > $@ |
32 | diff --git a/www/config.toml b/www/config.toml |
33 | new file mode 100644 |
34 | index 0000000..6a36817 |
35 | --- /dev/null |
36 | +++ b/www/config.toml |
37 | @@ -0,0 +1,19 @@ |
38 | + baseURL = "pomo" |
39 | + languageCode = "en-us" |
40 | + title = "Pomo" |
41 | + theme = "minimal" |
42 | + #disqusShortname = "username" # delete this to disable disqus comments |
43 | + #googleAnalytics = "" |
44 | + |
45 | + [params] |
46 | + author = "Kevin Schoon" |
47 | + description = "Pomodoro Command Line Interface" |
48 | + githubUsername = "#" |
49 | + accent = "red" |
50 | + showBorder = true |
51 | + backgroundColor = "white" |
52 | + font = "Raleway" # should match the name on Google Fonts! |
53 | + highlight = true |
54 | + highlightStyle = "solarized-dark" |
55 | + highlightLanguages = ["go", "haskell", "kotlin", "scala", "swift"] |
56 | + profilePic = "/tomato.png" |
57 | diff --git a/www/layouts/index.html b/www/layouts/index.html |
58 | new file mode 100644 |
59 | index 0000000..5ff68c5 |
60 | --- /dev/null |
61 | +++ b/www/layouts/index.html |
62 | @@ -0,0 +1,26 @@ |
63 | + {{ partial "header" . }} |
64 | + |
65 | + <main> |
66 | + |
67 | + <div class="intro"> |
68 | + |
69 | + {{ with .Site.Params.profilePic }} <img class="profile" src="{{ . }}"> {{ end }} |
70 | + |
71 | + <h1>{{ .Site.Title }}</h1> |
72 | + |
73 | + <h2>{{ markdownify .Site.Params.Description }}</h2> |
74 | + |
75 | + <div class="btn-group" role="group" aria-label="..."> |
76 | + <button type="button" class="btn btn-default"> |
77 | + <a href="https://github.com/kevinschoon/pomo">install pomo</a> |
78 | + </button> |
79 | + </div> |
80 | + |
81 | + |
82 | + </div> |
83 | + |
84 | + <div class="readme"> |
85 | + {{ index .Site.Data.readme "content" | markdownify }} |
86 | + </div> |
87 | + |
88 | + </main> |
89 | diff --git a/www/static/css/main.css b/www/static/css/main.css |
90 | new file mode 100644 |
91 | index 0000000..fea7746 |
92 | --- /dev/null |
93 | +++ b/www/static/css/main.css |
94 | @@ -0,0 +1,109 @@ |
95 | + html, |
96 | + body { |
97 | + height: 100%; |
98 | + } |
99 | + |
100 | + body { |
101 | + padding-top: 55px; |
102 | + display: flex; |
103 | + text-align: center; |
104 | + flex-direction: column; |
105 | + } |
106 | + |
107 | + main { |
108 | + margin: auto; |
109 | + padding: 25px; |
110 | + flex: 1 0 auto; |
111 | + max-width: 750px; |
112 | + } |
113 | + |
114 | + /*footer*/ |
115 | + |
116 | + .copyright { |
117 | + margin: 15px 0; |
118 | + } |
119 | + |
120 | + /*home page*/ |
121 | + |
122 | + /* |
123 | + .intro { |
124 | + transform: translateY(22vh); |
125 | + } |
126 | + */ |
127 | + |
128 | + .intro>h1 { |
129 | + color: #212121; |
130 | + font-size: 12vh; |
131 | + } |
132 | + |
133 | + .intro>h2 { |
134 | + color: #757575; |
135 | + font-size: 3vmin; |
136 | + } |
137 | + |
138 | + .intro>.profile { |
139 | + width: 10vh; |
140 | + height: 10vh; |
141 | + border-radius: 50%; |
142 | + } |
143 | + |
144 | + div.readme { |
145 | + text-align: left !important; |
146 | + padding-top: 100px; |
147 | + } |
148 | + |
149 | + /*apply accent colour to links*/ |
150 | + |
151 | + a:link, |
152 | + a:visited { |
153 | + color: var(--accent); |
154 | + } |
155 | + |
156 | + a.icon:hover { |
157 | + text-decoration: none; |
158 | + } |
159 | + |
160 | + a:hover { |
161 | + color: var(--accent) !important; |
162 | + } |
163 | + |
164 | + /*paginator at bottom of list view*/ |
165 | + |
166 | + .pages { |
167 | + padding: 15px 0; |
168 | + } |
169 | + |
170 | + .pages-icon { |
171 | + padding: 0 15px; |
172 | + } |
173 | + |
174 | + /*list item for posts and projects*/ |
175 | + |
176 | + .item { |
177 | + padding: 10px 0; |
178 | + } |
179 | + |
180 | + .item-tag { |
181 | + background-color: var(--accent); |
182 | + } |
183 | + |
184 | + /*navigation bar icons*/ |
185 | + |
186 | + .navbar-icon { |
187 | + font-size: 125%; |
188 | + display: inline-block !important; |
189 | + } |
190 | + |
191 | + /*coloured borders at top and bottom of the page*/ |
192 | + |
193 | + .navbar.navbar-default { |
194 | + border-top: var(--border-width) solid var(--accent); |
195 | + } |
196 | + |
197 | + footer { |
198 | + border-bottom: var(--border-width) solid var(--accent); |
199 | + } |
200 | + |
201 | + img { |
202 | + max-width: 100%; |
203 | + } |
204 | diff --git a/www/static/tomato.png b/www/static/tomato.png |
205 | new file mode 100644 |
206 | index 0000000..1908645 |
207 | Binary files /dev/null and b/www/static/tomato.png differ |
208 | diff --git a/www/themes/minimal b/www/themes/minimal |
209 | new file mode 160000 |
210 | index 0000000..7d92985 |
211 | --- /dev/null |
212 | +++ b/www/themes/minimal |
213 | @@ -0,0 +1 @@ |
214 | + Subproject commit 7d929851ffdd5a0752d8b1f05596cf7cbf907982 |