customize to look like a modern iphone app
Browse files- index.html +107 -57
index.html
CHANGED
|
@@ -23,30 +23,86 @@
|
|
| 23 |
}
|
| 24 |
}
|
| 25 |
</script>
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
#vanta-bg {
|
| 35 |
-
position:
|
| 36 |
top: 0;
|
| 37 |
left: 0;
|
| 38 |
width: 100%;
|
| 39 |
height: 100%;
|
| 40 |
z-index: 0;
|
| 41 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
</style>
|
| 43 |
</head>
|
| 44 |
-
<body class="
|
| 45 |
<div id="vanta-bg"></div>
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
<!-- Navigation -->
|
| 48 |
-
<nav class="relative z-10 bg-white/80
|
| 49 |
-
|
| 50 |
<div class="flex justify-between h-16">
|
| 51 |
<div class="flex items-center">
|
| 52 |
<span class="text-xl font-bold text-primary">Fine Design Custom Frames</span>
|
|
@@ -63,31 +119,28 @@
|
|
| 63 |
</div>
|
| 64 |
</div>
|
| 65 |
</nav>
|
| 66 |
-
|
| 67 |
<!-- Hero Section -->
|
| 68 |
-
<section class="relative z-10
|
| 69 |
-
<div class="
|
| 70 |
-
<h1 class="text-
|
| 71 |
-
<p class="text-
|
| 72 |
-
<div class="flex justify-center space-x-
|
| 73 |
-
<a href="#gallery" class="
|
| 74 |
-
<a href="https://www.facebook.com/profile.php?id=61576143178039" target="_blank" class="
|
| 75 |
-
|
| 76 |
</a>
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
</section>
|
| 80 |
-
|
| 81 |
<!-- Gallery Section -->
|
| 82 |
-
<section id="gallery" class="relative z-10
|
| 83 |
-
<div class="
|
| 84 |
-
<
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 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>
|
|
@@ -100,19 +153,18 @@
|
|
| 100 |
</div>
|
| 101 |
</div>
|
| 102 |
</section>
|
| 103 |
-
|
| 104 |
<!-- About Section -->
|
| 105 |
-
<section class="relative z-10
|
| 106 |
-
<div
|
| 107 |
-
<div class="
|
| 108 |
-
<div class="mb-
|
| 109 |
-
<h2 class="text-
|
| 110 |
-
<p class="text-
|
| 111 |
-
<p class="text-
|
| 112 |
-
<div class="flex space-x-
|
| 113 |
-
<a href="#" class="
|
| 114 |
-
<a href="#" class="
|
| 115 |
-
|
| 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">
|
|
@@ -123,12 +175,11 @@
|
|
| 123 |
</div>
|
| 124 |
</div>
|
| 125 |
</section>
|
| 126 |
-
|
| 127 |
<!-- Footer -->
|
| 128 |
-
<footer class="relative z-10 bg-gray-900 text-gray-300 py-
|
| 129 |
-
<div class="
|
| 130 |
-
<div class="grid grid-cols-
|
| 131 |
-
|
| 132 |
<h3 class="text-white text-lg font-medium mb-4">Fine Design Custom Frames</h3>
|
| 133 |
<p class="mb-4">Preserving your memories with expert craftsmanship.</p>
|
| 134 |
<div class="flex space-x-4">
|
|
@@ -187,10 +238,10 @@
|
|
| 187 |
</footer>
|
| 188 |
|
| 189 |
<script>
|
| 190 |
-
// Initialize Vanta.js background
|
| 191 |
VANTA.NET({
|
| 192 |
el: "#vanta-bg",
|
| 193 |
-
mouseControls:
|
| 194 |
touchControls: true,
|
| 195 |
gyroControls: false,
|
| 196 |
minHeight: 200.00,
|
|
@@ -198,13 +249,12 @@
|
|
| 198 |
scale: 1.00,
|
| 199 |
scaleMobile: 1.00,
|
| 200 |
color: 0x3b82f6,
|
| 201 |
-
backgroundColor:
|
| 202 |
-
points:
|
| 203 |
-
maxDistance:
|
| 204 |
-
spacing:
|
| 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
|
|
@@ -255,8 +305,8 @@ const galleryItem = document.createElement('div');
|
|
| 255 |
galleryItem.className = 'gallery-item rounded-lg overflow-hidden shadow-md bg-white';
|
| 256 |
galleryItem.innerHTML = `
|
| 257 |
<a href="${post.link}" target="_blank" class="block">
|
| 258 |
-
<img src="${post.images[0].source}" alt="Facebook Post" class="w-full h-
|
| 259 |
-
|
| 260 |
<div class="flex justify-between items-center">
|
| 261 |
<span class="text-sm text-gray-500">Posted on Facebook</span>
|
| 262 |
<i data-feather="external-link" class="w-4 h-4 text-gray-500"></i>
|
|
|
|
| 23 |
}
|
| 24 |
}
|
| 25 |
</script>
|
| 26 |
+
<style>
|
| 27 |
+
body {
|
| 28 |
+
max-width: 500px;
|
| 29 |
+
margin: 0 auto;
|
| 30 |
+
background: #f2f2f7;
|
| 31 |
+
border-radius: 40px;
|
| 32 |
+
overflow: hidden;
|
| 33 |
+
box-shadow: 0 0 20px rgba(0,0,0,0.2);
|
| 34 |
+
position: relative;
|
| 35 |
+
min-height: 100vh;
|
| 36 |
}
|
| 37 |
#vanta-bg {
|
| 38 |
+
position: fixed;
|
| 39 |
top: 0;
|
| 40 |
left: 0;
|
| 41 |
width: 100%;
|
| 42 |
height: 100%;
|
| 43 |
z-index: 0;
|
| 44 |
}
|
| 45 |
+
nav {
|
| 46 |
+
position: sticky;
|
| 47 |
+
top: 0;
|
| 48 |
+
backdrop-filter: blur(20px);
|
| 49 |
+
-webkit-backdrop-filter: blur(20px);
|
| 50 |
+
padding-top: 40px;
|
| 51 |
+
padding-bottom: 10px;
|
| 52 |
+
}
|
| 53 |
+
.gallery-item {
|
| 54 |
+
transition: all 0.3s ease;
|
| 55 |
+
border-radius: 12px;
|
| 56 |
+
overflow: hidden;
|
| 57 |
+
}
|
| 58 |
+
.gallery-item:hover {
|
| 59 |
+
transform: scale(1.02);
|
| 60 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
| 61 |
+
}
|
| 62 |
+
section {
|
| 63 |
+
padding: 20px;
|
| 64 |
+
}
|
| 65 |
+
h1, h2, h3 {
|
| 66 |
+
font-weight: 600;
|
| 67 |
+
}
|
| 68 |
+
.ios-btn {
|
| 69 |
+
display: inline-flex;
|
| 70 |
+
align-items: center;
|
| 71 |
+
justify-content: center;
|
| 72 |
+
padding: 12px 20px;
|
| 73 |
+
border-radius: 50px;
|
| 74 |
+
font-weight: 500;
|
| 75 |
+
transition: all 0.3s ease;
|
| 76 |
+
}
|
| 77 |
+
.ios-header {
|
| 78 |
+
position: relative;
|
| 79 |
+
padding-top: 20px;
|
| 80 |
+
padding-bottom: 20px;
|
| 81 |
+
text-align: center;
|
| 82 |
+
}
|
| 83 |
+
.notch {
|
| 84 |
+
width: 120px;
|
| 85 |
+
height: 30px;
|
| 86 |
+
background: #000;
|
| 87 |
+
border-bottom-left-radius: 15px;
|
| 88 |
+
border-bottom-right-radius: 15px;
|
| 89 |
+
position: absolute;
|
| 90 |
+
top: 0;
|
| 91 |
+
left: 50%;
|
| 92 |
+
transform: translateX(-50%);
|
| 93 |
+
z-index: 10;
|
| 94 |
+
}
|
| 95 |
</style>
|
| 96 |
</head>
|
| 97 |
+
<body class="min-h-screen font-sans">
|
| 98 |
<div id="vanta-bg"></div>
|
| 99 |
|
| 100 |
+
<!-- iOS Notch -->
|
| 101 |
+
<div class="notch"></div>
|
| 102 |
+
|
| 103 |
<!-- Navigation -->
|
| 104 |
+
<nav class="relative z-10 bg-white/80">
|
| 105 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 106 |
<div class="flex justify-between h-16">
|
| 107 |
<div class="flex items-center">
|
| 108 |
<span class="text-xl font-bold text-primary">Fine Design Custom Frames</span>
|
|
|
|
| 119 |
</div>
|
| 120 |
</div>
|
| 121 |
</nav>
|
|
|
|
| 122 |
<!-- Hero Section -->
|
| 123 |
+
<section class="relative z-10 ios-header">
|
| 124 |
+
<div class="text-center">
|
| 125 |
+
<h1 class="text-3xl font-bold text-gray-900 mb-4">Custom Framing <span class="text-primary">Perfection</span></h1>
|
| 126 |
+
<p class="text-base text-gray-600 mb-6">Preserving memories with exquisite framing.</p>
|
| 127 |
+
<div class="flex justify-center space-x-3">
|
| 128 |
+
<a href="#gallery" class="ios-btn bg-primary text-white">View Gallery</a>
|
| 129 |
+
<a href="https://www.facebook.com/profile.php?id=61576143178039" target="_blank" class="ios-btn bg-white text-primary border border-gray-200 flex items-center">
|
| 130 |
+
<i data-feather="facebook" class="mr-2 w-4 h-4"></i> Visit Facebook
|
| 131 |
</a>
|
| 132 |
</div>
|
| 133 |
</div>
|
| 134 |
</section>
|
|
|
|
| 135 |
<!-- Gallery Section -->
|
| 136 |
+
<section id="gallery" class="relative z-10 bg-white">
|
| 137 |
+
<div class="text-center mb-8">
|
| 138 |
+
<h2 class="text-2xl font-bold text-gray-900">Our <span class="text-primary">Framing Gallery</span></h2>
|
| 139 |
+
<p class="mt-2 text-sm text-gray-600">Showcasing our latest work</p>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<div class="grid grid-cols-1 gap-4" id="facebook-gallery">
|
| 143 |
+
<!-- This will be populated by JavaScript -->
|
|
|
|
| 144 |
<div class="animate-pulse rounded-lg bg-gray-200 h-64 flex items-center justify-center">
|
| 145 |
<span class="text-gray-500">Loading Facebook content...</span>
|
| 146 |
</div>
|
|
|
|
| 153 |
</div>
|
| 154 |
</div>
|
| 155 |
</section>
|
|
|
|
| 156 |
<!-- About Section -->
|
| 157 |
+
<section class="relative z-10 bg-gray-50">
|
| 158 |
+
<div>
|
| 159 |
+
<div class="flex flex-col items-center">
|
| 160 |
+
<div class="mb-6">
|
| 161 |
+
<h2 class="text-2xl font-bold text-gray-900 mb-4">About <span class="text-primary">Our Craft</span></h2>
|
| 162 |
+
<p class="text-sm text-gray-600 mb-3">Preserving memories with the finest custom framing.</p>
|
| 163 |
+
<p class="text-sm text-gray-600 mb-4">Decades of experience creating frames that last generations.</p>
|
| 164 |
+
<div class="flex space-x-3">
|
| 165 |
+
<a href="#" class="ios-btn bg-primary text-white text-sm">Learn More</a>
|
| 166 |
+
<a href="#" class="ios-btn bg-white text-primary border border-gray-200 text-sm">Contact Us</a>
|
| 167 |
+
</div>
|
| 168 |
</div>
|
| 169 |
<div class="relative h-64 lg:h-96 rounded-xl overflow-hidden shadow-lg">
|
| 170 |
<img src="http://static.photos/office/640x360/1" alt="Our Office" class="w-full h-full object-cover">
|
|
|
|
| 175 |
</div>
|
| 176 |
</div>
|
| 177 |
</section>
|
|
|
|
| 178 |
<!-- Footer -->
|
| 179 |
+
<footer class="relative z-10 bg-gray-900 text-gray-300 py-8">
|
| 180 |
+
<div class="px-4">
|
| 181 |
+
<div class="grid grid-cols-2 gap-6">
|
| 182 |
+
<div>
|
| 183 |
<h3 class="text-white text-lg font-medium mb-4">Fine Design Custom Frames</h3>
|
| 184 |
<p class="mb-4">Preserving your memories with expert craftsmanship.</p>
|
| 185 |
<div class="flex space-x-4">
|
|
|
|
| 238 |
</footer>
|
| 239 |
|
| 240 |
<script>
|
| 241 |
+
// Initialize Vanta.js with iOS-like background
|
| 242 |
VANTA.NET({
|
| 243 |
el: "#vanta-bg",
|
| 244 |
+
mouseControls: false,
|
| 245 |
touchControls: true,
|
| 246 |
gyroControls: false,
|
| 247 |
minHeight: 200.00,
|
|
|
|
| 249 |
scale: 1.00,
|
| 250 |
scaleMobile: 1.00,
|
| 251 |
color: 0x3b82f6,
|
| 252 |
+
backgroundColor: 0xf2f2f7,
|
| 253 |
+
points: 10.00,
|
| 254 |
+
maxDistance: 15.00,
|
| 255 |
+
spacing: 15.00
|
| 256 |
});
|
| 257 |
+
// Facebook Graph API integration (simplified - in production you'd need proper authentication)
|
|
|
|
| 258 |
// Note: This is a simplified version. In a real implementation, you'd need to:
|
| 259 |
// 1. Create a Facebook App
|
| 260 |
// 2. Get an access token
|
|
|
|
| 305 |
galleryItem.className = 'gallery-item rounded-lg overflow-hidden shadow-md bg-white';
|
| 306 |
galleryItem.innerHTML = `
|
| 307 |
<a href="${post.link}" target="_blank" class="block">
|
| 308 |
+
<img src="${post.images[0].source}" alt="Facebook Post" class="w-full h-64 object-cover">
|
| 309 |
+
<div class="p-4">
|
| 310 |
<div class="flex justify-between items-center">
|
| 311 |
<span class="text-sm text-gray-500">Posted on Facebook</span>
|
| 312 |
<i data-feather="external-link" class="w-4 h-4 text-gray-500"></i>
|