In this episode, we're kicking things off by setting up our base layout from scratch, without a starter kit. The idea is to get our project looking half-decent and ready to go before jumping into more detailed features. We set up a simple booking controller that will eventually list employees and services, even though we're not wiring up that logic just yet.
Next, we create a Blade view for our booking page, and then set up a reusable app layout component to handle all the shared HTML structure like the <head>
, page title, and body. We add a slot so future content can be slotted right in wherever needed. Once the layout component is in place, everything on the page is nicely wrapped and ready for styling.
For the front-end, we bring in Tailwind CSS. We show how to install it using npm, set up the config, and let it scan our Blade views for classes. We also include the generated stylesheet using Vite so everything gets compiled and hot-reloads while we work.
As a quick test, we style some text to make sure Tailwind is working, then finish up by creating a centered container with sensible max width, margin, and padding utilities to make the app look clean and modern. By the end, we've got a solid, styled starting point ready for building out more features — and we’re ready to move on to listing employees next!