- Fixed navigation links to work properly - Removed card/box styling from sections - Created unified center column layout - Reduced project grid hover zoom effect - Updated color scheme to be more modern (black/white/gray) - Made About and Story sections full-width - Improved overall layout consistency 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
84 lines
2.0 KiB
TypeScript
84 lines
2.0 KiB
TypeScript
import { PrismaClient } from '@prisma/client'
|
|
import bcrypt from 'bcryptjs'
|
|
|
|
const prisma = new PrismaClient()
|
|
|
|
async function main() {
|
|
// Create initial admin user
|
|
const hashedPassword = await bcrypt.hash('biohazardadmin2025!', 10)
|
|
|
|
const adminUser = await prisma.user.upsert({
|
|
where: { email: 'admin@biohazardvfx.com' },
|
|
update: {},
|
|
create: {
|
|
email: 'admin@biohazardvfx.com',
|
|
name: 'Biohazard Admin',
|
|
password: hashedPassword,
|
|
role: 'ADMIN',
|
|
},
|
|
})
|
|
|
|
// Seed team members
|
|
const teamMembers = [
|
|
{
|
|
name: 'Nicholai Vogel',
|
|
title: 'Founder & CEO',
|
|
quote: '"I just work here."',
|
|
image: '/images/nicholai.jpg',
|
|
instagram: 'https://www.instagram.com/nicholai.exe/',
|
|
},
|
|
{
|
|
name: 'DAVANÉ',
|
|
title: 'Co-Founder',
|
|
quote: '"The Executive"',
|
|
image: '/images/davane.jpg',
|
|
instagram: 'https://www.instagram.com/davaneh/',
|
|
},
|
|
{
|
|
name: 'Parth Gupta',
|
|
title: 'Co-Founder',
|
|
quote: '"Hates Matchmove"',
|
|
image: '/images/parth.jpg',
|
|
instagram: 'https://www.instagram.com/nuke_fx/',
|
|
},
|
|
]
|
|
|
|
for (const member of teamMembers) {
|
|
await prisma.teamMember.upsert({
|
|
where: { name: member.name },
|
|
update: member,
|
|
create: member,
|
|
})
|
|
}
|
|
|
|
// Seed initial FAQs
|
|
const faqs = [
|
|
{
|
|
question: 'What services do you offer?',
|
|
answer: 'We provide comprehensive VFX services including supervision, 3D animation, compositing, and post-production finishing.',
|
|
},
|
|
{
|
|
question: 'How long have you been in business?',
|
|
answer: 'Biohazard VFX was founded in 2023, bringing together experienced VFX artists from around the world.',
|
|
},
|
|
]
|
|
|
|
for (const faq of faqs) {
|
|
await prisma.fAQ.upsert({
|
|
where: { question: faq.question },
|
|
update: faq,
|
|
create: faq,
|
|
})
|
|
}
|
|
|
|
console.log('Seed data created successfully')
|
|
}
|
|
|
|
main()
|
|
.catch((e) => {
|
|
console.error(e)
|
|
process.exit(1)
|
|
})
|
|
.finally(async () => {
|
|
await prisma.$disconnect()
|
|
}) |