Workflows Beginner Multiple 10 min read ·

Build a Full Website in One Afternoon With AI

Go from idea to live website in a few hours. A complete walkthrough covering planning, building, styling, and deploying with AI tools.

Building a website used to take weeks. With AI coding tools, you can go from a blank screen to a live site in a single afternoon. This guide walks you through the full process — from planning your site to deploying it on the internet — using AI to do the heavy lifting.

Choose Your Toolchain

You have three solid options depending on your comfort level. Option A: Cursor + Vercel gives you the most control. You build locally in Cursor and deploy to Vercel for free hosting. Option B: Bolt.new lets you build entirely in the browser with AI, then export or deploy. Option C: Replit is the simplest — build and host everything in one browser tab. For this walkthrough, we'll use Option A (Cursor + Vercel), but the planning and prompting approach works with any option.

Phase 1: Plan the Site With AI (20 minutes)

Before writing any code, plan your site structure with the AI. Open Cursor's Composer and start with this prompt:

plaintext
I want to build a website for [describe your site — e.g., 'a freelance photographer portfolio']. The site needs these pages:
- Home page with a hero section and brief intro
- Portfolio/Work page showing projects in a grid
- About page with bio and experience
- Contact page with a form

Plan the file structure, suggest a color scheme that fits the brand, and recommend which page to build first. This will be a static site using HTML, CSS, and minimal JavaScript.

The AI will give you a clear structure to follow. Review it, adjust anything you don't like, and then move to building.

Phase 2: Build the Home Page (45 minutes)

Start with the home page since it sets the visual tone for everything else.

plaintext
Create the home page (index.html) with:
- A full-width hero section with a large heading, one-sentence tagline, and a 'View My Work' button
- A section showing 3 featured projects as image cards with titles
- A brief 'About' preview with a short paragraph and 'Learn More' link
- A footer with social media links and copyright
- Use the color scheme we discussed. Make it responsive for mobile.
- Create a shared CSS file (styles.css) that we'll use across all pages.

Test the page in your browser. You'll likely want to adjust colors, spacing, or text. Just tell the AI what to change — 'make the hero section taller,' 'change the heading font to something bolder,' 'add more padding between sections.'

Phase 3: Build Remaining Pages (60 minutes)

Now build each additional page, one at a time. The key is referencing the shared styles:

plaintext
Create the portfolio page (portfolio.html) using the same styles.css and navigation as the home page. Show 6-9 project cards in a responsive grid. Each card should have a placeholder image, project title, category tag, and a brief description. When clicked, the card should expand or open to show more details.

Repeat this process for your About and Contact pages. Each prompt should reference the shared styles and navigation to keep the site consistent.

Phase 4: Add Interactivity (30 minutes)

Once all pages are built, add interactive elements:

plaintext
Add these interactive features across the site:
1. Smooth scroll navigation — clicking nav links scrolls smoothly to sections
2. Mobile hamburger menu — the nav collapses on screens below 768px
3. Image lazy loading — images load as the user scrolls down
4. Contact form validation — check that name, email, and message fields aren't empty before allowing submission
5. Subtle fade-in animations as sections scroll into view

Phase 5: Polish and Deploy (30 minutes)

Before deploying, do a polish pass. Open each page on your phone (or use browser dev tools to simulate mobile) and note anything that looks off. Then:

plaintext
Fix these mobile issues:
- The hero text is too large on small screens, reduce it
- The project grid should be 1 column on mobile instead of 3
- Add more vertical spacing between sections on mobile
- Make the contact form full-width on mobile

For deployment, push your project to GitHub and connect it to Vercel. Vercel detects static sites automatically and deploys them in under a minute. Your site will be live at a yourproject.vercel.app URL. You can later connect a custom domain if you want.

Pro Tip

Before deploying, replace all placeholder images with real ones. Unsplash.com provides free, high-quality photos with commercial licenses. Download images, save them to your project's images folder, and update the file references.

What You've Built

In one afternoon, you've built a multi-page responsive website with animations, form validation, and mobile support — and deployed it live on the internet. This same workflow scales to more complex sites. The next step is adding a blog, e-commerce functionality, or dynamic content with a headless CMS. Each of those is just another conversation with the AI.

Key Takeaway

Plan first, build page by page, and deploy to Vercel for free hosting. A complete website is achievable in one afternoon when you let AI handle the code and you focus on direction and design decisions.

Frequently Asked Questions

How much does it cost to host a website built this way?

Vercel, Netlify, and GitHub Pages all offer free hosting for static sites. You only pay if you need a custom domain (about $10-15/year) or if your site gets extremely high traffic. For most personal and small business sites, hosting is effectively free.

Can I update the site later without knowing code?

Yes. Open the project in Cursor and tell the AI what changes you want. 'Add a new project to the portfolio page with this title and description' or 'Change the phone number on the contact page.' The workflow is the same as building it initially.

← Back to AI Coding Hub