Spaces:
Running
Running
I want a instagram grid, for my wix.com website, i want you to do it for me, my instagram is: https://www.instagram.com/yakpo_/
Browse files- README.md +7 -4
- index.html +187 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
colorFrom: pink
|
| 5 |
colorTo: red
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: InstaGrid Delight ✨
|
| 3 |
+
colorFrom: blue
|
|
|
|
| 4 |
colorTo: red
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
index.html
CHANGED
|
@@ -1,19 +1,188 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Yakpo's Instagram Grid</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.instagram-grid {
|
| 13 |
+
display: grid;
|
| 14 |
+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
| 15 |
+
gap: 1rem;
|
| 16 |
+
}
|
| 17 |
+
.instagram-item {
|
| 18 |
+
position: relative;
|
| 19 |
+
overflow: hidden;
|
| 20 |
+
border-radius: 0.5rem;
|
| 21 |
+
aspect-ratio: 1;
|
| 22 |
+
transition: all 0.3s ease;
|
| 23 |
+
}
|
| 24 |
+
.instagram-item:hover {
|
| 25 |
+
transform: scale(1.03);
|
| 26 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 27 |
+
}
|
| 28 |
+
.instagram-item img {
|
| 29 |
+
width: 100%;
|
| 30 |
+
height: 100%;
|
| 31 |
+
object-fit: cover;
|
| 32 |
+
transition: transform 0.5s ease;
|
| 33 |
+
}
|
| 34 |
+
.instagram-item:hover img {
|
| 35 |
+
transform: scale(1.1);
|
| 36 |
+
}
|
| 37 |
+
.instagram-overlay {
|
| 38 |
+
position: absolute;
|
| 39 |
+
top: 0;
|
| 40 |
+
left: 0;
|
| 41 |
+
right: 0;
|
| 42 |
+
bottom: 0;
|
| 43 |
+
background: rgba(0, 0, 0, 0.4);
|
| 44 |
+
opacity: 0;
|
| 45 |
+
display: flex;
|
| 46 |
+
align-items: center;
|
| 47 |
+
justify-content: center;
|
| 48 |
+
transition: opacity 0.3s ease;
|
| 49 |
+
}
|
| 50 |
+
.instagram-item:hover .instagram-overlay {
|
| 51 |
+
opacity: 1;
|
| 52 |
+
}
|
| 53 |
+
.instagram-stats {
|
| 54 |
+
color: white;
|
| 55 |
+
display: flex;
|
| 56 |
+
gap: 1rem;
|
| 57 |
+
}
|
| 58 |
+
.instagram-stat {
|
| 59 |
+
display: flex;
|
| 60 |
+
align-items: center;
|
| 61 |
+
gap: 0.3rem;
|
| 62 |
+
}
|
| 63 |
+
.load-more {
|
| 64 |
+
transition: all 0.3s ease;
|
| 65 |
+
}
|
| 66 |
+
.load-more:hover {
|
| 67 |
+
background-color: #E1306C !important;
|
| 68 |
+
transform: translateY(-2px);
|
| 69 |
+
}
|
| 70 |
+
</style>
|
| 71 |
+
</head>
|
| 72 |
+
<body class="bg-gray-50">
|
| 73 |
+
<div class="max-w-6xl mx-auto px-4 py-12">
|
| 74 |
+
<div class="text-center mb-12">
|
| 75 |
+
<h1 class="text-4xl font-bold text-gray-800 mb-4">@yakpo_</h1>
|
| 76 |
+
<p class="text-lg text-gray-600 max-w-2xl mx-auto">Explore my visual journey through vibrant moments and creative expressions.</p>
|
| 77 |
+
</div>
|
| 78 |
+
|
| 79 |
+
<div class="instagram-grid">
|
| 80 |
+
<!-- Instagram posts will be loaded here -->
|
| 81 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 82 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 83 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 84 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 85 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 86 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 87 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 88 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 89 |
+
<div class="instagram-item bg-gray-200 animate-pulse"></div>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<div class="text-center mt-12">
|
| 93 |
+
<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">
|
| 94 |
+
<i data-feather="plus" class="mr-2"></i> Load More
|
| 95 |
+
</button>
|
| 96 |
+
<p class="text-gray-500 mt-4">Want to see more? Follow me on Instagram!</p>
|
| 97 |
+
<a href="https://www.instagram.com/yakpo_/" target="_blank" class="inline-block mt-2 text-pink-600 hover:text-pink-700 font-medium">
|
| 98 |
+
@yakpo_ <i data-feather="external-link" class="inline ml-1 w-4 h-4"></i>
|
| 99 |
+
</a>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
|
| 103 |
+
<script>
|
| 104 |
+
// This is a mock implementation since we can't directly access Instagram API without credentials
|
| 105 |
+
// In a real implementation, you would use Instagram's API or a service like embed.ly
|
| 106 |
+
|
| 107 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 108 |
+
feather.replace();
|
| 109 |
+
|
| 110 |
+
// Mock data for demonstration
|
| 111 |
+
const mockPosts = [
|
| 112 |
+
{ id: 1, image: 'http://static.photos/nature/640x360/1', likes: 124, comments: 12 },
|
| 113 |
+
{ id: 2, image: 'http://static.photos/cityscape/640x360/2', likes: 89, comments: 5 },
|
| 114 |
+
{ id: 3, image: 'http://static.photos/food/640x360/3', likes: 215, comments: 32 },
|
| 115 |
+
{ id: 4, image: 'http://static.photos/travel/640x360/4', likes: 156, comments: 18 },
|
| 116 |
+
{ id: 5, image: 'http://static.photos/technology/640x360/5', likes: 178, comments: 24 },
|
| 117 |
+
{ id: 6, image: 'http://static.photos/abstract/640x360/6', likes: 92, comments: 7 },
|
| 118 |
+
{ id: 7, image: 'http://static.photos/gradient/640x360/7', likes: 145, comments: 21 },
|
| 119 |
+
{ id: 8, image: 'http://static.photos/workspace/640x360/8', likes: 67, comments: 4 },
|
| 120 |
+
{ id: 9, image: 'http://static.photos/education/640x360/9', likes: 203, comments: 28 },
|
| 121 |
+
];
|
| 122 |
+
|
| 123 |
+
const grid = document.querySelector('.instagram-grid');
|
| 124 |
+
grid.innerHTML = ''; // Clear loading placeholders
|
| 125 |
+
|
| 126 |
+
mockPosts.forEach(post => {
|
| 127 |
+
const postElement = document.createElement('div');
|
| 128 |
+
postElement.className = 'instagram-item';
|
| 129 |
+
postElement.innerHTML = `
|
| 130 |
+
<img src="${post.image}" alt="Instagram post ${post.id}" loading="lazy">
|
| 131 |
+
<div class="instagram-overlay">
|
| 132 |
+
<div class="instagram-stats">
|
| 133 |
+
<div class="instagram-stat">
|
| 134 |
+
<i data-feather="heart"></i>
|
| 135 |
+
<span>${post.likes}</span>
|
| 136 |
+
</div>
|
| 137 |
+
<div class="instagram-stat">
|
| 138 |
+
<i data-feather="message-circle"></i>
|
| 139 |
+
<span>${post.comments}</span>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
`;
|
| 144 |
+
grid.appendChild(postElement);
|
| 145 |
+
});
|
| 146 |
+
|
| 147 |
+
// For Wix integration, you would typically:
|
| 148 |
+
// 1. Add this as an iframe or custom HTML element in your Wix site
|
| 149 |
+
// 2. Or use Wix's built-in Instagram feed component if available
|
| 150 |
+
// 3. For a real implementation, you might need to use Instagram's API with proper authentication
|
| 151 |
+
|
| 152 |
+
feather.replace();
|
| 153 |
+
});
|
| 154 |
+
|
| 155 |
+
document.getElementById('loadMore').addEventListener('click', function() {
|
| 156 |
+
// In a real implementation, this would load more posts from Instagram API
|
| 157 |
+
const loading = document.createElement('div');
|
| 158 |
+
loading.className = 'instagram-item bg-gray-200 animate-pulse';
|
| 159 |
+
document.querySelector('.instagram-grid').appendChild(loading);
|
| 160 |
+
|
| 161 |
+
setTimeout(() => {
|
| 162 |
+
document.querySelector('.instagram-grid').removeChild(loading);
|
| 163 |
+
// Simulate loading a new post
|
| 164 |
+
const newPost = document.createElement('div');
|
| 165 |
+
newPost.className = 'instagram-item';
|
| 166 |
+
newPost.innerHTML = `
|
| 167 |
+
<img src="http://static.photos/random/640x360" alt="New post" loading="lazy">
|
| 168 |
+
<div class="instagram-overlay">
|
| 169 |
+
<div class="instagram-stats">
|
| 170 |
+
<div class="instagram-stat">
|
| 171 |
+
<i data-feather="heart"></i>
|
| 172 |
+
<span>${Math.floor(Math.random() * 200)}</span>
|
| 173 |
+
</div>
|
| 174 |
+
<div class="instagram-stat">
|
| 175 |
+
<i data-feather="message-circle"></i>
|
| 176 |
+
<span>${Math.floor(Math.random() * 30)}</span>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
`;
|
| 181 |
+
document.querySelector('.instagram-grid').appendChild(newPost);
|
| 182 |
+
feather.replace();
|
| 183 |
+
}, 1000);
|
| 184 |
+
});
|
| 185 |
+
</script>
|
| 186 |
+
<script>feather.replace();</script>
|
| 187 |
+
</body>
|
| 188 |
</html>
|