Commit Graph

33 Commits

Author SHA1 Message Date
Sage Vaillancourt 0eee7d0ef7 Fix optimization call. 2022-09-23 09:21:58 -04:00
Sage Vaillancourt f8d1dac945 Break up css optimization functions.
sans -> sans-serif
2022-09-23 09:19:30 -04:00
Sage Vaillancourt 76a61f69e0 More precise CSS optimization. 2022-09-23 08:27:38 -04:00
Sage Vaillancourt 784ba35f36 Remove hover test code. 2022-09-22 22:50:45 -04:00
Sage Vaillancourt ebb2e4b045 Use camel case instead.
Underscores managed to be worse.
2022-09-22 16:55:49 -04:00
Sage Vaillancourt 8d269c8ed3 Try using underscores in variable names.
Makes for pretty ugly latex, but looks better on the frontend.
2022-09-22 16:51:53 -04:00
Sage Vaillancourt 2acac101f1 More spacing fixes. This time in _formhelpers 2022-09-22 16:30:14 -04:00
Sage Vaillancourt 941e83282f Fix some indentation/spacing 2022-09-22 16:27:47 -04:00
Sage Vaillancourt ddba4b103b Significant writing.jinja2 cleanup. 2022-09-22 16:23:01 -04:00
Sage Vaillancourt 17ab611e9c Rename .html files to .jinja2.
Add <title> to main page.
Small style tweaks.
2022-09-22 16:11:26 -04:00
Sage Vaillancourt 609d876465 A bit better desktop styling.
Extract logo styles to css.
Submit -> Generate PDF
Also fix some funky example text.
2022-09-22 19:12:54 +00:00
Sage Vaillancourt 189270c9c2 More stylish input labels.
Smaller subtitle
2022-09-22 17:55:08 +00:00
Sage Vaillancourt 93ea97eaf8 Disable text-selection on main h1.
Have logo link back to /
2022-09-22 15:57:30 +00:00
Sage Vaillancourt 552ea20a43 Add simple text-based logo 2022-09-22 15:43:46 +00:00
Sage Vaillancourt 0c07b5b0f2 Several fixes and improvements.
"Better" CSS minifying.
Adjust psycopg imports and some usages.
Fix viewport scaling for mobile.
Switch gunicorn to default https port when running in prod.
Correct /dbtest route and add simple /update skeleton
2022-09-22 15:05:17 +00:00
Sage Vaillancourt b5e892f57e Start toying with some simple db functionality. 2022-09-21 23:14:50 -04:00
Sage Vaillancourt 7398773714 Cache the default rendered home page
A bit hacky, since CLForm can't seem to initialize properly without
being part of a request. To avoid a reference-before-assignment error,
the INDEX variable is first initialized as a global in __init__.py. But
it is definitely faster. Repeated renders take around 2ms each. Reading
the cached value takes about 0.002ms.

Also split index() into index_get() and index_post(), since GET calls
always use the cached version, and POST calls never do.
2021-07-31 23:21:59 -04:00
Sage Vaillancourt e52a0e9d28 Less naive cookie processing
Remove some unnecessary whitespace
2021-07-31 22:27:51 -04:00
Sage Vaillancourt 7cb9591acf Give .bigtext a minimum size and smaller font 2021-07-31 22:26:56 -04:00
Sage Vaillancourt 1890095df9 Fix bug with loading data from cookies
Bit of groundwork for an actual reset button
2021-07-31 19:18:54 -04:00
Sage Vaillancourt 4f8bfe846f Add basic CSS minification.
Added correct lang writing.html
2021-07-28 22:51:39 -04:00
Sage Vaillancourt 0d65f2d6cf Updated CSS styling and tweaked layout 2021-07-28 22:04:24 -04:00
Sage Vaillancourt b591532ae8 30->5 min wait on cleanup. Strip errors.
Small formatting tweaks in writing.html
2021-07-28 19:21:02 -04:00
Sage Vaillancourt e10f876214 Remove uses of console.log() 2021-07-28 18:47:59 -04:00
Sage Vaillancourt 4a32e0206f Color and notate errors. Clear them on submit 2021-07-28 18:43:19 -04:00
Sage Vaillancourt e200399366 Display latex errors as applicable 2021-07-27 23:39:30 -04:00
Sage Vaillancourt b8ddd290a7 Move generate into CLData as generat_pdf() 2021-07-27 23:03:03 -04:00
Sage Vaillancourt 3cdbfdcb04 Better styling, variable syntax, and cookies
Adjusted text sizes on mobile. New default variable syntax makes for more
consistent whitespace (allowing for simpler internal code). JS won't load
cookies if the company name is unchanged from the default.
2021-07-25 14:59:01 -04:00
Sage Vaillancourt 759b5e0636 Smaller TextArea font on small screens 2021-07-24 15:25:01 -04:00
Sage Vaillancourt 9a7787ef69 Save/fetch previous data. Better style. Unique IDs 2021-07-24 14:51:13 -04:00
Sage Vaillancourt 42c67985a6 Add some desktop styling 2021-07-24 01:08:18 -04:00
Sage Vaillancourt aaa4117e7f Now generates customized PDFs 2021-07-23 23:09:08 -04:00
Sage Vaillancourt 8a15cc524f Init commit
TODO: Collect form data, process data into latex renderables, generate unique
id when submitting, styling, etc.
2021-07-23 17:30:15 -04:00