|
| 1 | +import { motion } from 'framer-motion' |
1 | 2 | import AIContent from '../components/ai/AIContent' |
2 | 3 |
|
| 4 | +const container = { |
| 5 | + hidden: { opacity: 0 }, |
| 6 | + show: { |
| 7 | + opacity: 1, |
| 8 | + transition: { |
| 9 | + staggerChildren: 0.1 |
| 10 | + } |
| 11 | + } |
| 12 | +} |
| 13 | + |
| 14 | +const item = { |
| 15 | + hidden: { opacity: 0, y: 20 }, |
| 16 | + show: { opacity: 1, y: 0 } |
| 17 | +} |
| 18 | + |
3 | 19 | export default function AI() { |
4 | 20 | return ( |
5 | 21 | <div className='bg-white'> |
6 | 22 | <div className='modern-container'> |
7 | 23 | <div className='py-16 sm:py-24'> |
8 | | - <div className='text-center'> |
| 24 | + <motion.div |
| 25 | + initial={{ opacity: 0, y: 20 }} |
| 26 | + animate={{ opacity: 1, y: 0 }} |
| 27 | + className='text-center' |
| 28 | + > |
9 | 29 | <h1 className='text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl'> |
10 | 30 | AI Development <span className='text-modern-purple'>Tools</span> |
11 | 31 | </h1> |
12 | 32 | <p className='mx-auto mt-6 max-w-2xl text-lg text-gray-600'> |
13 | 33 | Discover powerful AI tools and best practices to enhance your development workflow. |
14 | 34 | </p> |
15 | | - </div> |
| 35 | + </motion.div> |
16 | 36 |
|
17 | | - <div className='mt-16 flex justify-center'> |
18 | | - <AIContent /> |
19 | | - </div> |
| 37 | + <motion.div |
| 38 | + variants={container} |
| 39 | + initial="hidden" |
| 40 | + animate="show" |
| 41 | + className='mt-16 flex justify-center' |
| 42 | + > |
| 43 | + <motion.div variants={item} className='w-full max-w-4xl'> |
| 44 | + <AIContent /> |
| 45 | + </motion.div> |
| 46 | + </motion.div> |
20 | 47 |
|
21 | | - <div className='mt-16 rounded-lg bg-gray-50 p-8 shadow-sm'> |
22 | | - <h2 className='mb-6 text-2xl font-bold text-gray-900'>Best Practices for Using AI Tools</h2> |
23 | | - <ul className='grid gap-4 text-gray-600 sm:grid-cols-2'> |
24 | | - <li className='flex items-start'> |
25 | | - <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
26 | | - <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
27 | | - </svg> |
28 | | - Always review and understand AI-generated code |
29 | | - </li> |
30 | | - <li className='flex items-start'> |
31 | | - <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
32 | | - <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
33 | | - </svg> |
34 | | - Use AI tools as assistants, not replacements |
35 | | - </li> |
36 | | - <li className='flex items-start'> |
37 | | - <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
38 | | - <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
39 | | - </svg> |
40 | | - Keep security in mind when sharing code |
41 | | - </li> |
42 | | - <li className='flex items-start'> |
43 | | - <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
44 | | - <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
45 | | - </svg> |
46 | | - Verify licenses and terms of use |
47 | | - </li> |
48 | | - </ul> |
49 | | - </div> |
| 48 | + <motion.div |
| 49 | + variants={container} |
| 50 | + initial="hidden" |
| 51 | + animate="show" |
| 52 | + className='mt-16 flex justify-center' |
| 53 | + > |
| 54 | + <motion.div variants={item} className='w-full max-w-4xl'> |
| 55 | + <div className='rounded-lg bg-gray-50 p-8 shadow-sm'> |
| 56 | + <h2 className='mb-6 text-2xl font-bold text-gray-900'>Best Practices for Using AI Tools</h2> |
| 57 | + <ul className='grid gap-4 text-gray-600 sm:grid-cols-2'> |
| 58 | + <li className='flex items-start'> |
| 59 | + <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 60 | + <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
| 61 | + </svg> |
| 62 | + Always review and understand AI-generated code |
| 63 | + </li> |
| 64 | + <li className='flex items-start'> |
| 65 | + <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 66 | + <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
| 67 | + </svg> |
| 68 | + Test AI suggestions thoroughly before implementation |
| 69 | + </li> |
| 70 | + <li className='flex items-start'> |
| 71 | + <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 72 | + <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
| 73 | + </svg> |
| 74 | + Use AI as a learning tool, not just a code generator |
| 75 | + </li> |
| 76 | + <li className='flex items-start'> |
| 77 | + <svg className="h-6 w-6 mr-2 text-modern-purple flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 78 | + <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" /> |
| 79 | + </svg> |
| 80 | + Keep security and privacy in mind when sharing code |
| 81 | + </li> |
| 82 | + </ul> |
| 83 | + </div> |
| 84 | + </motion.div> |
| 85 | + </motion.div> |
50 | 86 | </div> |
51 | 87 | </div> |
52 | 88 | </div> |
53 | 89 | ) |
54 | 90 | } |
| 91 | + |
| 92 | + |
0 commit comments