fork download
  1. import { Card, CardContent } from '@/components/ui/card';
  2. import { Button } from '@/components/ui/button';
  3. import { useState } from 'react';
  4.  
  5. export default function DigitalMarketingSlide() {
  6. const [slides, setSlides] = useState([
  7. { title: 'Introduction to Smart Backhaul', content: 'Overview of the platform and its services' },
  8. { title: 'Digital Marketing Strategy', content: 'Key strategies for commercialization and reaching target audience' },
  9. { title: 'Omni-Channel Marketing', content: 'Integrating multiple marketing channels for better engagement' },
  10. { title: 'AI Transport Matching', content: 'How AI is used in the platform for optimizing logistics' },
  11. { title: 'Conclusion', content: 'Summarizing the benefits and impact of Smart Backhaul in the industry' }
  12. ]);
  13.  
  14. return (
  15. <div className='grid gap-4 p-4'>
  16. {slides.map((slide, index) => (
  17. <Card key={index} className='rounded-2xl shadow-lg'>
  18. <CardContent>
  19. <h2 className='text-xl font-bold'>{slide.title}</h2>
  20. <p>{slide.content}</p>
  21. </CardContent>
  22. </Card>
  23. ))}
  24. <Button className='mt-4' onClick={() => alert('Next slide will be created here')}>Next</Button>
  25. </div>
  26. );
  27. }
  28.  
Success #stdin #stdout 0.03s 25768KB
stdin
Standard input is empty
stdout
import { Card, CardContent } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
import { useState } from 'react';

export default function DigitalMarketingSlide() {
  const [slides, setSlides] = useState([
    { title: 'Introduction to Smart Backhaul', content: 'Overview of the platform and its services' },
    { title: 'Digital Marketing Strategy', content: 'Key strategies for commercialization and reaching target audience' },
    { title: 'Omni-Channel Marketing', content: 'Integrating multiple marketing channels for better engagement' },
    { title: 'AI Transport Matching', content: 'How AI is used in the platform for optimizing logistics' },
    { title: 'Conclusion', content: 'Summarizing the benefits and impact of Smart Backhaul in the industry' }
  ]);

  return (
    <div className='grid gap-4 p-4'>
      {slides.map((slide, index) => (
        <Card key={index} className='rounded-2xl shadow-lg'>
          <CardContent>
            <h2 className='text-xl font-bold'>{slide.title}</h2>
            <p>{slide.content}</p>
          </CardContent>
        </Card>
      ))}
      <Button className='mt-4' onClick={() => alert('Next slide will be created here')}>Next</Button>
    </div>
  );
}