A website for WH Pubs, featuring traditional British pubs in South East England offering quality food, drink, and hospitality.
Edit in StackBlitz next generation editor ⚡️
- Responsive design for all devices
- Accessibility improvements with ARIA labels
- SEO optimizations with meta tags, sitemap, and robots.txt
- Schema.org structured data for better search results
- Custom 404 error page
- Google Analytics integration
- Astro - Web framework
- React - UI components
- Tailwind CSS - Styling
- Sanity - Content management
- Create a Netlify account at netlify.com
- Click "New site from Git"
- Connect to your GitHub/GitLab/Bitbucket account
- Select the WH Pubs repository
- Configure build settings:
- Build command:
npm run build
- Publish directory:
dist
- Build command:
- Click "Deploy site"
-
Install Netlify CLI:
npm install netlify-cli -g
-
Login to Netlify:
netlify login
-
Initialize Netlify in your project:
netlify init
-
Follow the prompts to either:
- Create a new site
- Connect to an existing site
-
Deploy your site:
netlify deploy --prod
Set the following environment variables in Netlify:
SANITY_PROJECT_ID
: Your Sanity project IDSANITY_DATASET
: Your Sanity dataset (usually "production")SANITY_TOKEN
: Your Sanity API token (if needed)GA_MEASUREMENT_ID
: Your Google Analytics measurement ID
-
Clone the repository:
git clone https://github.com/yourusername/whpubs.git cd whpubs
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
npm run build
The built files will be in the dist
directory.
npm run preview
Additional documentation can be found in the docs
directory: