gdritter repos frony-ritter-designs / cabac0e
fix large numbers of images Getty Ritter 3 years ago
3 changed file(s) with 16 addition(s) and 46 deletion(s). Collapse all Expand all
301301 return flask.redirect(f"/edit/pages/{slug}")
302302
303303
304 # urls = (
305
306 # # viewing urls
307 # '/', index,
308 # '/design/?', all_designs,
309 # '/design/([^/]*)/([^/]*)/?$', design,
310 # '/design/([^/]*)/?$', design,
311 # '/category/?', all_categories,
312 # '/category/([^/]*)/?', category,
313 # '/category/([^/]*)/tag/([^/]*)/?', category_tag,
314 # '/tag/?', all_tags,
315 # '/tag/([^/]*)/?', tag,
316
317 # # editing urls
318 # '/edit/design/?', admin.edit_all_designs,
319 # '/edit/design/([^/]*)/?', admin.edit_design,
320 # '/edit/design/([^/]*)/([^/]*)/?', admin.edit_design,
321 # '/edit/delete/([^/]*)/?', admin.delete_design,
322 # '/edit/photo/?', admin.add_photo,
323 # '/edit/photo/([^/]*)/?', admin.modify_photo,
324 # '/edit/view-photo/?', admin.view_all_photos,
325 # '/edit/view-photo/([^/]*)/?', admin.view_photo,
326 # '/edit/pages/?', admin.edit_page_list,
327 # '/edit/pages/([^/]*)/?', admin.edit_page,
328 # '/edit/about/?', admin.edit_about,
329
330 # # catch-all for other pages
331 # '/([^/]*)/?', page
332
333 # )
334
335 # app = web.application(urls, globals())
336 # # web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)
337
338304 if __name__ == "__main__":
339305 app.run()
172172 font-weight: bold;
173173 }
174174
175 .design .imgbox {
176 overflow-x: auto;
177 }
178
175179 .design .images {
176180 display: flex;
177 justify-content: space-evenly;
178
181 overflow-x: auto;
182 width: min-content;
183 margin-left: auto;
184 margin-right: auto;
179185 align-items: center;
180 max-width: 80%;
181 margin-left: auto;
182 margin-right: auto;
183 text-align: center;
184186 }
185187
186188 .design .description {
22 <div class="title">
33 <h2>{{title}}</h2>
44 </div>
5 <div class="images">
6 {{#photos}}
7 <div class="image">
8 <img src="/static/photos/{{filename}}" />
9 </div>
10 {{/photos}}
5 <div class="imgbox">
6 <div class="images">
7 {{#photos}}
8 <div class="image">
9 <img src="/static/photos/{{filename}}" />
10 </div>
11 {{/photos}}
12 </div>
1113 </div>
1214 <div class="description">{{#description}}{{{ rendered }}}{{/description}}</div>
1315 <div class="related">