tatht's picture
gen ra giao diện đơn giản
f3217d0 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jQuery Template Magic</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery-templates@1.0.0/jquery.tmpl.min.js"></script>
</head>
<body class="bg-gray-100 min-h-screen">
<div class="container mx-auto px-4 py-8">
<header class="text-center mb-8">
<h1 class="text-3xl font-bold text-gray-800 mb-2">Simple Interface</h1>
<p class="text-lg text-gray-600">Clean and minimal design</p>
</header>
<div class="bg-white rounded-lg p-6 mb-6">
<div id="contentArea" class="space-y-4">
<div class="p-4 border border-gray-200 rounded-lg">
<h3 class="font-medium text-lg">Welcome</h3>
<p class="text-gray-600">This is a simple interface example.</p>
</div>
<div class="p-4 border border-gray-200 rounded-lg">
<h3 class="font-medium text-lg">Features</h3>
<ul class="list-disc pl-5 text-gray-600 space-y-1">
<li>Clean design</li>
<li>Minimal styling</li>
<li>Easy to use</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Sample Template -->
<script id="simpleTemplate" type="text/x-jquery-tmpl">
<div class="bg-white border border-gray-200 rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow duration-300">
<div class="flex items-center mb-4">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i data-feather="star" class="text-blue-500"></i>
</div>
<h3 class="text-xl font-medium text-gray-800">\${title}</h3>
</div>
<p class="text-gray-600 mb-4">\${description}</p>
<button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg transition-colors duration-300">
Learn more
</button>
</div>
</script>
<!-- Dynamic Data Template -->
<script id="dynamicTemplate" type="text/x-jquery-tmpl">
<div class="bg-gray-50 border border-gray-200 rounded-lg p-6">
<div class="flex items-start mb-4">
<div class="bg-green-100 p-3 rounded-full mr-4">
<i data-feather="user" class="text-green-500"></i>
</div>
<div>
<h3 class="text-lg font-medium text-gray-800">\${name}</h3>
<p class="text-gray-500 text-sm">\${role}</p>
</div>
</div>
<p class="text-gray-700 mb-4">\${bio}</p>
<div class="flex space-x-2">
{{each skills}}
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded">\${$value}</span>
{{/each}}
</div>
</div>
</script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>