Skip to content

Commit

Permalink
feat: Disable globe
Browse files Browse the repository at this point in the history
  • Loading branch information
simonknittel committed Feb 3, 2024
1 parent a0e4e1b commit c6aab3d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Binary file removed app/public/assets/dot.png
Binary file not shown.
File renamed without changes.
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import clsx from "clsx";
import { useEffect, useRef } from "react";
import * as THREE from "three";
import earthPng from "./earth.png";

interface Props {
className?: string;
Expand Down Expand Up @@ -32,7 +33,7 @@ const Globe = ({ className, width = 0, height = 0 }: Readonly<Props>) => {

const geometry = new THREE.SphereGeometry(5, 64, 64);

const texture = new THREE.TextureLoader().load("./assets/earth.png");
const texture = new THREE.TextureLoader().load(earthPng.src);

// TODO: Add inner glow

Expand Down
5 changes: 2 additions & 3 deletions app/src/app/_components/modules/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
SiTypescript,
SiUnity,
} from "react-icons/si";
import Globe from "./Globe";
import styles from "./Hero.module.css";
import { Photo } from "./Photo";
import Technology from "./Technology";
Expand Down Expand Up @@ -141,11 +140,11 @@ const Hero = ({ disableBlog = false }: Readonly<Props>) => {
</div>
</div>

<Globe
{/* <Globe
className="absolute bottom-0 left-1/2 -translate-x-1/2 h-[512px] w-[3072px]"
width={3072}
height={512}
/>
/> */}
</div>
);
};
Expand Down

0 comments on commit c6aab3d

Please sign in to comment.