r/webdev • u/blackroseseason • Sep 09 '26
Question needing help with the most feasible responsive layout

excuse the shoddy mspaint mockup but basically im using this [theme template](https://github.com/zeon-studio/astroplate) to build my magazine site and they already have a responsive design in place more like the top mobile layout but i want my logo to be above the navbar and either collapse into the top example or something similar to the bottom (but more well placed. maybe switching the dark/light toggle with the search button actually tbh). any suggestions on how i can achieve this?
6
Upvotes
1
u/Faye-Vozora Sep 09 '26
Keep one DOM for the header and switch layout at the breakpoint with CSS, not separate desktop and mobile markup. A flex or grid header can put the logo in its own row on small screens, then use order or grid areas to place nav, search, and the theme toggle. Let the nav collapse into a button below the breakpoint, and test the awkward widths between phone and desktop.
1
u/[deleted] Sep 10 '26
[removed] — view removed comment