Responsive Navbar: Free AI Prompt | SheCodes

Free AI prompt · Start Here

Responsive Navbar

A ready-to-use prompt from the chapter How to Talk to AI. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“Create a navbar with: logo on the left, links in the center, and a button on the right. Fix it to the top of the page with a blurred background. On mobile, hide the links behind a hamburger menu icon that opens a slide-in drawer. Highlight whichever link is active.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Landing Page

“Create a landing page with Tailwind CSS. Include: 1) A hero section with a large heading, subtitle, and two buttons. 2) A features section with 6 cards in a 3-column grid. 3) A testimonials section with 3 cards. 4) A CTA banner with a gradient background. 5) A footer with 4 columns. Use purple (#8B5CF6) as the main color.”

Pricing Section

“Create a pricing section with 3 tiers: Basic ($9/mo), Pro ($29/mo), and Enterprise (Custom). Each card shows the name, price, a list of features with checkmarks, and a button. Make the Pro card stand out with a colored border and a 'Most Popular' badge. On mobile, stack the cards vertically.”

Contact Form

“Create a contact form with fields for Name, Email, a Subject dropdown (General, Support, Sales), and a Message textarea. All fields are required. Show a red error message below any empty field when the user tries to submit. Show a success message after submitting.”

Dashboard Layout

“Create a dashboard with: 1) A sidebar on the left with navigation links and icons. 2) A top bar with a search input and a user avatar. 3) A main area with 4 stat cards at the top showing numbers, and a data table below. On smaller screens, collapse the sidebar to just icons.”

Dark Mode Toggle

“Add dark mode to the app. Put a sun/moon toggle button in the navbar. Dark colors: background #0F0E17, cards #1A1A2E, text white, muted text #A7A9BE. Save the user's choice so it stays the same when they come back.”

Hero Section

“Create a hero section with a large heading that has a purple-to-pink gradient text effect, a subtitle in gray, and two buttons side by side (one filled, one outlined). Center everything. Add a subtle fade-up animation when the page loads.”