feat: add AI Prompts section, database model, public pages, and admin CRUD
This commit is contained in:
@@ -240,6 +240,32 @@ async function main() {
|
||||
}
|
||||
});
|
||||
|
||||
// Clear existing prompts
|
||||
await db.prompt.deleteMany();
|
||||
|
||||
// Create Seed Prompts
|
||||
await db.prompt.create({
|
||||
data: {
|
||||
slug: 'fullstack-nextjs-architect-prompt',
|
||||
title: 'Full-Stack Next.js 16 System Architect Prompt',
|
||||
category: 'System Architecture',
|
||||
description: 'System prompt to instruct AI agents to build production-ready Next.js 16 App Router code with Server Actions and Prisma.',
|
||||
content: `You are a Senior Next.js 16 Architect. Always use TypeScript strict mode, App Router, proxy.ts for middleware, Server Actions with Zod validation, and Prisma ORM. Never write client components unless interactivity (onClick, useState) is required.`,
|
||||
tags: ['Next.js', 'System Prompt', 'AI Architecture'],
|
||||
}
|
||||
});
|
||||
|
||||
await db.prompt.create({
|
||||
data: {
|
||||
slug: 'ui-ux-design-engineer-prompt',
|
||||
title: 'Dark Mode Glassmorphism UI/UX Designer Prompt',
|
||||
category: 'UI & Frontend',
|
||||
description: 'Instructs AI to design modern dark-mode interfaces with Tailwind CSS v4, subtle glows, and micro-animations.',
|
||||
content: `Act as a Lead UI/UX Engineer specializing in sleek dark mode interfaces. Use HSL/OKLCH color palettes, slate-950 backgrounds, red-500/10 glows, rounded-2xl containers, and Framer Motion micro-interactions. Avoid generic colors or white backgrounds.`,
|
||||
tags: ['UI/UX', 'Tailwind CSS', 'Design System'],
|
||||
}
|
||||
});
|
||||
|
||||
console.log('Seeding completed successfully!');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user