diff --git a/src/assets/fonts/Inter-Bold.woff b/src/assets/fonts/Inter-Bold.woff
new file mode 100644
index 0000000..80f70f0
Binary files /dev/null and b/src/assets/fonts/Inter-Bold.woff differ
diff --git a/src/components/App.jsx b/src/components/App.jsx
index 51c1568..4ec8673 100644
--- a/src/components/App.jsx
+++ b/src/components/App.jsx
@@ -2,36 +2,42 @@ import '../styles/styles.scss';
import * as THREE from 'three';
import { useRef, useState } from 'react';
import { Canvas, useFrame } from '@react-three/fiber';
-import { Text, Environment, MeshReflectorMaterial, useTexture } from '@react-three/drei';
+import { Text, Environment, MeshReflectorMaterial, useTexture, MeshDistortMaterial } from '@react-three/drei';
import { gsap } from 'gsap';
import dreiVideo from '../assets/videos/drei.mp4';
import floorTexture from '../assets/textures/texture1.jpg';
import floorTextureNormal from '../assets/textures/texture1_normal.jpg';
+import font from '../assets/fonts/Inter-Bold.woff';
const Floor = () => {
const [floor, normal] = useTexture([floorTexture, floorTextureNormal]);
return (
//
-
-
+
+
);
};
const App = () => {
+ const textRef = useRef();
+ const vec = useState(() => new THREE.Vector3());
const [video] = useState(() => {
const vid = document.createElement('video');
vid.src = dreiVideo;
@@ -41,25 +47,49 @@ const App = () => {
vid.play();
return vid;
});
+
+ useFrame((state) => {
+ // state.camera.position.lerp(vec, 0.1);
+ });
return (
<>
-
+
+
+
+
+ Designer & Developer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
>
);
};
diff --git a/src/scripts/app.js b/src/scripts/app.js
index 96f455f..6d6d195 100644
--- a/src/scripts/app.js
+++ b/src/scripts/app.js
@@ -1,4 +1,5 @@
import { Suspense } from 'react';
+import { Canvas } from '@react-three/fiber';
import { Loader } from '@react-three/drei';
import { render } from 'react-dom';
import App from '../components/App';
@@ -6,7 +7,9 @@ import App from '../components/App';
render(
<>
-
+
>,