Toggle navigation
☰
HTML
CSS
Scripting
Database
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind CSS Hero With Background Image</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-100"> <section class="h-screen bg-cover bg-center relative flex items-center justify-center p-6 text-center" style="background-image: url('https://images.unsplash.com/photo-1542281286-9e0a16bb7366?auto=format&fit=crop&w=1920&q=80')"> <!-- Overlay --> <div class="absolute inset-0 bg-black/50 backdrop-blur-sm"></div> <div class="relative z-10 max-w-4xl"> <h1 class="text-6xl md:text-8xl font-black text-white leading-tight mb-8 drop-shadow-2xl">Discover Your True Potential.</h1> <p class="text-xl text-white/80 max-w-2xl mx-auto mb-12 leading-relaxed font-bold tracking-wide italic">"The only limit to our realization of tomorrow will be our doubts of today."</p> <div class="flex flex-col sm:flex-row items-center justify-center space-y-4 sm:space-y-0 sm:space-x-6"> <a href="##" class="bg-indigo-600 text-white px-10 py-5 rounded-full font-black uppercase text-xs tracking-widest shadow-2xl hover:bg-rose-600 hover:-translate-y-1 transition-all active:translate-y-0">Join the Journey</a> <a href="##" class="bg-white/10 backdrop-blur-md text-white border border-white/20 px-10 py-5 rounded-full font-black uppercase text-xs tracking-widest hover:bg-white/20 transition-all">Watch the Film</a> </div> </div> </section> </body> </html>