Coding task · Vibe coding with Claude Code course · Module 2: A Next.js project with Claude Code
Practice: Tailwind flexbox
flex turns on flexbox, items-center centers vertically and justify-center horizontally. h-screen gives the div the full screen height; without it you cannot see the vertical centering.
Task
Create a div with the classes flex, items-center, justify-center and h-screen, and put an element with text inside it, e.g. <p>. The element should sit in the middle of the screen, vertically and horizontally.