pfautrero / xia

xia is a small tool to convert svg files into html5 ressources
https://xia.funraiders.org
37 stars 6 forks source link

Suggestion: a more generalizable project by using css/html classes instead of ids #44

Open evaristoc opened 4 months ago

evaristoc commented 4 months ago

Hi, I have recently been working with this project and I would like to share my experience? Probably something that can help the project in the future?

What I have been doing is testing the use of several Xia sidebars inside a blog post, instead of stand-alone sidebar pages.

I managed to make it possible by:

  1. modifying the sidebar html template and the main.css ids into classes,
  2. modifying the default id html attributes of each of the templates into convenient ids for each of the sidebars
  3. modifying the data.js names into distinctive names and associate them to the sidebars accordingly

I think some of those simple changes, in particular the use of well-named classes instead of ids for css, could extend the usability of the tool in different contexts.

Currently I am more into testing this and other technologies so the final product is just a demonstration (even if public):

https://evaristoc.github.io/re-versing/blog/security-and-access/2024/02/17/the-tls-ssl-handshake-hellos.html

Let me know if this was of interest. I also found other things that might be interesting to look at. I can also contribute to source if needed.