imseldrith's picture
Add more features
e6ebfa2 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ScribbleToScript - Convert Text to Handwriting</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>
</head>
<body class="bg-gray-50 min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow container mx-auto px-4 py-12">
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden">
<div class="p-8">
<h1 class="text-4xl font-bold text-gray-800 mb-2">Turn Digital Text into<br>Beautiful Handwriting</h1>
<p class="text-gray-600 mb-8">Simply type your text below and watch it transform into realistic handwriting</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<div class="space-y-4">
<div class="flex items-center gap-3">
<i data-feather="edit-3" class="text-indigo-500"></i>
<h3 class="text-xl font-semibold text-gray-700">Input Text</h3>
</div>
<textarea id="inputText" rows="12" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Type or paste your text here..."></textarea>
<div class="space-y-2">
<label class="flex items-center gap-2">
<input type="checkbox" id="showLines" class="rounded text-indigo-500">
<span class="text-gray-700">Show ruled lines</span>
</label>
<div class="flex items-center gap-4">
<button id="generateBtn" class="px-6 py-3 bg-indigo-600 text-white font-medium rounded-lg hover:bg-indigo-700 transition flex items-center gap-2">
<i data-feather="pen-tool"></i>
Generate
</button>
<button id="downloadBtn" class="px-6 py-3 bg-white border border-indigo-500 text-indigo-600 font-medium rounded-lg hover:bg-indigo-50 transition flex items-center gap-2">
<i data-feather="download"></i>
Download
</button>
</div>
</div>
</div>
<div class="bg-gray-50 rounded-lg border border-gray-200 p-6">
<div class="flex items-center gap-3 mb-4">
<i data-feather="image" class="text-indigo-500"></i>
<h3 class="text-xl font-semibold text-gray-700">Handwritten Output</h3>
</div>
<div id="outputCanvas" class="bg-white border border-gray-200 rounded-lg p-4 min-h-64 flex items-center justify-center">
<p class="text-gray-400">Your handwritten text will appear here</p>
</div>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/feature-card.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>