stwórz aplikację która na podstawie podanego trendu + opisu czego dotyczny stworzy…
- User
stwórz aplikację która na podstawie podanego trendu + opisu czego dotyczny stworzy prompt do generowania grafiki
Assistant
Oto aplikacja do generowania promptów graficznych na podstawie trendu i opisu:
<!DOCTYPE html> <html lang="pl"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Generator Promptów Graficznych</title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; } .container { max-width: 800px; margin: 0 auto; background: white; border-radius: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); padding: 40px; } h1 { text-align: center; color: #333; margin-bottom: 30px; font-size: 2.5em; background: linear-gradient(45deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .form-group { margin-bottom: 25px; } label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; } input, select, textarea { width: 100%; padding: 12px; border: 2px solid #e1e1e1; border-radius: 8px; font-size: 16px; transition: border-color 0.3s; } input:focus, select:focus, textarea:focus { outline: none; border-color: #667eea; } textarea { height: 100px; resize: vertical; } .trend-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; } .trend-btn { padding: 10px 15px; border: 2px solid #e1e1e1; background: white; border-radius: 25px; cursor: pointer; transition: all 0.3s; text-align: center; font-size: 14px; } .trend-btn:hover { border-color: #667eea; background: #f8f9ff; } .trend-btn.active { background: #667eea; color: white; border-color: #667eea; } .generate-btn { background: linear-gradient(45deg, #667eea, #764ba2); color: white; border: none; padding: 15px 30px; border-radius: 25px; font-size: 18px; cursor: pointer; transition: transform 0.3s; display: block; margin: 30px auto; } .generate-btn:hover { transform: translateY(-2px); } .result { background: #f8f9ff; border: 2px solid #667eea; border-radius: 10px; padding: 20px; margin-top: 30px; display: none; } .result.show { display: block; } .prompt-output { background: white; padding: 15px; border-radius: 8px; border-left: 4px solid #667eea; margin: 15px 0; font-family: 'Courier New', monospace; line-height: 1.6; } .copy-btn { background: #28a745; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-size: 14px; margin-top: 10px; } .copy-btn:hover { background: #218838; } .advanced-options { background: #f8f9ff; border-radius: 10px; padding: 20px; margin: 20px 0; } .options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; } </style> </head> <body> <div class="container"> <h1>🎨 Generator Promptów Graficznych</h1> <form id="promptForm"> <div class="form-group"> <label for="description">Opis grafiki:</label> <textarea id="description" placeholder="np. Logo dla firmy kosmetycznej, plakat na event muzyczny, infografika o zdrowym odżywianiu..."></textarea> </div> <div class="form-group"> <label>Wybierz trend wizualny:</label> <div class="trend-buttons"> <button type="button" class="trend-btn" data-trend="minimalizm">Minimalizm</button> <button type="button" class="trend-btn" data-trend="cyberpunk">Cyberpunk</button> <button type="button" class="trend-btn" data-trend="vintage">Vintage</button> <button type="button" class="trend-btn" data-trend="neon">Neon</button> <button type="button" class="trend-btn" data-trend="watercolor">Akwarela</button> <button type="button" class="trend-btn" data-trend="geometric">Geometryczny</button> <button type="button" class="trend-btn" data-trend="handdrawn">Ręcznie rysowany</button> <button type="button" class="trend-btn" data-trend="3d">3D</button> <button type="button" class="trend-btn" data-trend="flat">Flat Design</button> <button type="button" class="trend-btn" data-trend="gothic">Gothic</button> </div> </div> <div class="advanced-options"> <h3>Opcje zaawansowane:</h3> <div class="options-grid"> <div class="form-group"> <label for="format">Format:</label> <select id="format"> <option value="square">Kwadrat (1:1)</option> <option value="landscape">Poziomy (16:9)</option> <option value="portrait">Pionowy (9:16)</option> <option value="wide">Szeroki (21:9)</option> </select> </div> <div class="form-group"> <label for="style">Styl artystyczny:</label> <select id="style"> <option value="">Dowolny</option> <option value="photorealistic">Fotorealistyczny</option> <option value="illustration">Ilustracja</option> <option value="digital-art">Sztuka cyfrowa</option> <option value="painting">Malarstwo</option> <option value="sketch">Szkic</option> </select> </div> <div class="form-group"> <label for="mood">Nastrój:</label> <select id="mood"> <option value="">Dowolny</option> <option value="energetic">Energetyczny</option> <option value="calm">Spokojny</option> <option value="professional">Profesjonalny</option> <option value="playful">Zabawny</option> <option value="elegant">Elegancki</option> <option value="bold">Odważny</option> </select> </div> <div class="form-group"> <label for="colors">Paleta kolorów:</label> <select id="colors"> <option value="">Dowolna</option> <option value="monochrome">Monochromatyczna</option> <option value="warm">Ciepłe kolory</option> <option value="cool">Chłodne kolory</option> <option value="pastel">Pastele</option> <option value="vibrant">Żywe kolory</option> <option value="earth">Ziemiste</option> </select> </div> </div> </div> <button type="submit" class="generate-btn">🚀 Generuj Prompt</button> </form> <div id="result" class="result"> <h3>Wygenerowany prompt:</h3> <div id="mainPrompt" class="prompt-output"></div> <button class="copy-btn" onclick="copyPrompt('mainPrompt')">📋 Kopiuj główny prompt</button> <h4>Prompt negatywny (czego unikać):</h4> <div id="negativePrompt" class="prompt-output"></div> <button class="copy-btn" onclick="copyPrompt('negativePrompt')">📋 Kopiuj negatywny prompt</button> <h4>Parametry techniczne:</h4> <div id="technicalParams" class="prompt-output"></div> <button class="copy-btn" onclick="copyPrompt('technicalParams')">📋 Kopiuj parametry</button> </div> </div> <script> const trends = { minimalizm: { keywords: "clean, simple, minimal, white space, typography, geometric shapes, subtle shadows", colors: "monochromatic, white, black, grey, single accent color", style: "minimal design, clean lines, negative space, swiss design", negative: "cluttered, busy, ornate, decorative, complex patterns" }, cyberpunk: { keywords: "neon lights, digital, futuristic, glitch, matrix, holographic, chrome, technology", colors: "neon pink, electric blue, purple, green, black, metallic", style: "digital art, sci-fi, dystopian, high contrast, glowing effects", negative: "organic, natural, vintage, soft, pastel, traditional" }, vintage: { keywords: "retro, classic, aged, worn, nostalgic, antique, old-fashioned", colors: "sepia, muted, earth tones, faded, warm browns, cream", style: "vintage poster, retro illustration, aged paper texture, classic typography", negative: "modern, digital, bright, neon, contemporary, sharp" }, neon: { keywords: "glowing, bright, electric, vibrant, luminous, fluorescent, striking", colors: "neon pink, electric blue, lime green, bright yellow, magenta", style: "80s aesthetic, synthwave, retro-futuristic, high contrast", negative: "dull, muted, dark, subtle, pastel, monochrome" }, watercolor: { keywords: "soft, flowing, organic, transparent, artistic, hand-painted, delicate", colors: "soft pastels, flowing gradients, transparent layers, natural hues", style: "watercolor painting, artistic, organic shapes, soft edges", negative: "sharp, geometric, digital, hard edges, solid colors, mechanical" }, geometric: { keywords: "shapes, patterns, angular, mathematical, structured, symmetrical", colors: "bold contrasts, primary colors, complementary schemes", style: "geometric design, abstract, mathematical precision, clean lines", negative: "organic, curved, flowing, natural, random, asymmetrical" }, handdrawn: { keywords: "sketchy, artistic, organic, imperfect, human touch, crafted", colors: "natural, varied, artistic, hand-mixed", style: "hand-drawn illustration, sketch style, artistic imperfections", negative: "perfect, digital, mechanical, computer-generated, sterile" }, "3d": { keywords: "dimensional, depth, realistic, rendered, volumetric, shadows", colors: "realistic lighting, ambient occlusion, material properties", style: "3D render, volumetric lighting, realistic materials, depth of field", negative: "flat, 2D, simple, cartoon, basic shading" }, flat: { keywords: "simple, clean, minimal, solid colors, no gradients, geometric", colors: "solid colors, no gradients, bright, contrasting", style: "flat design, material design, simple shapes, clean interface", negative: "3D, gradients, shadows, textures, ornate, decorative" }, gothic: { keywords: "dark, dramatic, ornate, mysterious, elegant, architectural", colors: "black, deep purple, dark red, silver, gold accents", style: "gothic architecture, ornate details, dramatic lighting, medieval", negative: "bright, cheerful, simple, minimal, modern, colorful" } }; const formatSettings = { square: "1:1 aspect ratio, square format", landscape: "16:9 aspect ratio, landscape orientation", portrait: "9:16 aspect ratio, portrait orientation", wide: "21:9 aspect ratio, ultra-wide format" }; let selectedTrend = ''; // Obsługa przycisków trendów document.querySelectorAll('.trend-btn').forEach(btn => { btn.addEventListener('click', function() { document.querySelectorAll('.trend-btn').forEach(b => b.classList.remove('active')); this.classList.add('active'); selectedTrend = this.dataset.trend; }); }); // Obsługa formularza document.getElementById('promptForm').addEventListener('submit', function(e) { e.preventDefault(); generatePrompt(); }); function generatePrompt() { const description = document.getElementById('description').value; const format = document.getElementById('format').value; const style = document.getElementById('style').value; const mood = document.getElementById('mood').value; const colors = document.getElementById('colors').value; if (!description || !selectedTrend) { alert('Proszę wypełnić opis i wybrać trend!'); return; } const trend = trends[selectedTrend]; // Główny prompt let mainPrompt = `${description}, ${trend.style}`; if (style) mainPrompt += `, ${style}`; if (mood) mainPrompt += `, ${mood} mood`; if (colors) mainPrompt += `, ${colors} color palette`; else mainPrompt += `, ${trend.colors}`; mainPrompt += `, ${trend.keywords}`; mainPrompt += `, high quality, detailed, professional`; // Negatywny prompt let negativePrompt = `${trend.negative}, low quality, blurry, pixelated, amateur, ugly, distorted, watermark, signature, text overlay, copyright, logo in corner`; // Parametry techniczne let technicalParams = `Format: ${formatSettings[format]}\n`; technicalParams += `Quality: High resolution, professional grade\n`; technicalParams += `Style: ${selectedTrend} trend\n`; technicalParams += `Rendering: Clean, sharp, well-lit`; // Wyświetlanie wyników document.getElementById('mainPrompt').textContent = mainPrompt; document.getElementById('negativePrompt').textContent = negativePrompt; document.getElementById('technicalParams').textContent = technicalParams; document.getElementById('result').classList.add('show'); // Przewijanie do wyników document.getElementById('result').scrollIntoView({ behavior: 'smooth' }); } function copyPrompt(elementId) { const text = document.getElementById(elementId).textContent; navigator.clipboard.writeText(text).then(function() { // Zmiana tekstu przycisku na chwilę const btn = event.target; const originalText = btn.textContent; btn.textContent = '✅ Skopiowano!'; setTimeout(() => { btn.textContent = originalText; }, 2000); }); } </script> </body> </html>Funkcje aplikacji:
🎯 Główne możliwości:
- 10 trendów wizualnych (minimalizm, cyberpunk, vintage, neon, akwarela, geometryczny, ręcznie rysowany, 3D, flat design, gothic)
- Automatyczne generowanie promptów na podstawie opisu + trendu
- 3 typy outputu: główny prompt, negatywny prompt, parametry techniczne
- Opcje zaawansowane: format, styl, nastrój, paleta kolorów
🔧 Jak używać:
- Wpisz opis grafiki (np. "logo dla pizzerii")
- Wybierz trend wizualny
- Ustaw opcje zaawansowane (opcjonalnie)
- Kliknij "Generuj Prompt"
- Kopiuj gotowe prompty do AI (DALL-E, Midjourney, Stable Diffusion)
📋 Przykład wygenerowanego promptu:
Wejście: "Logo dla firmy kosmetycznej" + trend "minimalizm"
Wyjście: "Logo dla firmy kosmetycznej, minimal design, clean lines, negative space, swiss design, professional mood, monochromatic color palette, clean, simple, minimal, white space, typography, geometric shapes, subtle shadows, high quality, detailed, professional"🚀 Rozszerzenia do dodania:
- Import/eksport ulubionych kombinacji
- Historia wygenerowanych promptów
- Integracja z API różnych platform AI
- Podgląd przykładowych rezultatów
- Tryb batch (wiele promptów naraz)
Chcesz, żebym dodał jakieś konkretne funkcje lub dostosował aplikację do Twoich potrzeb?