A new quest appeared!

piranhebula.neocities.org

303,785 views
100 followers
4,162 updates
0 tips
For anybody that's done UI/style changes to their site before, is there anyway of doing that in a modular way? ie having one page you edit the style of, and it applies to other pages of that same style- or creating something like a navigation bar, and editing that one bar will update it across other pages of your site? Feel like theres a more efficient way to do that than how I've been lol
4 likes
rabbitnet's avatar rabbitnet 5 days ago

I use this code for my site! It's a javascript code that injects a header, aside and footer to your pages, and you can specify which pages you don't want it to appear on: https://petrapixel.neocities.org/coding/layout-base-code

3 likes
rabbitnet's avatar rabbitnet 5 days ago

Oh also, If you're not already, set up some variables for your colours! You can assign hexcodes names in your stylesheet, and then call them later using that name. That way, if you update that colour, it'll change the colour of everything with that variable name to match! https://www.w3schools.com/css/css3_variables.asp

1 like
piranhebula's avatar piranhebula 5 days ago

@rabbitnet oooo thank you so much for sending these!! Definitely will give these a look into tonight. (funny enough it was seeing your posts in my feed for updating your own page's layout that made me think about it, combined with really admiring your site's own aesthetics <3

1 like
rabbitnet's avatar rabbitnet 4 days ago

Aww thanks!! I hope you find the links helpful. Best of luck with the updates, I can't wait to see what you do!

1 like

Website Stats

Last updated 2 days ago
CreatedJun 20, 2023
Site Traffic Stats

Tags

games pixelart vpets journal indiegames