File size: 8,669 Bytes
b22c3ed
 
 
 
 
 
 
 
fb13986
7423a30
 
b22c3ed
 
 
 
 
 
4cd087b
b22c3ed
4cd087b
b22c3ed
 
 
 
 
fb13986
b22c3ed
 
 
 
 
 
 
fb13986
b22c3ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fb13986
 
b22c3ed
 
 
 
 
fb13986
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d556b89
 
8c25b3c
 
 
 
 
 
 
 
 
 
 
 
 
 
a718485
8c25b3c
a718485
 
 
 
d556b89
 
 
df2588a
 
d556b89
b22c3ed
d65cd03
d556b89
b22c3ed
 
 
 
d556b89
b22c3ed
 
 
 
 
d556b89
fb13986
d556b89
d65cd03
b22c3ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d556b89
b22c3ed
 
 
 
 
 
a718485
b22c3ed
d556b89
 
 
 
 
fb13986
 
 
 
 
 
 
 
 
 
 
 
 
 
b22c3ed
d556b89
 
 
 
a718485
 
 
 
d556b89
b22c3ed
 
d556b89
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html>
<head>
    <title>Image Generator</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.5.0/dist/css/bootstrap.min.css">
    <style>
        body {
            background-color: #000000;
            color: #ffffff;
            font-family: Arial, sans-serif;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 40px;
            background-color: transparent; /* Updated */
            border-radius: 10px;
            box-shadow: none; /* Updated */
        }

        h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #ffffff;
            font-weight: 600;
            letter-spacing: 1px;
        }

        label {
            font-weight: bold;
            margin-bottom: 10px;
            color: #ffffff;
        }

        textarea,
        select {
            width: 100%;
            padding: 12px;
            border-radius: 5px;
            border: 1px solid #dddddd;
            font-size: 16px;
            margin-bottom: 20px;
            color: #555555;
            background-color: #f9f9f9;
        }

        button[type="submit"] {
            background-color: #ff3366;
            color: #ffffff;
            padding: 12px 24px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
            display: block;
            margin: 0 auto;
        }

        button[type="submit"]:hover {
            background-color: #cc0052;
        }
        
        .social-buttons {
            text-align: center;
            margin-top: 20px;
        }

        .social-button {
            display: inline-block;
            margin-right: 10px;
        }

        .social-icon {
            color: #ffffff;
            font-size: 24px;
            transition: color 0.3s ease;
        }

        .social-icon:hover {
            color: #ff3366;
        }
        
        .generating-message {
        text-align: center;
        margin-bottom: 20px;
        color: #ffffff;
        display: none;
        font-size: 24px;
        animation: fade 1s ease-in-out infinite alternate;
    }

    @keyframes fade {
        0% {
            opacity: 0.3;
        }
        100% {
            opacity: 1;
        }
    }
        
        .disabled-button {
            cursor: not-allowed;
            opacity: 0.6;
        }
        
        footer {
            padding: 20px;
            text-align: center;
        }
    </style>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> 
    <!-- Added Font Awesome CDN -->
