A landing page for Swoonstays that allows customers to select their preferred state and category to find the perfect place to stay. The website is built with Astro, Preact, Tailwind CSS, DaisyUI, and utilises Preact Signals.
- 📍 Select place categories and states to find the perfect Swoonstay
- 📱 Fully responsive on mobile
- 🎨 Modern design
- ➕ Easily add new categories and states
- ⚡ High performance - achieves 100 on every Lighthouse metric
To run this on your local machine, you will need to have the latest LTS version of Node.js installed.
- Clone the repository to your local machine
- Open your terminal and run
npm install
andnpm run build
- Then run the
npm run prod
command - Access the website and enjoy!
- Navigate to the data folder in
src/data/
- Simply add the new data into to either the
states.ts
orcategories.ts
files - Run the
npm run build
command - The site will now have the new states and categories.
- Run the
npm run build
command - Simply copy the contents of the
/dist
folder in the root directory to your web server