-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
337 lines (285 loc) · 9.53 KB
/
index.html
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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!DOCTYPE html>
<html lang="en">
<head>
<title>One Page Flask</title>
<meta charset="utf-8">
<link href="http://fonts.googleapis.com/css?family=Lato|Archivo+Black" rel="stylesheet" type="text/css" />
<link rel="icon" href="/assets/img/num1.jpg">
<meta name="viewport" content="width=device-width, minimum-scale=1.0">
<meta name="description" content="Free themes for Bulma - A modern CSS framework based on Flexbox">
<meta name="application-name" content="Bulmaswatch - Free themes for Bulma - A modern CSS framework based on Flexbox" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.1/css/bulma.min.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<style>
/* Using google fonts */
body,
button,
input,
select,
textarea {
font-family: Lato, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Archivo Black', sans-serif;
}
/* Text over image hack */
/* https://stackoverflow.com/questions/17415994/how-to-create-responsive-text-on-top-of-an-image */
.herotext span {
position: absolute;
top: 18%;
left: 5%;
/* viewport relative */
font-size: 3vw;
color: navy;
padding: 0 20px;
width: 80%;
line-height: 100%;
font-family: 'Sigmar One', sans-serif;
font-family: 'Michroma', sans-serif;
font-family: 'Archivo Black', sans-serif;
}
/* http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/ */
.vert-alignb {
position: relative;
top: 50%;
transform: translateY(-50%);
}
/* footer color and reduce excessive padding */
.footer{
padding: 1rem;
background: #7DA5D8;
}
.ack {
color: #cccccc;
font-size: .8em;
}
.is-grey {
color: grey;
}
</style>
</head>
<body class="theme-page">
<nav class="navbar is-transparent">
<a name="home"></a>
<div class="navbar-brand">
<a class="navbar-item" href="/">
<h1 class="title is-6">
<span class="icon has-text-info">
<i class="fa fa-file-o"></i>
</span>
ONE PAGE FLASK
</h1>
</a>
<div class="navbar-burger burger" data-target="navbarExampleTransparentExample">
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="navbar-menu">
<div class="navbar-start">
</div>
<div class="navbar-end">
<a class="navbar-item has-text-info" href="/">
Home
</a>
<a class="navbar-item has-text-info" href="#objective">
Objective
</a>
<a class="navbar-item has-text-info" href="#template">
Template
</a>
<a class="navbar-item has-text-info" href="#about">
About
</a>
</div <!-- navbar-end -->
</div>
</nav>
<section>
<div class="columns" xstyle="padding-bottom:0">
<div class="column is-12 herotext" xstyle="padding-bottom:0">
<img src="/assets/img/pexels-rock-372098-1400.jpg">
<span class="herotext">
A tiny Flask app
<br>
with Bulma
</span>
</div>
</div>
<div class="columns" style="margin-top: -.35rem; hack_for_overlap_bug:1;">
<div class="column is-6" xstyle="padding-top:0">
<img src="/assets/img/pexels-bird-96954-600.jpg">
</div>
<div class="column is-6" xstyle="padding-top:0">
<div class="content vert-alignb ">
<h2 class="subtitle" >
<span class="is-grey">
Launch a Flask app in minutes
</span>
</h2>
<p>
Here we have a one-page Flask program. It has one page of Python code plus a one page template file that implements the Bulma CSS framework. There is nothing tricky going on, it should be easy to understand!
<p>
</div>
</div>
</div>
</section>
</section>
<div class="columns">
<div class="column is-2">
<aside class="menu section">
<p class="menu-label"> SideMenu </p>
<ul class="menu-list">
<li>
<a href="#home">Home</a>
</li>
<li>
<a href="#objective">Objective</a>
</li>
<li>
<a href="#template">Template</a>
</li>
<li>
<a href="#about">About</a>
</li>
</ul>
</aside>
</div>
<div class="column">
<section class="section" id="content">
<div class="content">
<h1> Objective </h1>
<a name="objective"></a>
<p>
A one-page Flask program is useful for learning, extending, and for hacking together a new project. This one actually combines a few technologies and can run on your computer:
</p>
<ul>
<li>Python 3</li>
<li>Virtual environment for Python</li>
<li>Flask application with 3 routes and the built-in Template package</li>
<li>Bulma CSS Framework</li>
<li>Google Fonts</li>
<li>Flask built-in webserver for local testing</li>
</ul>
<p>
Bulma is similar to Bootstrap but smaller and easier to understand. It is well documented.
</p>
<h2>Template</h2>
<a name="template"></a>
<p>
I said this is one page Flask and one page template. There is actually a second version that doesn't use the template file. A tiny layout is included at the bottom of index.html, but it was so boring that I made it optional. Change the MINI parameter
in the program.
</p>
</section>
</div>
</div>
<footer class="footer">
<div class="columns" >
<a name="about"></a>
<div class="column is-2"></div>
<div class="column is-4">
<div class="card">
<div class="card-content">
<div class="media">
<div class="media-content">
<p class="title is-4">Some Guymadethis</p>
<p class="subtitle is-6">@sguymadethis
<br>
<span class="icon is-small is-left"><i class="fa fa-envelope"></i></span>
<a href="mailto:nonono@example.com">some@guy.made</a>
</p>
</div>
</div>
<div class="content">
Red ensign furl run a shot across the bow. Gangplank knave come about man-of-war prow, line topmast to go on account dock Corsair.
</div>
</div>
</div>
</div>
<div class="column is-4">
<div class="field">
<p class="control has-icons-left">
<input class="input" type="text" placeholder="Name">
<span class="icon is-small is-left">
<i class="fa fa-user-o"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input " type="text" placeholder="Email">
<span class="icon is-small is-left">
<i class="fa fa-envelope"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<textarea class="textarea" placeholder="Message ..."></textarea>
</p>
</div>
<div class="field is-grouped">
<p class="control">
<button class="button is-primary is-info">Submit</button>
</p>
</div>
</div>
<div class="column is-2"> </div>
</div>
</footer>
<footer class="footer" style="background:#6D95c8">
<nav class="level">
<div class="level-item has-text-centered">
<div>
<p class="ack">Acknowledgements:</p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="http://flask.pocoo.org/">Flask</a></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="https://bulma.io">Bulma</a></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="https://www.pexels.com/photo/accomplishment-action-adult-adventure-372098/">Mountain man Pexels.com</a></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="https://www.pexels.com/photo/bird-beach-sand-macro-96954/">Dove Pexels.com</a></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="http://pirateipsum.me">Pirate Ipsum</a></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="https://jenil.github.io/bulmaswatch">Bulmaswatch</a></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="http://fontawesome.io/icons/">Font Awesome</a></p>
</div>
</div>
<div class="level-item has-text-centered">
<div>
<p class=""><a class="ack" href="https://fonts.google.com">Google Fonts</a></p>
</div>
</div>
</nav>
</footer>
</body>
</html>