~evanj/cms

ref: 991b370ac6b6208e5f2fd7dcada177d52be58d9f cms/internal/v/html/index.html -rw-r--r-- 12.5 KiB
991b370aEvan M Jones Feat(Big): Added a few things here... 1 year, 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<!DOCTYPE html>
<html lang=en>
<head>
  {{ template "html/_head.html" }}
  <title>CMS</title>
</head>
<body class='index bg-light'>
  <style>{{ template "css/main.css" }}</style>
  <main>
    {{ template "html/_header.html" $ }}
    {{if not .User}}
    <div class='container my-5'>
      <div class='row'>
        <div class="col-12 text-center">
          <div class="d-inline-block alert alert-warning" role="alert">
            <strong>WARNING:</strong> This site is in <strong>ALPHA</strong> 
            and is not yet generally available.
          </div>
        </div>
      </div>
    </div>
    {{end}}
    <div class="pricing-header px-3 py-5 pt-md-5 pb-md-4 mx-auto text-center">
      <img width=200 height=200 src='/static/img/logo-black.svg' />
      <h1 class="display-1">Skipper CMS</h1>
      <p class="lead">An old-school content management system for most.</p>
    </div>
    {{if not .User}}
    <div class='container my-5'>
      <div class='row'>
        <div class='col col-12'>
          <h2 class='display-4 text-center'>Content Management System (CMS)</h2>
        </div>
        <div class='col offset-lg-2 col-lg-8'>
          <table>
            <tr valign=top>
              <td>
                <p class='mr-3'><strong>Noun.</strong></p>
              </td>
              <td>
                <p>A computer software system for organizing and facilitating collaborative creation of documents and other content, especially for displaying content to a website or mobile application.</p>
              </td>
            </tr>
          </table>
        </div>
      </div>
    </div>
    <div class='container my-5'>
      <div class="row">
        <div class="col">
          <h1 class="display-4 text-center mb-5">Features</h1>
        </div>
      </div>
      <div class=row>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                <a href='https://en.wikipedia.org/wiki/Web_API'>API</a>
                first CMS. Skipper is a fully-fledged content 
                management <mark>infrastructure</mark> as much as it is a
                content management system. 
              </div>
            </div>
          </div>
        </div>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                Your content model your way. You're <mark>never
                restricted</mark> to a
                blessed content model, a la category/tags for pages/posts. 
              </div>
            </div>
          </div>
        </div>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                <mark>Lightweight</mark> and <mark>fast</mark>; API calls to
                Skipper CMS will not be your bottleneck. Skipper CMS makes heavy
                use of caching.
              </div>
            </div>
          </div>
        </div>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                100% committed to <mark>open source</mark>; you can see exactly what the code
                does and make improvements. See 
                <a href='https://git.sr.ht/~evanj/cms'>sourcehut</a>.
              </div>
            </div>
          </div>
        </div>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                <mark>Easy</mark> to use for <mark>all</mark>. We keep a big
                tent. No matter your background, Skipper CMS is committed to
                assisting you well.
              </div>
            </div>
          </div>
        </div>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                <mark>Quickly</mark> setup staging and test environments for
                your data. Tailored use for <mark>your environments</mark>.
              </div>
            </div>
          </div>
        </div>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                <mark>Approachable</mark> 
                documention. Examples provided in 
                <a href='https://linux.die.net/man/1/curl'>cURL</a>.
                Use from your programming language or runtime of choice.
              </div>
            </div>
          </div>
        </div>

        <div class='col col-12 col-md-6'>
          <div class='card mb-3'>
            <div class='card-body'>
              <div class='card-text'>
                <mark>Freedom</mark> respecting license. The 
                <a href='http://www.gnu.org/philosophy/free-sw.html#content'>four essential freedoms</a> 
                are upheld under the EUPL v1.2 license. Compatible with AGPL v3.
              </div>
            </div>
          </div>
        </div>

      </div>
    </div>
    <div class='container my-5'>
      <div id='pricing' class="row">
        <div class="col">
          <h1 class="display-4 text-center mb-5">Pricing</h1>
        </div>
      </div>
      <div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 mb-5 text-center">
        {{range .Tiers}}
        <div class="col">
          <div class="card mb-4 shadow-sm">
          <div class="card-header">
            <h4 class="my-0 font-weight-normal">{{.Name}}</h4>
          </div>
          <div class="card-body">
            <h1 class="card-title pricing-card-title">{{.Price}} <small class="text-muted">/ {{.TimeUnit}}</small></h1>
            <ul class="list-unstyled mt-3 mb-4">
              {{range .Opts}}
                <li>{{.Text}}</li>
              {{end}}
            </ul>
          </div>
        </div>
        </div>
        {{end}}
      </div>
    </div>
    {{end}}
    <article>
      {{ if .User }}
        <form method=POST action='/space' enctype='multipart/form-data'>
          <input type=hidden name=method value=POST />
          <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
            <div class="modal-dialog modal-dialog-scrollable">
              <div class="modal-content">
                <div class="modal-header">
                  <h5 class="modal-title" id="exampleModalLabel">Create a new space</h5>
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                  </button>
                </div>
                <div class="modal-body">
                  <label for="spaceName">Name</label>
                  <input name=name type=text id="spaceName" class="mb-3 form-control" placeholder="Name" required>
                  <label for="spaceDesc">Description</label>
                  <input name=desc type=text id="spaceDesc" class="mb-3 form-control" placeholder="Description" required>
                </div>
                <div class="modal-footer">
                  <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                  <button type="submit" class="btn btn-primary">Go</button>
                </div>
              </div>
            </div>
          </div>
        </form>
        <div class="container">
          <div class='row'>
            <div class='offset-lg-3 col-lg-6'>
              <div class="my-3 p-3 bg-white rounded shadow-sm">
                  <small class="d-block text-right float-right" data-toggle="modal" data-target="#exampleModal">
                    <a href="#">Create a new space</a>
                  </small>
                <h6 class="border-bottom border-gray pb-2 mb-0">Your spaces</h6>
                {{ if .Spaces.List }}
                  {{ range .Spaces.List }}
                  <div class="media text-muted pt-3">
                    <a href='/space/{{ .ID }}'  class="d-block media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
                      <strong class="d-block text-gray-dark">{{ .Name }}</strong>
                      {{ .Desc }}
                    </a>
                  </div>
                  {{ end }}
                  {{ if .Spaces.More }}
                  <small class="d-block text-right mt-3">
                    <a href="/?before={{ .Spaces.Before }}">Load more</a>
                  </small>
                  {{ end }}
                {{ else }}
                  <div class="mt-3 alert alert-primary" role="alert">
                    You haven't created any spaces yet. 
                  </div>
                {{ end }}
              </div>
            </div>
          </div>
        </div>
      {{ else }}
        <div class="container my-5">
          <div class="row">
            <div class="col">
              <h1 class="display-4 text-center mb-5">Let's go</h1>
            </div>
          </div>
          <div class='row justify-content-center'>
            <div class="col-12 col-md-6 col-lg-4 offset-col-lg-2 col-xl-3 offset-col-xl-3 d-flex">
              <div class="card mb-4 shadow-sm flex-fill">
                <div class="card-header">
                  <h4 class="my-0 font-weight-normal">Signup</h4>
                </div>
                <div class="card-body">
                  <form id='signup' method=POST action='/user/signup' enctype='multipart/form-data'>
                    <label for="signupInputUsername" class="sr-only">Email address</label>
                    <input name=username type="text" id="signupInputUsername" class="mb-3 form-control" placeholder="Username" required>
                    <label for="signupInputPassword" class="sr-only">Password</label>
                    <input name=password type="password" id="signupInputPassword" class="mb-3 form-control" placeholder="Password" required>
                    <label for="signupInputVerify" class="sr-only">Confirm Password</label>
                    <input name=verify type="password" id="signupInputVerify" class="mb-3 form-control" placeholder="Confirm Password" required>
                    <label for="signupInputPlan" class="sr-only">Select tier</label>
                    <select name=tier id="signupInputPlan" class="w-100 form-control mb-3" required>
                      <option disabled selected value>Payment tier</option>
                      {{range .Tiers}}
                        <option value="{{.Name}}">{{.Name}}</option>
                      {{end}}
                    </select>
                    <button class="btn btn-lg btn-primary btn-block" type="submit">Go</button>
                  </form>
                </div>
              </div>
            </div>
            <div class="col-12 col-md-6 col-lg-4 col-xl-3 d-flex">
              <div class="card mb-4 shadow-sm flex-fill">
                <div class="card-header">
                  <h4 class="my-0 font-weight-normal">Login</h4>
                </div>
                <div class="card-body d-flex">
                  <form id='login' class='d-flex flex-grow-1 flex-column' method=POST action='/user/login' enctype='multipart/form-data'>
                    <label for="loginInputUsername" class="sr-only">Email address</label>
                    <input name=username type="text" id="loginInputUsername" class="mb-3 form-control" placeholder="Username" required>
                    <label for="loginInputPassword" class="sr-only">Password</label>
                    <input name=password type="password" id="loginInputPassword" class="mb-3 form-control" placeholder="Password" required>
                    <button class="mt-auto btn btn-lg btn-primary btn-block" type="submit">Go</button>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>
      {{ end }}
    </article>
    {{ template "html/_footer.html" $ }}
  </main>
  {{ template "html/_scripts.html" }}
  {{ if .User }}
    <script>{{ template "js/main.js" $ }}</script>
  {{ else }}
    <script>
      (function() { 
        window.addEventListener('DOMContentLoaded', handleHashClick);
        window.addEventListener('hashchange', handleHashClick);
        function handleHashClick() { 
          var el = document.getElementById(location.hash.substr(1));
          if (el) el.querySelector('input').focus();
        };
      })();
    </script>
  {{ end }}
</body>
</html>