feat: add AI Prompts section, database model, public pages, and admin CRUD

This commit is contained in:
AyrisAI
2026-07-23 17:38:06 +03:00
parent bd543c3bda
commit bf4e0da112
8 changed files with 762 additions and 7 deletions
+1
View File
@@ -57,6 +57,7 @@ export function Footer({ locale }: { locale: string }) {
<ul className="space-y-2 text-xs">
<li><Link href={`/${locale}/lessons`} className="hover:text-red-400 transition-colors">All YouTube Lessons</Link></li>
<li><Link href={`/${locale}/cheatsheets`} className="hover:text-red-400 transition-colors">Quick Cheatsheets</Link></li>
<li><Link href={`/${locale}/prompts`} className="hover:text-red-400 transition-colors">AI Prompts & Templates</Link></li>
<li><Link href={`/${locale}/contact`} className="hover:text-red-400 transition-colors">Contact & Suggestions</Link></li>
</ul>
</div>
+2 -1
View File
@@ -3,7 +3,7 @@
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { useTranslations } from 'next-intl';
import { Code2, BookOpen, Mail, Sparkles } from 'lucide-react';
import { Code2, BookOpen, Mail, Sparkles, Terminal } from 'lucide-react';
export function Navbar({ locale }: { locale: string }) {
const t = useTranslations('nav');
@@ -13,6 +13,7 @@ export function Navbar({ locale }: { locale: string }) {
{ href: `/${locale}`, label: t('home'), icon: Sparkles },
{ href: `/${locale}/lessons`, label: t('lessons'), icon: Code2 },
{ href: `/${locale}/cheatsheets`, label: t('cheatsheets'), icon: BookOpen },
{ href: `/${locale}/prompts`, label: 'Prompts', icon: Terminal },
{ href: `/${locale}/contact`, label: t('contact'), icon: Mail },
];