import 'package:flutter/material.dart';
import 'package:tanami_app/features/MainScreens/Academy/presentation/widgets/academy_card.dart';

import '../../../../../core/styles/app_color.dart';

class AcademyLayout extends StatelessWidget {
  const AcademyLayout({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: AppColor.plainWhite,
      body: ListView.builder(
        itemCount: data.length,
        itemBuilder: (context, index) {
          return academyCard(data[index]);
        },
      ),
    );
  }
}

List data = [
  {
    'img_path': 'assets/images/academy_screen/bg1.jpg',
    'date': 'July / 10 / 2025',
    'title': 'Article ',
    'videos': '3',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.'
  },
  {
    'img_path': 'assets/images/academy_screen/bg2.jpg',
    'date': 'July / 10 / 2025',
    'title': 'Article ',
    'videos': '3',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.'
  },
  {
    'img_path': 'assets/images/academy_screen/bg3.jpg',
    'date': 'July / 10 / 2025',
    'videos': '3',
    'title': 'Article ',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.'
  },
  {
    'img_path': 'assets/images/academy_screen/bg4.jpg',
    'date': 'July / 10 / 2025',
    'videos': '3',
    'title': 'Article ',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.',
  },
  {
    'img_path': 'assets/images/academy_screen/bg5.jpg',
    'date': 'July / 10 / 2025',
    'videos': '3',
    'title': 'Article ',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.',
  },
  {
    'img_path': 'assets/images/academy_screen/bg4.jpg',
    'date': 'July / 10 / 2025',
    'videos': '3',
    'title': 'Article ',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.',
  },
  {
    'img_path': 'assets/images/academy_screen/bg4.jpg',
    'date': 'July / 10 / 2025',
    'videos': '3',
    'title': 'Article ',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.',
  },
  {
    'img_path': 'assets/images/academy_screen/bg4.jpg',
    'date': 'July / 10 / 2025',
    'videos': '3',
    'title': 'Article ',
    'desc':
        'Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.',
  },
];
