File size: 6,458 Bytes
64e436e cac125f 3fe0398 cac125f 3fe0398 cac125f 3fe0398 cac125f 3fe0398 cac125f 3fe0398 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create Character - TapChat</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body class="bg-gray-900 text-white font-sans">
<custom-navbar></custom-navbar>
<!-- Create Character Header -->
<section class="relative py-16 md:py-24 bg-gradient-to-br from-gray-900 to-gray-800">
<div class="absolute inset-0 opacity-10">
<div class="pattern-grid-lg text-gray-700/20 w-full h-full"></div>
</div>
<div class="container mx-auto px-4 relative z-10">
<div class="max-w-3xl mx-auto text-center">
<h1 class="text-4xl md:text-6xl font-bold mb-6">
Create Your <span class="bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-indigo-400">Perfect</span> Character
</h1>
<p class="text-xl text-gray-300 mb-10 max-w-2xl mx-auto">
Design a unique avatar, define personality traits, and bring your character to life with our advanced creation tools.
</p>
</div>
</div>
</section>
<!-- Creation Steps -->
<section class="py-16 bg-gray-900">
<div class="container mx-auto px-4">
<div class="max-w-4xl mx-auto">
<div class="flex justify-between mb-12">
<div class="text-center">
<div class="w-12 h-12 rounded-full bg-purple-500/20 flex items-center justify-center mx-auto mb-3">
<span class="text-purple-400 font-bold">1</span>
</div>
<h3 class="font-semibold">Avatar</h3>
</div>
<div class="text-center">
<div class="w-12 h-12 rounded-full bg-gray-700 flex items-center justify-center mx-auto mb-3">
<span class="text-gray-400 font-bold">2</span>
</div>
<h3 class="font-semibold text-gray-400">Personality</h3>
</div>
<div class="text-center">
<div class="w-12 h-12 rounded-full bg-gray-700 flex items-center justify-center mx-auto mb-3">
<span class="text-gray-400 font-bold">3</span>
</div>
<h3 class="font-semibold text-gray-400">Details</h3>
</div>
</div>
<!-- Personality Builder -->
<personality-builder style="display: none;"></personality-builder>
<!-- Avatar Customizer -->
<avatar-customizer></avatar-customizer>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="py-20 bg-gradient-to-r from-purple-900/30 to-indigo-900/30">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl md:text-4xl font-bold mb-6">Need Inspiration?</h2>
<p class="text-xl text-gray-300 max-w-2xl mx-auto mb-10">
Browse our character templates to kickstart your creation process.
</p>
<div class="flex flex-col sm:flex-row justify-center gap-4">
<button class="bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 text-white px-8 py-4 rounded-full text-lg font-semibold transition-all shadow-lg shadow-purple-500/20">
Browse Templates
</button>
</div>
</div>
</section>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/avatar-customizer.js"></script>
<script src="components/personality-builder.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Step navigation
const avatarCustomizer = document.querySelector('avatar-customizer');
const personalityBuilder = document.querySelector('personality-builder');
const steps = document.querySelectorAll('.flex.justify-between.mb-12 > div');
// Listen for step change events
personalityBuilder.addEventListener('step-change', (e) => {
if (e.detail.step === 1) {
// Go back to avatar customizer
personalityBuilder.style.display = 'none';
avatarCustomizer.style.display = 'block';
// Update step indicators
steps[0].querySelector('div').className = 'w-12 h-12 rounded-full bg-purple-500/20 flex items-center justify-center mx-auto mb-3';
steps[0].querySelector('span').className = 'text-purple-400 font-bold';
steps[1].querySelector('div').className = 'w-12 h-12 rounded-full bg-gray-700 flex items-center justify-center mx-auto mb-3';
steps[1].querySelector('span').className = 'text-gray-400 font-bold';
}
});
avatarCustomizer.addEventListener('step-change', (e) => {
if (e.detail.step === 2) {
// Go to personality builder
avatarCustomizer.style.display = 'none';
personalityBuilder.style.display = 'block';
// Update step indicators
steps[0].querySelector('div').className = 'w-12 h-12 rounded-full bg-purple-500/20 flex items-center justify-center mx-auto mb-3';
steps[0].querySelector('span').className = 'text-purple-400 font-bold';
steps[1].querySelector('div').className = 'w-12 h-12 rounded-full bg-purple-500/20 flex items-center justify-center mx-auto mb-3';
steps[1].querySelector('span').className = 'text-purple-400 font-bold';
steps[1].querySelector('h3').className = 'font-semibold';
steps[1].querySelector('h3').classList.remove('text-gray-400');
}
});
});
</script>
</body>
</html>
|