File size: 6,639 Bytes
9dfae78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PromptCraft Studio</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>
</head>
<body class="bg-gray-50 text-gray-800">
    <custom-header></custom-header>
    
    <main class="container mx-auto px-4 py-8">
        <section class="text-center mb-12">
            <h1 class="text-4xl md:text-5xl font-bold mb-4">AI Image Prompt Generator</h1>
            <p class="text-lg max-w-2xl mx-auto">Create detailed prompts for AI-generated artwork. Our tool helps you craft precise descriptions for your creative projects.</p>
        </section>

        <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12">
            <div class="bg-white rounded-xl shadow-lg p-6">
                <h2 class="text-2xl font-bold mb-4">Prompt Builder</h2>
                <form id="promptForm" class="space-y-4">
                    <div>
                        <label class="block text-sm font-medium mb-1">Subject Description</label>
                        <input type="text" id="subject" placeholder="e.g., young man, teenager" class="w-full p-3 border border-gray-300 rounded-lg">
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium mb-1">Style & Art Type</label>
                        <select id="style" class="w-full p-3 border border-gray-300 rounded-lg">
                            <option>Photorealistic</option>
                            <option>Digital Art</option>
                            <option>Oil Painting</option>
                            <option>Sketch</option>
                            <option>Anime</option>
                            <option>3D Render</option>
                        </select>
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium mb-1">Setting/Background</label>
                        <input type="text" id="setting" placeholder="e.g., studio, outdoors, fantasy landscape" class="w-full p-3 border border-gray-300 rounded-lg">
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium mb-1">Lighting</label>
                        <select id="lighting" class="w-full p-3 border border-gray-300 rounded-lg">
                            <option>Natural Light</option>
                            <option>Studio Lighting</option>
                            <option>Golden Hour</option>
                            <option>Blue Hour</option>
                            <option>Dramatic Lighting</option>
                            <option>Soft Lighting</option>
                        </select>
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium mb-1">Additional Details</label>
                        <textarea id="details" placeholder="e.g., clothing style, expression, accessories" rows="3" class="w-full p-3 border border-gray-300 rounded-lg"></textarea>
                    </div>
                    
                    <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-4 rounded-lg transition duration-300">
                        Generate Prompt
                    </button>
                </form>
            </div>
            
            <div class="bg-white rounded-xl shadow-lg p-6">
                <h2 class="text-2xl font-bold mb-4">Generated Prompt</h2>
                <div class="mb-4 flex justify-between items-center">
                    <span class="text-sm text-gray-500">Copy your prompt:</span>
                    <button id="copyBtn" class="flex items-center text-sm bg-gray-100 hover:bg-gray-200 py-1 px-3 rounded">
                        <i data-feather="copy" class="mr-1"></i> Copy
                    </button>
                </div>
                <div id="promptOutput" class="bg-gray-50 border border-gray-200 rounded-lg p-4 min-h-[200px]">
                    <p class="text-gray-500 italic">Your generated prompt will appear here...</p>
                </div>
            </div>
        </div>
        
        <section class="bg-white rounded-xl shadow-lg p-6 mb-12">
            <h2 class="text-2xl font-bold mb-4">Recent Prompts</h2>
            <div id="recentPrompts" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                <div class="border border-gray-200 rounded-lg p-4">
                    <p class="text-sm text-gray-600 mb-2">Photorealistic portrait of a young man with short brown hair, wearing a white t-shirt, natural lighting, studio background</p>
                    <div class="flex justify-between text-xs text-gray-500">
                        <span>2 hours ago</span>
                        <span class="cursor-pointer text-blue-600">Copy</span>
                    </div>
                </div>
                <div class="border border-gray-200 rounded-lg p-4">
                    <p class="text-sm text-gray-600 mb-2">Anime style character of a teenage boy with blue eyes, wearing casual clothes, sitting in a park during golden hour</p>
                    <div class="flex justify-between text-xs text-gray-500">
                        <span>1 day ago</span>
                        <span class="cursor-pointer text-blue-600">Copy</span>
                    </div>
                </div>
                <div class="border border-gray-200 rounded-lg p-4">
                    <p class="text-sm text-gray-600 mb-2">Oil painting of a young man with curly hair, wearing a leather jacket, dramatic lighting, urban background</p>
                    <div class="flex justify-between text-xs text-gray-500">
                        <span>3 days ago</span>
                        <span class="cursor-pointer text-blue-600">Copy</span>
                    </div>
                </div>
            </div>
        </section>
    </main>
    
    <custom-footer></custom-footer>
    
    <script src="components/header.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>