from django.shortcuts import render 

def home(request):
    
    items = {
        "projects": [
            {"title": "startformations.com", 
             
             "description": """
                Developed the official website for Start for Business Development, a Muscat-based brokerage firm 
                connecting businesses across the Gulf. The site highlights their expertise in global trade, strategic 
                partnerships, and sustainable growth. Designed for professionalism and efficiency, it showcases 
                their services, market insights, and extensive network, empowering clients to expand their presence 
                and succeed in dynamic markets.
                """, 
                
             "img": "website1_preview.png"
            },
            
            {"title": "caviish.com", 
             
             "description": """
                For Caviish, the first global platform for purchasing celebrities’ belongings, I took over the project 
                from previous developers and enhanced it using PHP. I integrated full e-commerce functionality, improving 
                the site’s speed and security. Additionally, I implemented multilingual support to ensure a global user 
                experience. The result is a seamless, luxurious platform that offers fans an elevated connection with their 
                favorite stars, all while maintaining a high standard of performance and user satisfaction.
                """, 
                
             "img": "website2_preview.png"
            },
            
            {"title": "global-creativity.com", 
             
             "description": """
                I built the complete website for Global Creativity using Python and Django, 
                delivering a dynamic, user-friendly platform to showcase their events. 
                The site integrates seamless functionality to support their initiatives in education, 
                entrepreneurship, and business, reflecting my expertise in web development.
                """, 
                
             "img": "website3_preview.png"
            },
        ]
    }
    
    # {"title": "One", 'img': "proj.png"},
    #     {"title": "Two", 'img': 'bitmoji.png'},
    #     {"title": "Three",  'img': "bitmoji_white.png"},
    
    return render(request, 'home.html', items)

# Error Handeling
def custom_404(request, exception):
    return render(request, 'alt_pages/404.html', status=404)