</head>
<body>
    <div class="container">
        <h1 class="mt-5">Image Generator</h1>
        <form action="/generate" method="POST" onsubmit="showGeneratingMessage()">
            <div class="mb-3">
                <label for="prompt" class="form-label">Prompt:</label>
                <textarea id="prompt" name="prompt" class="form-control" rows="4" cols="50"></textarea>
            </div>
            <div class="mb-3">
                <label for="style" class="form-label">Choose Style:</label>
                <select id="style" name="style" class="form-select">               
                    <option value="IMAGINE_V4_Beta">IMAGINE_V4_Beta</option>
                <option value="IMAGINE_V3">IMAGINE_V3</option>
                <option value="IMAGINE_V1">IMAGINE_V1</option>
                <option value="ANIME_V2">ANIME_V2</option>
                <option value="PORTRAIT">PORTRAIT</option>
                <option value="REALISTIC">REALISTIC</option>
                <option value="ANIME">ANIME</option>
                <option value="COSMIC">COSMIC</option>
                <option value="COMIC_V2">COMIC_V2</option>
                <option value="MARBLE">MARBLE</option>
                <option value="MINECRAFT">MINECRAFT</option>
                <option value="DISNEY">DISNEY</option>
                <option value="MACRO_PHOTOGRAPHY">MACRO_PHOTOGRAPHY</option>
                <option value="GTA">GTA</option>
                <option value="STUDIO_GHIBLI">STUDIO_GHIBLI</option>
                <option value="DYSTOPIAN">DYSTOPIAN</option>
                <option value="STAINED_GLASS">STAINED_GLASS</option>
                <option value="PRODUCT_PHOTOGRAPHY">PRODUCT_PHOTOGRAPHY</option>
                <option value="PSYCHEDELIC">PSYCHEDELIC</option>
                <option value="SURREALISM">SURREALISM</option>
                <option value="GRAFFITI">GRAFFITI</option>
                <option value="GHOTIC">GHOTIC</option>
                <option value="RAINBOW">RAINBOW</option>
                <option value="AVATAR">AVATAR</option>
                <option value="PALETTE_KNIFE">PALETTE_KNIFE</option>
                <option value="CANDYLAND">CANDYLAND</option>
                <option value="CLAYMATION">CLAYMATION</option>
                <option value="EUPHORIC">EUPHORIC</option>
                <option value="MEDIEVAL">MEDIEVAL</option>
                <option value="ORIGAMI">ORIGAMI</option>
                <option value="POP_ART">POP_ART</option>
                <option value="POP_ART_2">POP_ART_2</option>
                <option value="PATTERN">PATTERN</option>
                <option value="CHROMATIC">CHROMATIC</option>
                <option value="CLIP_ART">CLIP_ART</option>
                <option value="RENAISSANCE">RENAISSANCE</option>
                <option value="FANTASY">FANTASY</option>
                <option value="EXTRA_TERRESTRIAL">EXTRA_TERRESTRIAL</option>
                <option value="WOOLITIZE">WOOLITIZE</option>
                <option value="NEO_FAUVISM">NEO_FAUVISM</option>
                <option value="AMAZONIAN">AMAZONIAN</option>
                <option value="SHAMROCK_FANTASY">SHAMROCK_FANTASY</option>
                <option value="ABSTRACT_VIBRANT">ABSTRACT_VIBRANT</option>
                <option value="NEON">NEON</option>
                <option value="CUBISM">CUBISM</option>
                <option value="BAUHAUS">BAUHAUS</option>
                <option value="ROCOCCO">ROCOCCO</option>
                <option value="HAUNTED">HAUNTED</option>
                <option value="LOGO">LOGO</option>
                <option value="WATERBENDER">WATERBENDER</option>
                <option value="FIREBENDER">FIREBENDER</option>
                </select>
            </div>
            <div class="mb-3">
                <label for="ratio" class="form-label">Choose Ratio:</label>
                <select id="ratio" name="ratio" class="form-select">
                    <option value="RATIO_4X3">4:3</option>
                    <option value="RATIO_1X1">1:1</option>
                    <option value="RATIO_9X16">9:16</option>
                    <option value="RATIO_16X9">16:9</option>
                    <option value="RATIO_3X2">3:2</option>
                </select>
            </div>
            <button type="submit" class="btn btn-primary" id="generate-button">Generate Image</button>
        </form>
        
        <div class="generating-message" id="generating-message">
            Generating image... Please wait.
        </div>
        
        <div class="social-buttons">
            <span class="social-button">
                <a href="https://www.facebook.com/octaeldrith" class="social-icon"><i class="fab fa-facebook-f"></i></a>
            </span>
            <span class="social-button">
                <a href="https://twitter.com/ims_eldrith" class="social-icon"><i class="fab fa-twitter"></i></a>
            </span>
            <span class="social-button">
                <a href="https://instagram.com/ims_eldrith" class="social-icon"><i class="fab fa-instagram"></i></a>
            </span>
            <span class="social-button">
                <a href="https://www.linkedin.com/in/ashiq-hussain" class="social-icon"><i class="fab fa-linkedin"></i></a>
            </span>
        </div>
    </div>
    <footer>
        <p>Built with ❤️ by <a href="https://codegenius.me" style="color: red;">Ashiq Hussain Mir</a></p>
    </footer>
    <script>
        function showGeneratingMessage() {
            document.getElementById('generating-message').style.display = 'block';
            document.getElementById('generate-button').classList.add('disabled-button');
        }
    </script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.5.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>