from django.shortcuts import render

def index(request):
    # Placeholder data for featured jobs
    featured_jobs = [
        {
            'title': 'Senior Frontend Developer',
            'company': 'Innovate Inc.',
            'location': 'New York, NY',
            'type': 'Full-time',
            'logo_initial': 'I'
        },
        {
            'title': 'UX/UI Designer',
            'company': 'Creative Solutions',
            'location': 'Remote',
            'type': 'Contract',
            'logo_initial': 'C'
        },
        {
            'title': 'Data Scientist',
            'company': 'Analytics Co.',
            'location': 'San Francisco, CA',
            'type': 'Full-time',
            'logo_initial': 'A'
        },
        {
            'title': 'Junior Backend Developer',
            'company': 'Tech Starters',
            'location': 'Austin, TX',
            'type': 'Part-time',
            'logo_initial': 'T'
        },
        {
            'title': 'Product Manager',
            'company': 'Visionary Products',
            'location': 'Boston, MA',
            'type': 'Full-time',
            'logo_initial': 'V'
        },
        {
            'title': 'DevOps Engineer',
            'company': 'Cloud Services Ltd.',
            'location': 'Remote',
            'type': 'Full-time',
            'logo_initial': 'C'
        },
    ]

    context = {
        'featured_jobs': featured_jobs
    }
    return render(request, 'core/index.html', context)