Tailwind CSSBeginner
প্রথম Tailwind Project
প্রথম Tailwind CSS project তৈরি করুন — utility class, HTML structure এবং live preview।
8টি অংশবাংলা ভাষায়
চলুন একটি সহজ Tailwind project দিয়ে শুরু করি। এই অধ্যায়ে আমরা প্রথম utility class ব্যবহার করবো।
প্রথম HTML File
index.htmlhtml
html
<!DOCTYPE html>
<html lang="bn">
<head>
<meta charset="UTF-8" />
<title>আমার প্রথম Tailwind Project</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100 p-8">
<h1 class="text-2xl font-bold text-blue-600">
হ্যালো Tailwind!
</h1>
</body>
</html>ব্রাউজারে দেখুন
এই file টি ব্রাউজারে খুললে আপনি দেখবেন একটি নীল রঙের শিরোনাম। Tailwind class-গুলো কাজ করছে!
আরও কিছু utility classes
index.htmlhtml
html
<!DOCTYPE html>
<html lang="bn">
<head>
<meta charset="UTF-8" />
<title>আমার প্রথম Tailwind Project</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100 p-8">
<div class="mx-auto max-w-md rounded-lg bg-white p-6 shadow-lg">
<h1 class="text-2xl font-bold text-gray-800">প্রোফাইল কার্ড</h1>
<p class="mt-2 text-gray-600">এটি একটি সাধারণ Tailwind card।</p>
<button class="mt-4 rounded-lg bg-blue-600 px-4 py-2 text-white hover:bg-blue-700">
আরও দেখুন
</button>
</div>
</body>
</html>Practice
নিজে চেষ্টা করুন! আরও কিছু utility classes যোগ করুন — bg-red-100, text-lg, font-semibold, shadow-md ইত্যাদি।
শেষ প্যারায় নিজে practice করুন — কোড কপি করে নিজের এডিটরে চালিয়ে দেখুন।