Hey all,
I’ve spent the past two days creating a layout maker with the goal of having something flexible and customizable to get people started with their own page.
It’s still fairly basic compared to what I plan for it to be, but it’s functional. The output goes into a pair of textareas, one for html and one for css; you copy those into a pair of text files and put them in the same directory.
(updated 4 january 2025)
At the moment, it can:
- choose between layouts (currently 2)
- have 1, 2, or 3 columns (in layouts that have sidebars)
- adjust the total width and the width balance between main and sidebars
- add and customize borders around the sidebars (if they exist)
- show or hide the header, footer, and navbar
- place the navbar fixed to top, bottom, or either side, as well as inline with the text and sticky once it scrolls to the top
- style the navbar as flat buttons, raised buttons, a full width (or height if your menu is stuck to the side) banner, as well as the default text links
- add a header image
- change colour palettes with a series of premade ones (thanks xandra!)
- override individual colours within a palette
- change fonts (face, size, line-height)
- …also the titles (but not the text) are editable in place. (The text is standard lorem ipsum.)
On my list for next steps are:
- more pre-made style starting points the way there are pre-made colour palettes
- more layout options
- maybe widgets to put in the sidebar?
- footer options
- background image
Anyhow, it’s been an interesting couple of days! I’ve gotten fairly familiar with the DOM and CSSOM in that time. Just enough to get myself into trouble, I’m sure…