diff --git a/apps/Index/Templates/index.php b/apps/Index/Templates/index.php index e84bb09..18ab535 100644 --- a/apps/Index/Templates/index.php +++ b/apps/Index/Templates/index.php @@ -8,13 +8,23 @@ ] ); ?> +
+
+
+
+
+

Your Fridge.

+

Your Rules.

+

Our Recipes.

+
+

Discover delicious recipes tailored to exactly what you have on hand — no extra shopping trips, no wasted food, just tasty meals made easy.

+
+ +
+
+
-
-

Your Fridge. Your Rules. - Our Recipes. -

-

Latest Recipes Added

@@ -402,6 +412,17 @@
+ + + + { + // Нормализуем координаты мыши в [-1, 1] + mouseX = (event.clientX / window.innerWidth) * 2 - 1; + mouseY = -((event.clientY / window.innerHeight) * 2 - 1); +}); + +function animate() { + requestAnimationFrame(animate); + + foodModel.position.z = 1.5 + mouseX * 0.7; + foodModel.position.y = -1 + mouseY * -0.7; + + renderer.render(scene, camera); +} + +animate(); \ No newline at end of file