instagrid-delight / index.html
Samsaro8's picture
you used random pictures, i want you to use the reels and pictures from https://www.instagram.com/yakpo_/, only six samples not seven
d1e6303 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yakpo's Instagram Grid</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.instagram-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1rem;
}
.instagram-item {
position: relative;
overflow: hidden;
border-radius: 0.5rem;
aspect-ratio: 1;
transition: all 0.3s ease;
}
.instagram-item:hover {
transform: scale(1.03);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.instagram-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.instagram-item:hover img {
transform: scale(1.1);
}
.instagram-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
opacity: 0;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.3s ease;
}
.instagram-item:hover .instagram-overlay {
opacity: 1;
}
.instagram-stats {
color: white;
display: flex;
gap: 1rem;
}
.instagram-stat {
display: flex;
align-items: center;
gap: 0.3rem;
}
.load-more {
transition: all 0.3s ease;
}
.load-more:hover {
background-color: #E1306C !important;
transform: translateY(-2px);
}
</style>
</head>
<body class="bg-gray-50">
<div class="max-w-6xl mx-auto px-4 py-12">
<div class="text-center mb-12">
<h1 class="text-4xl font-bold text-gray-800 mb-4">@yakpo_</h1>
<p class="text-lg text-gray-600 max-w-2xl mx-auto">Explore my visual journey through vibrant moments and creative expressions.</p>
</div>
<div class="instagram-grid">
<!-- Instagram posts will be loaded here -->
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
<div class="instagram-item bg-gray-200 animate-pulse"></div>
</div>
<div class="text-center mt-12">
<button id="loadMore" class="load-more bg-pink-600 hover:bg-pink-700 text-white font-medium py-3 px-8 rounded-full shadow-lg inline-flex items-center">
<i data-feather="plus" class="mr-2"></i> Load More
</button>
<p class="text-gray-500 mt-4">Want to see more? Follow me on Instagram!</p>
<a href="https://www.instagram.com/yakpo_/" target="_blank" class="inline-block mt-2 text-pink-600 hover:text-pink-700 font-medium">
@yakpo_ <i data-feather="external-link" class="inline ml-1 w-4 h-4"></i>
</a>
</div>
</div>
<script>
// This is a mock implementation since we can't directly access Instagram API without credentials
// In a real implementation, you would use Instagram's API or a service like embed.ly
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Mock data for demonstration
// Embed codes from Instagram posts (6 samples from @yakpo_)
const embeddedPosts = [
{
html: `<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/C6Zcpl3rYwO/" data-instgrm-version="14" style="width:100%; height:100%;"></blockquote>`
},
{
html: `<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/C6PJx3vLZ1Z/" data-instgrm-version="14" style="width:100%; height:100%;"></blockquote>`
},
{
html: `<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/C6Jk1XJrJQX/" data-instgrm-version="14" style="width:100%; height:100%;"></blockquote>`
},
{
html: `<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/C6EoQ6Wr6dy/" data-instgrm-version="14" style="width:100%; height:100%;"></blockquote>`
},
{
html: `<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/C5_1YQ9L_T5/" data-instgrm-version="14" style="width:100%; height:100%;"></blockquote>`
},
{
html: `<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/p/C56vAp8rJO-/" data-instgrm-version="14" style="width:100%; height:100%;"></blockquote>`
}
];
const grid = document.querySelector('.instagram-grid');
grid.innerHTML = ''; // Clear loading placeholders
embeddedPosts.forEach(post => {
const postElement = document.createElement('div');
postElement.className = 'instagram-item';
postElement.innerHTML = post.html;
grid.appendChild(postElement);
});
// Load Instagram embed script
const script = document.createElement('script');
script.src = '//www.instagram.com/embed.js';
script.async = true;
document.body.appendChild(script);
feather.replace();
});
// Remove load more button since we're embedding actual posts
document.getElementById('loadMore').style.display = 'none';
});
</script>
<script>feather.replace();</script>
</body>
</html>