long4bttdh's picture
code multi file với nextjs
b945556 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Next.js Wonderland</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
</head>
<body>
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-12">
<div id="vanta-background" class="absolute top-0 left-0 w-full h-full z-0"></div>
<div class="relative z-10">
<section class="hero min-h-screen flex items-center justify-center">
<div class="text-center">
<h1 class="text-6xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-purple-400 via-pink-500 to-red-500">
Welcome to Next.js Wonderland
</h1>
<p class="text-xl mb-8 max-w-2xl mx-auto">
A magical place where React meets server-side rendering and static site generation.
</p>
<div class="flex justify-center gap-4">
<a href="#features" class="px-6 py-3 bg-gradient-to-r from-purple-500 to-pink-500 text-white rounded-full font-medium shadow-lg hover:shadow-xl transition-all duration-300">
Explore Features
</a>
<a href="#get-started" class="px-6 py-3 border-2 border-purple-500 text-purple-500 rounded-full font-medium hover:bg-purple-50 transition-all duration-300">
Get Started
</a>
</div>
</div>
</section>
<section id="features" class="py-20">
<h2 class="text-4xl font-bold text-center mb-16">Why Choose Next.js?</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="feature-card p-8 rounded-xl bg-white bg-opacity-90 backdrop-blur-sm border border-gray-200 hover:border-purple-300 transition-all duration-300">
<div class="w-16 h-16 flex items-center justify-center bg-purple-100 rounded-full mb-6">
<i data-feather="zap" class="text-purple-600"></i>
</div>
<h3 class="text-2xl font-semibold mb-3">Blazing Fast</h3>
<p class="text-gray-600">Automatic static optimization and server-side rendering for lightning-fast performance.</p>
</div>
<div class="feature-card p-8 rounded-xl bg-white bg-opacity-90 backdrop-blur-sm border border-gray-200 hover:border-purple-300 transition-all duration-300">
<div class="w-16 h-16 flex items-center justify-center bg-purple-100 rounded-full mb-6">
<i data-feather="code" class="text-purple-600"></i>
</div>
<h3 class="text-2xl font-semibold mb-3">Developer Experience</h3>
<p class="text-gray-600">File-system routing, API routes, and built-in CSS/Sass support make development a breeze.</p>
</div>
<div class="feature-card p-8 rounded-xl bg-white bg-opacity-90 backdrop-blur-sm border border-gray-200 hover:border-purple-300 transition-all duration-300">
<div class="w-16 h-16 flex items-center justify-center bg-purple-100 rounded-full mb-6">
<i data-feather="globe" class="text-purple-600"></i>
</div>
<h3 class="text-2xl font-semibold mb-3">Hybrid Rendering</h3>
<p class="text-gray-600">Mix static generation, server-side rendering, and client-side rendering in a single app.</p>
</div>
</div>
</section>
<section id="get-started" class="py-20">
<div class="bg-gradient-to-r from-purple-500 to-pink-500 rounded-2xl p-10 text-white">
<div class="max-w-4xl mx-auto">
<h2 class="text-3xl font-bold mb-6">Ready to Build Something Amazing?</h2>
<p class="text-xl mb-8">Get started with Next.js in seconds with our interactive tutorial.</p>
<div class="bg-gray-900 rounded-xl p-6 mb-8 overflow-x-auto">
<pre class="text-green-400"><code>npx create-next-app@latest</code></pre>
</div>
<a href="https://nextjs.org/docs" target="_blank" class="inline-block px-8 py-3 bg-white text-purple-600 rounded-full font-bold hover:bg-gray-100 transition-all duration-300">
Explore Documentation
</a>
</div>
</div>
</section>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>