Commit Graph

187 Commits

Author SHA1 Message Date
MatthiasSaihttam 987774999c Reworks post page to use a ModelForm
* Adds media-alt textbox
* Improves styling on media textbox
* Removes some unused JS for dynamically padding textboxes
* Remove rows=2 from the extended textbox, since it wasn't being used
2021-10-03 02:14:08 -04:00
MatthiasSaihttam 635bc32ef2 Refactor password validation
* Just removes the plaintext password from the source code, instead 
reading it from an enviroment file. No password hashing here. No-JS 
login is still on the timeline
2021-10-03 00:25:17 -04:00
MatthiasSaihttam 81275588d0 Change input/textarea line-height to 1.5 2021-10-02 23:04:25 -04:00
MatthiasSaihttam 9d548ef55f Update line endings
* Ensure that both textbox's heights are updated properly after typing 
over 140 characters in the first box
* Normalize line endings on text before storing it in the database. To 
update the database, I also ran:

for t in Thought.objects.all():
    t.extended_text = t.extended_text.replace("\r\n", "\n")
    t.text = t.text.replace("\r\n", "\n")
    t.save()
2021-09-11 21:45:56 -04:00
MatthiasSaihttam be2bcf2770 Tweak extended text textbox
* Made it look better when empty
2021-09-11 21:03:48 -04:00
MatthiasSaihttam 65fc30a717 Accessibility improvements
* Make the accent color in the dark theme lighter
* Change the selected tab to an h1 (and CSS changes)
* Change the main wrap to a `main` tag
2021-09-11 15:18:34 -04:00
MatthiasSaihttam 2aa2ca65dc Add check to sub-process
* Add pages file to gitignore
2021-09-11 10:56:54 -04:00
MatthiasSaihttam a611fc1789 Fix JS bug 2021-09-01 20:06:15 -04:00
MatthiasSaihttam 61c2e018d0 Remove empty extended text on server-side 2021-09-01 00:31:33 -04:00
MatthiasSaihttam 70d1316103 Changed code blocks to take the whole width
* This fixes an issues with calculating the width of co, ya know, just check the repoduction example:
=> https://ourjseditor.com/program/CKtLzi
* Changes the background color of code blocks to black with a 30% alpha channel, to let some color bleed through.
2021-07-27 18:04:11 -07:00
MatthiasSaihttam 8a28e20504 Re-do code block styling for like the 3rd time 2021-07-04 12:50:54 -07:00
MatthiasSaihttam 72e3efb6b7 Remove <br> from gemini about page 2021-06-25 16:13:35 -07:00
MatthiasSaihttam 2c1eed4731 Add about.gmi
Fix some typo's in about.html
2021-06-25 00:49:28 -07:00
Matthias 0de66e124f Get Gemini working again 2021-06-25 07:22:48 +00:00
MatthiasSaihttam 58ace6ccaf Add forgoten quotes 2021-06-24 23:55:12 -07:00
MatthiasSaihttam 56e6d66582 Add python-decouple
I need to be able to auto-update the code on the server without losing config
2021-06-24 23:47:05 -07:00
MatthiasSaihttam 13064a5640 Add link to About page
Refactor the header into a nav bar
Remove unused footer styles
2021-06-24 23:32:05 -07:00
MatthiasSaihttam bcb2240c93 Add line to about page 2021-06-24 22:35:35 -07:00
MatthiasSaihttam 36d0d3b325 Basic Gemini support 2021-06-11 10:31:07 -07:00
MatthiasSaihttam f087113400 Edited a final version of the About page 2021-06-06 22:29:15 -07:00
MatthiasSaihttam 484fb76611 CSS Tweaks for code blocks and media 2021-05-10 14:21:15 -04:00
MatthiasSaihttam af3d3a57c5 Fix a bug so that old audio files are deleted correctly 2021-05-10 00:19:47 -04:00
MatthiasSaihttam 7183ca8317 Add pasting with the new media system 2021-05-03 02:00:50 -04:00
MatthiasSaihttam 0583ee40f0 Disable a bunch of markdown rules
Most were unused, there were a times where "..." was being transformed to a single ellipse character.
And I used strikethrough once, but that's dumb
2021-05-02 20:51:37 -04:00
MatthiasSaihttam fe01d3913f Wide code blocks horizontally scroll 2021-05-01 18:28:36 -04:00
MatthiasSaihttam a604284510 Re-add line-height to about page. 2021-05-01 16:14:20 -04:00
MatthiasSaihttam a9a02bae61 Re-add line-height to the timestamp of a thought. 2021-05-01 16:11:20 -04:00
MatthiasSaihttam bcd3456cb2 Tweak padding on extended media 2021-05-01 16:03:31 -04:00
MatthiasSaihttam 980f94cd7f Add field for media alt 2021-05-01 16:02:52 -04:00
MatthiasSaihttam f7ab61cbee Re-encode audio 2021-04-29 01:50:37 -04:00
MatthiasSaihttam 32c8cc5476 Add basic displaying of extra media 2021-04-27 22:47:33 -04:00
MatthiasSaihttam 09d6ddff46 Add to the about page 2021-04-27 02:00:39 -04:00
MatthiasSaihttam 118614eeff Add media upload
- Create requirements file
2021-04-25 13:09:30 -04:00
MatthiasSaihttam c2bd957d9b Edits to the About page 2021-04-20 12:10:45 -04:00
MatthiasSaihttam e661b29b52 Refactored templates, explained everything 2021-04-20 01:10:31 -04:00
MatthiasSaihttam c26c312dc0 Tweaks 2021-04-19 22:48:27 -04:00
MatthiasSaihttam ff50f94d0b Serverside markdown rendering test 2021-04-19 11:05:01 -04:00
MatthiasSaihttam 697de9c5f4 Improve consistency of rendering line breaks 2021-03-27 20:57:14 -04:00
MatthiasSaihttam d9c0103548 Semantic styles load as part of the page 2021-03-27 17:28:36 -04:00
MatthiasSaihttam 009d777c43 Disable HTML escaping bug
Code blocks aren't effected by this setting.
2021-03-15 16:15:36 -04:00
MatthiasSaihttam 79145a1e8c Top bar scrolls horizontally 2021-01-03 12:30:01 -08:00
MatthiasSaihttam cebd47128b Fix issue with HTML entities being double escaped in code blocks 2020-12-17 22:31:27 -05:00
MatthiasSaihttam fcd6389c0e Add placeholder css and add extended placeholder 2020-12-02 17:20:14 -05:00
MatthiasSaihttam 1ec107f743 Add styles to login page
- Move some styles to main.css to allow for code re-use
2020-12-02 15:56:36 -05:00
MatthiasSaihttam 375a4ec717 Move color CSS 2020-12-02 15:33:19 -05:00
MatthiasSaihttam 6ace6bf7da Merge remote-tracking branch 'origin/master' 2020-12-02 15:28:44 -05:00
MatthiasSaihttam d4c73bae29 Allow pasting images
- Update CSS on post button
2020-12-02 15:28:15 -05:00
MatthiasSaihttam d48e47b59f Fix typo 2020-11-30 04:19:23 +00:00
MatthiasSaihttam 5743d2ee97 Unfold highlighted 2020-11-30 04:17:35 +00:00
MatthiasSaihttam 7f52c5de98 Allow all hosts in debug mode 2020-11-24 10:43:13 -08:00