diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7e99742 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,21 @@ +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Test + run: npm test + continue-on-error: true \ No newline at end of file diff --git a/public/royal_esplanade_4k.hdr b/public/royal_esplanade_4k.hdr new file mode 100644 index 0000000..420ccd9 Binary files /dev/null and b/public/royal_esplanade_4k.hdr differ diff --git a/src/App.jsx b/src/App.jsx index 24d311c..78007e3 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,5 +1,5 @@ import { Canvas, useFrame } from '@react-three/fiber'; -import { OrbitControls, useGLTF } from '@react-three/drei'; +import { OrbitControls, useGLTF, Environment } from '@react-three/drei'; import { useRef } from 'react'; import * as THREE from 'three'; import WineButtons from './components/WineButtons'; @@ -75,38 +75,51 @@ function Model() { function App() { return ( -
+

- Types of wines + Types of wines

-
+
- + style={{ + position: 'absolute', + top: 0, + left: 0, + width: '100%', + height: '100%', + background: 'transparent' // Hacer el canvas transparente + }}> + + + + + + + + + +