Compare commits

...

3 Commits

Author SHA1 Message Date
Ryan Rix cee335e644 clean up a bit 2023-12-30 10:04:24 -08:00
Ryan Rix d94fc58eec remove temporary staticfiles dir that i'm not going to use 2023-12-30 10:03:45 -08:00
Ryan Rix 78c84888aa normalize link-color to themes' backgrounds 2023-12-30 10:03:14 -08:00
4 changed files with 12 additions and 9 deletions

View File

@ -501,8 +501,11 @@ async def feed(request, key):
#+end_src
** Per-Site link color CSS endpoint
:PROPERTIES:
:ID: 20231229T215425.830707
:END:
This endpoint generates a dynamic CSS file that colorizes internal URLs based on the [[id:20231229T164611.256424][The Arcology's Site List]].
This endpoint generates a dynamic CSS file that colorizes internal URLs based on the [[id:20231229T164611.256424][The Arcology's Site List]]. It does something [[https://twitter.com/gotMLK7/status/1675994399086641152][extremely wicked]] to make the page links less jarring until you hover over them by faking an alpha-channel in to the color.
#+begin_src python :tangle arcology/views.py
def site_css(request):
@ -535,7 +538,7 @@ def site_css(request):
return HttpResponse(stanzas, content_type="text/css")
#+end_src
** Templates
** Arcology Site Templates
Okay, now comes the fun part; we have HTML rendering of the org pages themselves working, now to put them on a page looking slick. Idk what to do here; I kind of want to just Tufte-CSS-ify this thing, while still maintaining subtle color-themeing and my typographic choices. Oughta just try to sketch this out first, but I'm gonna just set up the scaffolding for injecting Site specific variables and a basic HTML template that the org docs can be dropped in to.
@ -629,6 +632,8 @@ for now it's largely lifted from [[id:arcology/fastapi/base.html.j2][Base HTML T
</html>
#+end_src
And each page:
#+begin_src jinja2 :tangle arcology/templates/arcology/page.html
{% extends "arcology/app.html" %}

View File

@ -160,7 +160,6 @@ STORAGES = {
},
}
STATICFILES_DIRS = [
BASE_DIR / "arcology" / "static",
BASE_DIR / "static",
]

View File

@ -1 +1 @@
[{"title":"The Lion's Rear","key":"lionsrear","css_file":"arcology/css/lionsrear.css","link_color":"#006f00","domains":["thelionsrear.com","rix.si"]},{"title":"The Arcology Garden","key":"garden","css_file":"arcology/css/garden.css","link_color":"#444fcf","domains":["arcology.garden","whatthefuck.computer"]},{"title":"The Complete Computer","key":"cce","css_file":"arcology/css/cce.css","link_color":"#dd0020","domains":["cce.whatthefuck.computer","cce.rix.si"]},{"title":"The Arcology Site Engine","key":"arcology","css_file":"arcology/css/arcology.css","link_color":"#8448aa","domains":["engine.arcology.garden"]},{"title":"Local Dev Environment","key":"localhost","css_file":"arcology/css/arcology.css","link_color":"#075192","domains":["127.0.0.1:8000","localhost:8000"]}]
[{"title":"The Lion's Rear","key":"lionsrear","css_file":"arcology/css/lionsrear.css","link_color":"#cfdcc2","domains":["thelionsrear.com","rix.si"]},{"title":"The Arcology Garden","key":"garden","css_file":"arcology/css/garden.css","link_color":"#fcf6ed","domains":["arcology.garden","whatthefuck.computer"]},{"title":"The Complete Computer","key":"cce","css_file":"arcology/css/cce.css","link_color":"#dcdcec","domains":["cce.whatthefuck.computer","cce.rix.si"]},{"title":"The Arcology Site Engine","key":"arcology","css_file":"arcology/css/arcology.css","link_color":"#ccdfff","domains":["engine.arcology.garden"]},{"title":"Local Dev Environment","key":"localhost","css_file":"arcology/css/arcology.css","link_color":"#075192","domains":["127.0.0.1:8000","localhost:8000"]}]

View File

@ -19,10 +19,10 @@ These can be customized by the user:
#+NAME: sites-config
| title | key | css file | link color |
|--------------------------+-----------+---------------+------------|
| The Lion's Rear | lionsrear | lionsrear.css | #006f00 |
| The Arcology Garden | garden | garden.css | #444fcf |
| The Complete Computer | cce | cce.css | #dd0020 |
| The Arcology Site Engine | arcology | arcology.css | #8448aa |
| The Lion's Rear | lionsrear | lionsrear.css | #cfdcc2 |
| The Arcology Garden | garden | garden.css | #fcf6ed |
| The Complete Computer | cce | cce.css | #dcdcec |
| The Arcology Site Engine | arcology | arcology.css | #ccdfff |
| Local Dev Environment | localhost | arcology.css | #075192 |
#+NAME: domains-config
@ -440,7 +440,6 @@ STORAGES = {
},
}
STATICFILES_DIRS = [
BASE_DIR / "arcology" / "static",
BASE_DIR / "static",
]