-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,145 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { InstagramLogoIcon, GitHubLogoIcon, TwitterLogoIcon } from '@radix-ui/react-icons'; | ||
|
||
export const SOCIAL_LINKS = [ | ||
{ | ||
name: "GitHub", | ||
link: "https://github.com/setsun", | ||
icon: <GitHubLogoIcon /> | ||
}, | ||
{ | ||
name: "Instagram", | ||
link: "https://instagram.com/i.am.setsun", | ||
icon: <InstagramLogoIcon /> | ||
}, | ||
{ | ||
name: "Twitter", | ||
link: "https://twitter.com/setsun_", | ||
icon: <TwitterLogoIcon /> | ||
}, | ||
// { | ||
// name: "Spotify", | ||
// link: "https://open.spotify.com/user/3cl7vscgpyz5agjjh7fxg0l1z?si=66806580a1d24d68" | ||
// }, | ||
// { | ||
// name: "SoundCloud", | ||
// link: "https://soundcloud.com/setsun_ai" | ||
// } | ||
]; | ||
|
||
|
||
export const NAVIGATION_ITEMS = [ | ||
{ | ||
name: 'Writing', | ||
link: '/writing' | ||
}, | ||
{ | ||
name: 'Visualizers', | ||
link: '/visualizers' | ||
}, | ||
{ | ||
name: 'Games', | ||
link: '/games' | ||
}, | ||
{ | ||
name: 'Photos', | ||
link: '/photos' | ||
}, | ||
{ | ||
name: 'Now Playing', | ||
link: '/now-playing' | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,18 @@ | ||
import {} from '@radix-ui/react-icons'; | ||
import classNames from 'classnames'; | ||
import { SOCIAL_LINKS } from "../common/constants"; | ||
|
||
const SOCIAL_LINKS = [ | ||
{ | ||
name: "GitHub", | ||
link: "https://github.com/setsun", | ||
}, | ||
{ | ||
name: "Instagram", | ||
link: "https://instagram.com/i.am.setsun" | ||
}, | ||
{ | ||
name: "Twitter", | ||
link: "https://twitter.com/setsun_" | ||
}, | ||
|
||
{ | ||
name: "Spotify", | ||
link: "https://open.spotify.com/user/3cl7vscgpyz5agjjh7fxg0l1z?si=66806580a1d24d68" | ||
}, | ||
{ | ||
name: "SoundCloud", | ||
link: "https://soundcloud.com/setsun_ai" | ||
} | ||
]; | ||
|
||
const Footer: React.FC = () => { | ||
return ( | ||
<footer className="flex justify-center gap-4 my-8"> | ||
{SOCIAL_LINKS.map(({ name, link }) => ( | ||
<a href={link} key={name} target="_blank" rel="noopener noreferrer"> | ||
{name} | ||
</a> | ||
))} | ||
</footer> | ||
); | ||
interface Props { | ||
className?: string; | ||
} | ||
|
||
const Footer: React.FC<Props> = ({ className }) => ( | ||
<footer className={classNames('flex justify-center gap-4 my-8', className)}> | ||
{SOCIAL_LINKS.map(({ name, link, icon }) => ( | ||
<a href={link} key={name} target="_blank" rel="noopener noreferrer"> | ||
{icon} | ||
</a> | ||
))} | ||
</footer> | ||
); | ||
|
||
export default Footer; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { HamburgerMenuIcon, Cross1Icon } from '@radix-ui/react-icons'; | ||
import classNames from 'classnames'; | ||
import { NAVIGATION_ITEMS } from '../common/constants'; | ||
|
||
interface Props { | ||
className?: string | ||
} | ||
|
||
const SideNavigation: React.FC<Props> = ({ className }) => ( | ||
<nav className={classNames('p-4 border-r-2 border-r-zinc-200 min-w-max', className)}> | ||
{/* <HamburgerMenuIcon className='h-8 w-8' /> */} | ||
|
||
{/* <Cross1Icon className='h-8 w-8' /> */} | ||
|
||
<div className='flex flex-col gap-1'> | ||
{NAVIGATION_ITEMS.map(({ name, link }) => ( | ||
<a href={link} key={link}> | ||
{name} | ||
</a> | ||
))} | ||
</div> | ||
</nav> | ||
); | ||
|
||
export default SideNavigation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { PerspectiveCamera } from '@react-three/drei'; | ||
import { DoubleSide } from 'three'; | ||
import { useTurntable } from '../../hooks/useTurntable'; | ||
|
||
const WireframePlanet = () => { | ||
const ringOneTurntable = useTurntable({ speed: 0.0001 }); | ||
const ringTwoTurntable = useTurntable({ speed: 0.0001 }); | ||
const planetTurntable = useTurntable({ speed: 0.0001, reverse: true }); | ||
|
||
return ( | ||
<> | ||
{/* <PerspectiveCamera | ||
makeDefault | ||
args={[75, window.innerWidth / window.innerHeight, 0.01, 5000]} | ||
position={[550, 325, -500]} | ||
/> */} | ||
|
||
<mesh rotation={[0, Math.PI / 2, 0]} ref={ringOneTurntable}> | ||
<ringGeometry args={[15.5, 16, 100, 100]} /> | ||
<meshBasicMaterial attach="material" color="white" side={DoubleSide} /> | ||
</mesh> | ||
|
||
<mesh ref={ringTwoTurntable}> | ||
<ringGeometry args={[15.5, 16, 100, 100]} /> | ||
<meshBasicMaterial attach="material" color="white" side={DoubleSide} /> | ||
</mesh> | ||
|
||
<mesh ref={planetTurntable}> | ||
<dodecahedronGeometry args={[10, 10]} /> | ||
<meshBasicMaterial attach="material" color="#fff" wireframe /> | ||
</mesh> | ||
</> | ||
) | ||
} | ||
|
||
export default WireframePlanet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useRef } from 'react'; | ||
import { useFrame } from '@react-three/fiber'; | ||
|
||
interface Props { | ||
speed?: number; | ||
reverse?: boolean; | ||
axis?: 'x' | 'y' | 'z'; | ||
} | ||
|
||
export function useTurntable({ speed = 0.01, reverse, axis = 'y' }: Props) { | ||
const ref = useRef<any>(null!); | ||
|
||
useFrame(() => { | ||
const finalSpeed = reverse ? speed * -1 : speed; | ||
|
||
if (Number.isFinite(ref.current?.rotation?.[axis])) { | ||
ref.current.rotation[axis] += finalSpeed; | ||
} | ||
}); | ||
|
||
return ref; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.