Skip to content

Commit

Permalink
JOSH-DEV-2024: Updated Experience Colors To Refresh Memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lavallee committed Sep 22, 2024
1 parent b882bf8 commit dfc1984
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Use the latest LTS version of Node.js

- name: Install Modules
run: yarn install

Expand Down
19 changes: 15 additions & 4 deletions src/Experience.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as three from "three";
import { useState, useRef } from "react"
import { useFrame } from "@react-three/fiber";

function Experience() {
function Experience(positon: any) {

Check failure on line 5 in src/Experience.tsx

View workflow job for this annotation

GitHub Actions / deploy

'positon' is declared but its value is never read.
// This reference gives us direct access to the THREE.Mesh object
const cube = useRef<three.Mesh>(null);

Expand All @@ -16,16 +16,27 @@ function Experience() {
});

return (
<>
<mesh
// rotation={[0,0,0]}
scale={.75}
position={[-3, 0, 0]}
>
<sphereGeometry />
<meshBasicMaterial color={"purple"}/>
</mesh>

<mesh
ref={cube}
scale={clicked ? 1.5 : 1}
scale={clicked ? 2 : 1}
onClick={() => click(!clicked)}
onPointerOver={(event) => (event.stopPropagation(), hover(true))}
onPointerOut={() => hover(false)}
>
<boxGeometry args={[1, 1, 1]} />
{hovered ? <meshNormalMaterial /> : <meshStandardMaterial color="hotpink" />}
<boxGeometry />
{hovered ? <meshBasicMaterial color={"purple"}/> : <meshBasicMaterial color={"yellow"} />}
</mesh>
</>
);
}

Expand Down

0 comments on commit dfc1984

Please sign in to comment.