Перейти до основного вмісту
← 📄 HTML & the platform·Модуль A8 · Урок 2
ЗавданняBuild the AI demo landing. <head>: title 'AI Python tutor — try it free | CodeMentor', description, canonical 'https://learnpython.academy/demo', OG 5-tag set (og:title, og:description, og:image='https://learnpython.academy/og/demo.png', og:url, og:type='website'), twitter:card='summary_large_image'. <body>: <main><h1>AI tutor — ask any Python question</h1><p>30,000+ developers learning by asking.</p><form id='ask' action='/api/ask' method='post'><label for='q'>Your question</label><input id='q' name='q' required placeholder='Why is `is` not `==` ?'><button>Ask</button></form><pre id='answer' aria-live='polite'></pre></main>.

Capstone 2: демо-сторінка AI

250 XP18 min
Теорія

What we're building

Public-facing landing for your AI demo (the FastAPI /api/ask endpoint from the AI Engineering track). Goal: a stranger can find it via Google, share it on Twitter, and try it — all in 30 seconds.

Components:

  • Hero: h1 + 1-sentence value prop + CTA.
  • The demo: form with a prompt input + button + answer display area.
  • Full SEO+OG block: title, description, canonical, OG 5-tag set, Twitter card.
  • JSON-LD WebApplication for rich-result eligibility.

This is the page every AI demo on Product Hunt should look like.

🔒

Зареєструйся щоб кодувати

Теорія відкрита всім. Інтерактивний редактор, живий перегляд і перевірка відкриваються з 7-денним безкоштовним trial — потрібна картка, скасування у будь-який час.

Реєстрація — безкоштовний trial →

Перші 10 уроків у кожному треку — безкоштовні. Картка не потрібна.

← НазадНаступний урок →

Отримуй одну пораду з Python чи вебу — щодня поштою

Коротко, без води, без спаму. Відписка — в один клік.