diff --git a/index.html b/index.html index b4cf8c0..27c7826 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,7 @@ + Wine types app diff --git a/public/untitled.glb b/public/untitled.glb index 1de97fc..3c7bdf0 100644 Binary files a/public/untitled.glb and b/public/untitled.glb differ diff --git a/src/App.jsx b/src/App.jsx index 78007e3..d0b91ae 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -19,7 +19,7 @@ function RotatingLights() { // Rotación de las luces const radius = 3; - const speed = 0.5; + const speed = 1.5; // Luz 1 light1Ref.current.position.x = Math.sin(timeRef.current * speed) * radius; @@ -59,14 +59,19 @@ function Model() { const modelRef = useRef(); const { scene } = useGLTF('/untitled.glb'); - // Configurar escala y posición inicial - scene.scale.set(2, 2, 2); - scene.position.set(0, 0, 0); + scene.scale.set(1.2, 1.2, 1.2); + scene.position.set(0, 2, 0); - // Añadir rotación continua + scene.traverse((node) => { + if (node.isMesh) { + node.castShadow = true; + node.receiveShadow = true; + } + }); + useFrame((state, delta) => { if (modelRef.current) { - modelRef.current.rotation.y -= delta * 0.5; // Valor negativo para girar a la derecha + modelRef.current.rotation.y -= delta * 0.5; } }); @@ -75,60 +80,47 @@ function Model() { function App() { return ( -
+
-

+

Types of wines

-
-
+
+
- - - + - - - - - -
-
+
+ +
+

© 2024 Types of Wines. Todos los derechos reservados.

+
); } diff --git a/src/components/WineButtons.jsx b/src/components/WineButtons.jsx index 10f6f8c..f0bb26a 100644 --- a/src/components/WineButtons.jsx +++ b/src/components/WineButtons.jsx @@ -35,7 +35,9 @@ function WineButtons({ wineData }) { {wines.map((wine) => (
+ text-center text-[#722F37] text-xs md:text-sm min-h-[40px] + flex items-center justify-center whitespace-normal + hover:-translate-y-0.5"> {wine}
))} @@ -51,9 +53,9 @@ function WineButtons({ wineData }) { @@ -77,7 +79,7 @@ function WineButtons({ wineData }) { @@ -114,9 +117,10 @@ function WineButtons({ wineData }) { @@ -143,7 +147,7 @@ function WineButtons({ wineData }) {