Bootcamp II is a wordpress theme (as well as an inside joke) designed to suit the needs of foothillschurch.com. It makes use of webpack, Babel, Sass, Tailwind, Browsersync, PostCSS, ESLint, Stylelint, Prettier and more. It is meant for that site, but if you can use it by all means go for it.
I'm seeing several places where this code is repeated, using PHP to inline the background image and some other styles with it. Why not move this to CSS instead? Less repetition and no PHP needed.
To do so, you'll need to add images to your compiled output. This setup worked for me, though it's been a while since I've worked with webpack so there might be some improvements that can be made from here.
https://github.com/Myzwer/foothillschurch/blob/effc5bbf81497ae99f0561ab7849412fe9272bfd/components/headers/simple-header.php#L11-L13
I'm seeing several places where this code is repeated, using PHP to inline the background image and some other styles with it. Why not move this to CSS instead? Less repetition and no PHP needed.
To do so, you'll need to add images to your compiled output. This setup worked for me, though it's been a while since I've worked with webpack so there might be some improvements that can be made from here.
That will compile the image and maintain the reference, so if you use
class="topography-bg"
it will have the same bg image.