Skip to content

Commit f62e7ad

Browse files
committed
style: format AIGeneratorModal.tsx with prettier
1 parent 6014895 commit f62e7ad

File tree

1 file changed

+50
-18
lines changed

1 file changed

+50
-18
lines changed

components/AIGeneratorModal.tsx

Lines changed: 50 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ const AIGeneratorModal: React.FC<AIGeneratorModalProps> = ({
103103
userInfo.push(`- Social networks:\n${validUrls.map((url) => ` • ${url}`).join('\n')}`);
104104
}
105105

106-
userInfo.push(`- Desired visual style: ${VISUAL_STYLES.find((s) => s.value === visualStyle)?.label || visualStyle}`);
106+
userInfo.push(
107+
`- Desired visual style: ${VISUAL_STYLES.find((s) => s.value === visualStyle)?.label || visualStyle}`
108+
);
107109

108110
if (customRequest.trim()) {
109111
userInfo.push(`- Specific request: ${customRequest.trim()}`);
@@ -238,49 +240,73 @@ x, instagram, tiktok, youtube, github, gitlab, linkedin, facebook, twitch, dribb
238240
239241
Apply these style guidelines:
240242
241-
${visualStyle === 'modern' ? `### Modern Style
243+
${
244+
visualStyle === 'modern'
245+
? `### Modern Style
242246
- Theme: "light"
243247
- Clean, contemporary look with subtle contrasts
244248
- Primary colors: violet, indigo, blue
245249
- Backgrounds: bg-white, bg-gray-100 for light blocks, bg-gray-900 for accent
246250
- Use subtle gradients: "linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
247-
- Rounded corners, subtle shadows` : ''}
248-
${visualStyle === 'minimalist' ? `### Minimalist Style
251+
- Rounded corners, subtle shadows`
252+
: ''
253+
}
254+
${
255+
visualStyle === 'minimalist'
256+
? `### Minimalist Style
249257
- Theme: "light"
250258
- Simple, clean, lots of whitespace
251259
- Primary colors: gray, slate
252260
- Backgrounds: mostly bg-white, bg-gray-50, with one or two bg-gray-900 accents
253261
- Avoid gradients, keep it simple
254-
- Muted, neutral palette` : ''}
255-
${visualStyle === 'colorful' ? `### Colorful Style
262+
- Muted, neutral palette`
263+
: ''
264+
}
265+
${
266+
visualStyle === 'colorful'
267+
? `### Colorful Style
256268
- Theme: "light"
257269
- Vibrant, playful, dynamic
258270
- Mix multiple colors: pink, violet, cyan, amber, emerald
259271
- Backgrounds: bg-pink-500, bg-violet-500, bg-cyan-500, bg-amber-500
260272
- Use bold gradients: "linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"
261-
- High contrast, energetic feel` : ''}
262-
${visualStyle === 'dark' ? `### Dark Style
273+
- High contrast, energetic feel`
274+
: ''
275+
}
276+
${
277+
visualStyle === 'dark'
278+
? `### Dark Style
263279
- Theme: "dark"
264280
- Elegant dark mode
265281
- backgroundColor: "#0f0f0f" or "#1a1a2e"
266282
- Primary colors: violet, purple, cyan for accents on dark
267283
- Backgrounds: bg-gray-900, bg-slate-800, bg-gray-800
268284
- Text: text-white, text-gray-100
269-
- Use glowing gradients: "linear-gradient(135deg, #1a1a2e 0%, #16213e 100%)"` : ''}
270-
${visualStyle === 'professional' ? `### Professional Style
285+
- Use glowing gradients: "linear-gradient(135deg, #1a1a2e 0%, #16213e 100%)"`
286+
: ''
287+
}
288+
${
289+
visualStyle === 'professional'
290+
? `### Professional Style
271291
- Theme: "light"
272292
- Corporate, serious, trustworthy
273293
- Primary colors: blue, slate, gray
274294
- Backgrounds: bg-blue-500, bg-slate-800, bg-white
275295
- Clean lines, no playful elements
276-
- Conservative color choices` : ''}
277-
${visualStyle === 'playful' ? `### Playful Style
296+
- Conservative color choices`
297+
: ''
298+
}
299+
${
300+
visualStyle === 'playful'
301+
? `### Playful Style
278302
- Theme: "light"
279303
- Fun, creative, quirky
280304
- Primary colors: pink, amber, cyan, violet
281305
- Backgrounds: bg-pink-500, bg-amber-100, bg-cyan-500
282306
- Use fun gradients: "linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%)"
283-
- Mix colors freely, be creative!` : ''}
307+
- Mix colors freely, be creative!`
308+
: ''
309+
}
284310
285311
---
286312
@@ -556,7 +582,9 @@ If data needs confirmation → First ask your questions, then provide the JSON a
556582
<div className="text-sm text-violet-700">
557583
<p className="font-medium">Use your favorite AI!</p>
558584
<p className="text-violet-600 mt-0.5">
559-
This feature works with any AI chat: ChatGPT, Claude, Gemini, Mistral, Llama, or any other. Copy the prompt and paste it into your preferred AI assistant.
585+
This feature works with any AI chat: ChatGPT, Claude, Gemini, Mistral,
586+
Llama, or any other. Copy the prompt and paste it into your preferred AI
587+
assistant.
560588
</p>
561589
</div>
562590
</div>
@@ -710,9 +738,13 @@ If data needs confirmation → First ask your questions, then provide the JSON a
710738
<div className="flex items-start gap-3 p-4 bg-amber-50 rounded-xl border border-amber-200">
711739
<AlertTriangle size={20} className="text-amber-500 shrink-0 mt-0.5" />
712740
<div>
713-
<p className="text-sm font-semibold text-amber-800">Warning: This will replace ALL your data</p>
741+
<p className="text-sm font-semibold text-amber-800">
742+
Warning: This will replace ALL your data
743+
</p>
714744
<p className="text-sm text-amber-700 mt-1">
715-
Importing this JSON will create a <strong>new Bento</strong> and replace your current work. Make sure to export/save your current Bento first if you want to keep it.
745+
Importing this JSON will create a <strong>new Bento</strong> and replace
746+
your current work. Make sure to export/save your current Bento first if you
747+
want to keep it.
716748
</p>
717749
</div>
718750
</div>
@@ -736,8 +768,8 @@ If data needs confirmation → First ask your questions, then provide the JSON a
736768
jsonError
737769
? 'border-red-300 bg-red-50'
738770
: importSuccess
739-
? 'border-green-300 bg-green-50'
740-
: 'border-gray-200'
771+
? 'border-green-300 bg-green-50'
772+
: 'border-gray-200'
741773
}`}
742774
/>
743775
</div>

0 commit comments

Comments
 (0)