Spaces:
Running
Running
keep them static, they only move on a mouse hover
Browse files- README.md +9 -5
- index.html +154 -19
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: undefined
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: purple
|
| 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).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,154 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>BentoMotion Boxes</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
.bento-box {
|
| 13 |
+
transition: all 0.3s ease;
|
| 14 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 15 |
+
}
|
| 16 |
+
.bento-box:hover {
|
| 17 |
+
transform: scale(1.03) translateY(-10px);
|
| 18 |
+
box-shadow: 0 15px 30px rgba(0,0,0,0.15);
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
</head>
|
| 22 |
+
<body class="bg-gradient-to-br from-indigo-50 to-purple-50 min-h-screen">
|
| 23 |
+
<div class="container mx-auto px-4 py-12">
|
| 24 |
+
<header class="text-center mb-16">
|
| 25 |
+
<h1 class="text-5xl font-bold text-indigo-900 mb-4">BentoMotion</h1>
|
| 26 |
+
<p class="text-xl text-indigo-700 max-w-2xl mx-auto">Interactive animated bento boxes that respond to your cursor</p>
|
| 27 |
+
</header>
|
| 28 |
+
|
| 29 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 30 |
+
<!-- Box 1 -->
|
| 31 |
+
<div class="bento-box bg-white rounded-2xl p-6">
|
| 32 |
+
<div class="flex items-center mb-4">
|
| 33 |
+
<div class="w-12 h-12 rounded-lg bg-indigo-100 flex items-center justify-center mr-4">
|
| 34 |
+
<i data-feather="box" class="text-indigo-600"></i>
|
| 35 |
+
</div>
|
| 36 |
+
<h3 class="text-xl font-semibold text-indigo-900">Box of Ideas</h3>
|
| 37 |
+
</div>
|
| 38 |
+
<p class="text-indigo-700 mb-4">Where creativity meets structure in perfect harmony.</p>
|
| 39 |
+
<div class="flex justify-end">
|
| 40 |
+
<button class="px-4 py-2 bg-indigo-100 text-indigo-700 rounded-lg hover:bg-indigo-200 transition">Explore</button>
|
| 41 |
+
</div>
|
| 42 |
+
</div>
|
| 43 |
+
<!-- Box 2 -->
|
| 44 |
+
<div class="bento-box bg-white rounded-2xl p-6">
|
| 45 |
+
<div class="flex items-center mb-4">
|
| 46 |
+
<div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center mr-4">
|
| 47 |
+
<i data-feather="zap" class="text-purple-600"></i>
|
| 48 |
+
</div>
|
| 49 |
+
<h3 class="text-xl font-semibold text-purple-900">Energy Pack</h3>
|
| 50 |
+
</div>
|
| 51 |
+
<p class="text-purple-700 mb-4">Boost your productivity with this power-packed module.</p>
|
| 52 |
+
<div class="flex justify-end">
|
| 53 |
+
<button class="px-4 py-2 bg-purple-100 text-purple-700 rounded-lg hover:bg-purple-200 transition">Charge Up</button>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
<!-- Box 3 -->
|
| 57 |
+
<div class="bento-box bg-white rounded-2xl p-6">
|
| 58 |
+
<div class="flex items-center mb-4">
|
| 59 |
+
<div class="w-12 h-12 rounded-lg bg-pink-100 flex items-center justify-center mr-4">
|
| 60 |
+
<i data-feather="heart" class="text-pink-600"></i>
|
| 61 |
+
</div>
|
| 62 |
+
<h3 class="text-xl font-semibold text-pink-900">Heart Container</h3>
|
| 63 |
+
</div>
|
| 64 |
+
<p class="text-pink-700 mb-4">Store your favorite moments and emotions here.</p>
|
| 65 |
+
<div class="flex justify-end">
|
| 66 |
+
<button class="px-4 py-2 bg-pink-100 text-pink-700 rounded-lg hover:bg-pink-200 transition">Feel It</button>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
<!-- Box 4 -->
|
| 70 |
+
<div class="bento-box bg-white rounded-2xl p-6">
|
| 71 |
+
<div class="flex items-center mb-4">
|
| 72 |
+
<div class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center mr-4">
|
| 73 |
+
<i data-feather="cloud" class="text-blue-600"></i>
|
| 74 |
+
</div>
|
| 75 |
+
<h3 class="text-xl font-semibold text-blue-900">Cloud Vault</h3>
|
| 76 |
+
</div>
|
| 77 |
+
<p class="text-blue-700 mb-4">Your digital treasures safe in the sky.</p>
|
| 78 |
+
<div class="flex justify-end">
|
| 79 |
+
<button class="px-4 py-2 bg-blue-100 text-blue-700 rounded-lg hover:bg-blue-200 transition">Access</button>
|
| 80 |
+
</div>
|
| 81 |
+
</div>
|
| 82 |
+
<!-- Box 5 -->
|
| 83 |
+
<div class="bento-box bg-white rounded-2xl p-6">
|
| 84 |
+
<div class="flex items-center mb-4">
|
| 85 |
+
<div class="w-12 h-12 rounded-lg bg-green-100 flex items-center justify-center mr-4">
|
| 86 |
+
<i data-feather="leaf" class="text-green-600"></i>
|
| 87 |
+
</div>
|
| 88 |
+
<h3 class="text-xl font-semibold text-green-900">Nature Pod</h3>
|
| 89 |
+
</div>
|
| 90 |
+
<p class="text-green-700 mb-4">A breath of fresh air in digital form.</p>
|
| 91 |
+
<div class="flex justify-end">
|
| 92 |
+
<button class="px-4 py-2 bg-green-100 text-green-700 rounded-lg hover:bg-green-200 transition">Breathe</button>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
<!-- Box 6 -->
|
| 96 |
+
<div class="bento-box bg-white rounded-2xl p-6">
|
| 97 |
+
<div class="flex items-center mb-4">
|
| 98 |
+
<div class="w-12 h-12 rounded-lg bg-yellow-100 flex items-center justify-center mr-4">
|
| 99 |
+
<i data-feather="star" class="text-yellow-600"></i>
|
| 100 |
+
</div>
|
| 101 |
+
<h3 class="text-xl font-semibold text-yellow-900">Stellar Box</h3>
|
| 102 |
+
</div>
|
| 103 |
+
<p class="text-yellow-700 mb-4">Capture shooting stars and cosmic wonders.</p>
|
| 104 |
+
<div class="flex justify-end">
|
| 105 |
+
<button class="px-4 py-2 bg-yellow-100 text-yellow-700 rounded-lg hover:bg-yellow-200 transition">Wish</button>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<div class="mt-16 text-center">
|
| 111 |
+
<button id="animateAll" class="px-6 py-3 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition shadow-lg">
|
| 112 |
+
Activate Group Animation
|
| 113 |
+
</button>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<script>
|
| 118 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 119 |
+
feather.replace();
|
| 120 |
+
|
| 121 |
+
// Individual box hover effects
|
| 122 |
+
const boxes = document.querySelectorAll('.bento-box');
|
| 123 |
+
boxes.forEach(box => {
|
| 124 |
+
box.addEventListener('mouseenter', function() {
|
| 125 |
+
anime({
|
| 126 |
+
targets: this,
|
| 127 |
+
scale: 1.05,
|
| 128 |
+
duration: 300,
|
| 129 |
+
easing: 'easeOutExpo'
|
| 130 |
+
});
|
| 131 |
+
});
|
| 132 |
+
box.addEventListener('mouseleave', function() {
|
| 133 |
+
anime({
|
| 134 |
+
targets: this,
|
| 135 |
+
scale: 1,
|
| 136 |
+
duration: 300,
|
| 137 |
+
easing: 'easeOutExpo'
|
| 138 |
+
});
|
| 139 |
+
});
|
| 140 |
+
});
|
| 141 |
+
// Cursor follower effect
|
| 142 |
+
document.addEventListener('mousemove', function(e) {
|
| 143 |
+
const cursor = document.createElement('div');
|
| 144 |
+
cursor.className = 'cursor-follower';
|
| 145 |
+
cursor.style.position = 'fixed';
|
| 146 |
+
cursor.style.width = '20px';
|
| 147 |
+
cursor.style.height = '20px';
|
| 148 |
+
cursor.style.backgroundColor = 'rgba(99, 102, 241, 0.3)';
|
| 149 |
+
cursor.style.borderRadius = '50%';
|
| 150 |
+
cursor.style.pointerEvents = 'none';
|
| 151 |
+
cursor.style.left = e.clientX + 'px';
|
| 152 |
+
cursor.style.top = e.client
|
| 153 |
+
</body>
|
| 154 |
+
</html>
|