create a site for my business, here is the facebook page, I want the website to connect to the social and use it's images and update when new images are up on FB: https://www.facebook.com/profile.php?id=61576143178039&sk=about
Browse files- README.md +7 -4
- index.html +284 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji: 📚
|
| 4 |
colorFrom: gray
|
| 5 |
-
colorTo:
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SocialSync Showcase Spectacle
|
|
|
|
| 3 |
colorFrom: gray
|
| 4 |
+
colorTo: green
|
| 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,285 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>SocialSync Showcase</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 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
|
| 12 |
+
<script>
|
| 13 |
+
tailwind.config = {
|
| 14 |
+
theme: {
|
| 15 |
+
extend: {
|
| 16 |
+
colors: {
|
| 17 |
+
primary: '#3b82f6',
|
| 18 |
+
secondary: '#10b981',
|
| 19 |
+
dark: '#1e293b',
|
| 20 |
+
light: '#f8fafc'
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
</script>
|
| 26 |
+
<style>
|
| 27 |
+
.gallery-item {
|
| 28 |
+
transition: all 0.3s ease;
|
| 29 |
+
}
|
| 30 |
+
.gallery-item:hover {
|
| 31 |
+
transform: scale(1.03);
|
| 32 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 33 |
+
}
|
| 34 |
+
#vanta-bg {
|
| 35 |
+
position: absolute;
|
| 36 |
+
top: 0;
|
| 37 |
+
left: 0;
|
| 38 |
+
width: 100%;
|
| 39 |
+
height: 100%;
|
| 40 |
+
z-index: 0;
|
| 41 |
+
}
|
| 42 |
+
</style>
|
| 43 |
+
</head>
|
| 44 |
+
<body class="bg-gray-50 min-h-screen font-sans">
|
| 45 |
+
<div id="vanta-bg"></div>
|
| 46 |
+
|
| 47 |
+
<!-- Navigation -->
|
| 48 |
+
<nav class="relative z-10 bg-white/80 backdrop-blur-md shadow-sm">
|
| 49 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 50 |
+
<div class="flex justify-between h-16">
|
| 51 |
+
<div class="flex items-center">
|
| 52 |
+
<span class="text-xl font-bold text-primary">SocialSync</span>
|
| 53 |
+
</div>
|
| 54 |
+
<div class="flex items-center space-x-4">
|
| 55 |
+
<a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:text-primary transition">Home</a>
|
| 56 |
+
<a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:text-primary transition">About</a>
|
| 57 |
+
<a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:text-primary transition">Gallery</a>
|
| 58 |
+
<a href="#" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:text-primary transition">Contact</a>
|
| 59 |
+
<a href="https://www.facebook.com/profile.php?id=61576143178039" target="_blank" class="ml-4 px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition flex items-center">
|
| 60 |
+
<i data-feather="facebook" class="mr-2 w-4 h-4"></i> Facebook
|
| 61 |
+
</a>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</nav>
|
| 66 |
+
|
| 67 |
+
<!-- Hero Section -->
|
| 68 |
+
<section class="relative z-10 py-20">
|
| 69 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
| 70 |
+
<h1 class="text-4xl md:text-6xl font-bold text-gray-900 mb-6">Your Social Content <span class="text-primary">Live</span></h1>
|
| 71 |
+
<p class="text-xl text-gray-600 max-w-3xl mx-auto mb-10">Connecting your Facebook content directly to your website for seamless updates.</p>
|
| 72 |
+
<div class="flex justify-center space-x-4">
|
| 73 |
+
<a href="#gallery" class="px-6 py-3 bg-primary text-white rounded-md hover:bg-primary/90 transition font-medium">View Gallery</a>
|
| 74 |
+
<a href="https://www.facebook.com/profile.php?id=61576143178039" target="_blank" class="px-6 py-3 border border-primary text-primary rounded-md hover:bg-primary/10 transition font-medium flex items-center">
|
| 75 |
+
<i data-feather="facebook" class="mr-2 w-4 h-4"></i> Visit Facebook
|
| 76 |
+
</a>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
</section>
|
| 80 |
+
|
| 81 |
+
<!-- Gallery Section -->
|
| 82 |
+
<section id="gallery" class="relative z-10 py-16 bg-white">
|
| 83 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 84 |
+
<div class="text-center mb-12">
|
| 85 |
+
<h2 class="text-3xl font-bold text-gray-900">From Our <span class="text-primary">Facebook</span></h2>
|
| 86 |
+
<p class="mt-4 text-lg text-gray-600">Automatically updated whenever we post new content</p>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6" id="facebook-gallery">
|
| 90 |
+
<!-- This will be populated by JavaScript -->
|
| 91 |
+
<div class="animate-pulse rounded-lg bg-gray-200 h-64 flex items-center justify-center">
|
| 92 |
+
<span class="text-gray-500">Loading Facebook content...</span>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
|
| 96 |
+
<div class="text-center mt-10">
|
| 97 |
+
<a href="https://www.facebook.com/profile.php?id=61576143178039" target="_blank" class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-primary hover:bg-primary/90">
|
| 98 |
+
<i data-feather="facebook" class="mr-2"></i> See More on Facebook
|
| 99 |
+
</a>
|
| 100 |
+
</div>
|
| 101 |
+
</div>
|
| 102 |
+
</section>
|
| 103 |
+
|
| 104 |
+
<!-- About Section -->
|
| 105 |
+
<section class="relative z-10 py-16 bg-gray-50">
|
| 106 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 107 |
+
<div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center">
|
| 108 |
+
<div class="mb-8 lg:mb-0">
|
| 109 |
+
<h2 class="text-3xl font-bold text-gray-900 mb-6">About <span class="text-primary">Our Business</span></h2>
|
| 110 |
+
<p class="text-lg text-gray-600 mb-4">We're passionate about connecting with our customers through social media and providing the best experience possible.</p>
|
| 111 |
+
<p class="text-lg text-gray-600 mb-6">Our website automatically syncs with our Facebook page to keep you updated with our latest news, products, and events.</p>
|
| 112 |
+
<div class="flex space-x-4">
|
| 113 |
+
<a href="#" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition">Learn More</a>
|
| 114 |
+
<a href="#" class="px-4 py-2 border border-primary text-primary rounded-md hover:bg-primary/10 transition">Contact Us</a>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="relative h-64 lg:h-96 rounded-xl overflow-hidden shadow-lg">
|
| 118 |
+
<img src="http://static.photos/office/640x360/1" alt="Our Office" class="w-full h-full object-cover">
|
| 119 |
+
<div class="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent flex items-end p-6">
|
| 120 |
+
<h3 class="text-white text-xl font-medium">Our Workspace</h3>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
</section>
|
| 126 |
+
|
| 127 |
+
<!-- Footer -->
|
| 128 |
+
<footer class="relative z-10 bg-gray-900 text-gray-300 py-12">
|
| 129 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 130 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 131 |
+
<div>
|
| 132 |
+
<h3 class="text-white text-lg font-medium mb-4">SocialSync</h3>
|
| 133 |
+
<p class="mb-4">Connecting your social media presence to your website seamlessly.</p>
|
| 134 |
+
<div class="flex space-x-4">
|
| 135 |
+
<a href="https://www.facebook.com/profile.php?id=61576143178039" target="_blank" class="text-gray-400 hover:text-white">
|
| 136 |
+
<i data-feather="facebook"></i>
|
| 137 |
+
</a>
|
| 138 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
| 139 |
+
<i data-feather="instagram"></i>
|
| 140 |
+
</a>
|
| 141 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
| 142 |
+
<i data-feather="twitter"></i>
|
| 143 |
+
</a>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
<div>
|
| 147 |
+
<h3 class="text-white text-lg font-medium mb-4">Quick Links</h3>
|
| 148 |
+
<ul class="space-y-2">
|
| 149 |
+
<li><a href="#" class="hover:text-white transition">Home</a></li>
|
| 150 |
+
<li><a href="#" class="hover:text-white transition">About</a></li>
|
| 151 |
+
<li><a href="#gallery" class="hover:text-white transition">Gallery</a></li>
|
| 152 |
+
<li><a href="#" class="hover:text-white transition">Contact</a></li>
|
| 153 |
+
</ul>
|
| 154 |
+
</div>
|
| 155 |
+
<div>
|
| 156 |
+
<h3 class="text-white text-lg font-medium mb-4">Contact</h3>
|
| 157 |
+
<ul class="space-y-2">
|
| 158 |
+
<li class="flex items-start">
|
| 159 |
+
<i data-feather="mail" class="mr-2 mt-1 w-4 h-4"></i>
|
| 160 |
+
<span>contact@socialsync.example</span>
|
| 161 |
+
</li>
|
| 162 |
+
<li class="flex items-start">
|
| 163 |
+
<i data-feather="phone" class="mr-2 mt-1 w-4 h-4"></i>
|
| 164 |
+
<span>+1 (555) 123-4567</span>
|
| 165 |
+
</li>
|
| 166 |
+
<li class="flex items-start">
|
| 167 |
+
<i data-feather="map-pin" class="mr-2 mt-1 w-4 h-4"></i>
|
| 168 |
+
<span>123 Business St, City, Country</span>
|
| 169 |
+
</li>
|
| 170 |
+
</ul>
|
| 171 |
+
</div>
|
| 172 |
+
<div>
|
| 173 |
+
<h3 class="text-white text-lg font-medium mb-4">Newsletter</h3>
|
| 174 |
+
<p class="mb-4">Subscribe to get updates on our latest posts and offers.</p>
|
| 175 |
+
<form class="flex">
|
| 176 |
+
<input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-md focus:outline-none text-gray-900 w-full">
|
| 177 |
+
<button type="submit" class="bg-primary text-white px-4 py-2 rounded-r-md hover:bg-primary/90 transition">
|
| 178 |
+
<i data-feather="send"></i>
|
| 179 |
+
</button>
|
| 180 |
+
</form>
|
| 181 |
+
</div>
|
| 182 |
+
</div>
|
| 183 |
+
<div class="border-t border-gray-800 mt-8 pt-8 text-center">
|
| 184 |
+
<p>© 2023 SocialSync Showcase. All rights reserved.</p>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
</footer>
|
| 188 |
+
|
| 189 |
+
<script>
|
| 190 |
+
// Initialize Vanta.js background
|
| 191 |
+
VANTA.NET({
|
| 192 |
+
el: "#vanta-bg",
|
| 193 |
+
mouseControls: true,
|
| 194 |
+
touchControls: true,
|
| 195 |
+
gyroControls: false,
|
| 196 |
+
minHeight: 200.00,
|
| 197 |
+
minWidth: 200.00,
|
| 198 |
+
scale: 1.00,
|
| 199 |
+
scaleMobile: 1.00,
|
| 200 |
+
color: 0x3b82f6,
|
| 201 |
+
backgroundColor: 0xf8fafc,
|
| 202 |
+
points: 12.00,
|
| 203 |
+
maxDistance: 22.00,
|
| 204 |
+
spacing: 18.00
|
| 205 |
+
});
|
| 206 |
+
|
| 207 |
+
// Facebook Graph API integration (simplified - in production you'd need proper authentication)
|
| 208 |
+
// Note: This is a simplified version. In a real implementation, you'd need to:
|
| 209 |
+
// 1. Create a Facebook App
|
| 210 |
+
// 2. Get an access token
|
| 211 |
+
// 3. Use server-side code to fetch the data securely
|
| 212 |
+
|
| 213 |
+
// For demo purposes, we'll simulate fetching Facebook data
|
| 214 |
+
function loadFacebookContent() {
|
| 215 |
+
// In a real implementation, you would make an API call to:
|
| 216 |
+
// `https://graph.facebook.com/v15.0/61576143178039/photos?fields=images,link&access_token=YOUR_ACCESS_TOKEN`
|
| 217 |
+
|
| 218 |
+
// Simulating API response with placeholder data
|
| 219 |
+
setTimeout(() => {
|
| 220 |
+
const galleryContainer = document.getElementById('facebook-gallery');
|
| 221 |
+
galleryContainer.innerHTML = '';
|
| 222 |
+
|
| 223 |
+
// Simulated data - in real implementation this would come from Facebook API
|
| 224 |
+
const simulatedPosts = [
|
| 225 |
+
{
|
| 226 |
+
id: '1',
|
| 227 |
+
images: [{ source: 'http://static.photos/business/640x360/1' }],
|
| 228 |
+
link: 'https://www.facebook.com/profile.php?id=61576143178039'
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
id: '2',
|
| 232 |
+
images: [{ source: 'http://static.photos/business/640x360/2' }],
|
| 233 |
+
link: 'https://www.facebook.com/profile.php?id=61576143178039'
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
id: '3',
|
| 237 |
+
images: [{ source: 'http://static.photos/business/640x360/3' }],
|
| 238 |
+
link: 'https://www.facebook.com/profile.php?id=61576143178039'
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
id: '4',
|
| 242 |
+
images: [{ source: 'http://static.photos/business/640x360/4' }],
|
| 243 |
+
link: 'https://www.facebook.com/profile.php?id=61576143178039'
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
id: '5',
|
| 247 |
+
images: [{ source: 'http://static.photos/business/640x360/5' }],
|
| 248 |
+
link: 'https://www.facebook.com/profile.php?id=61576143178039'
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
id: '6',
|
| 252 |
+
images: [{ source: 'http://static.photos/business/640x360/6' }],
|
| 253 |
+
link: 'https://www.facebook.com/profile.php?id=61576143178039'
|
| 254 |
+
}
|
| 255 |
+
];
|
| 256 |
+
|
| 257 |
+
simulatedPosts.forEach(post => {
|
| 258 |
+
const galleryItem = document.createElement('div');
|
| 259 |
+
galleryItem.className = 'gallery-item rounded-lg overflow-hidden shadow-md bg-white';
|
| 260 |
+
galleryItem.innerHTML = `
|
| 261 |
+
<a href="${post.link}" target="_blank" class="block">
|
| 262 |
+
<img src="${post.images[0].source}" alt="Facebook Post" class="w-full h-48 object-cover">
|
| 263 |
+
<div class="p-4">
|
| 264 |
+
<div class="flex justify-between items-center">
|
| 265 |
+
<span class="text-sm text-gray-500">Posted on Facebook</span>
|
| 266 |
+
<i data-feather="external-link" class="w-4 h-4 text-gray-500"></i>
|
| 267 |
+
</div>
|
| 268 |
+
</div>
|
| 269 |
+
</a>
|
| 270 |
+
`;
|
| 271 |
+
galleryContainer.appendChild(galleryItem);
|
| 272 |
+
});
|
| 273 |
+
|
| 274 |
+
feather.replace();
|
| 275 |
+
}, 1500);
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
// Initialize everything when the page loads
|
| 279 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 280 |
+
feather.replace();
|
| 281 |
+
loadFacebookContent();
|
| 282 |
+
});
|
| 283 |
+
</script>
|
| 284 |
+
</body>
|
| 285 |
</html>
|