Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinAlandzes committed Apr 15, 2024
1 parent dd9a4d4 commit 7533954
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 371 deletions.
Binary file added frontend/public/resume.pdf
Binary file not shown.
Binary file added frontend/public/room-transformed.glb
Binary file not shown.
19 changes: 18 additions & 1 deletion frontend/src/app/Macbook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Auto-generated by: https://github.com/pmndrs/gltfjsx

import * as THREE from 'three'
import React, {useRef} from 'react'
import {useGLTF} from '@react-three/drei'
import {Html, useGLTF} from '@react-three/drei'
import {GLTF} from "three-stdlib";

type GLTFResult = GLTF & {
Expand Down Expand Up @@ -115,6 +115,23 @@ export default function Model(props: JSX.IntrinsicElements['group']) {
<mesh geometry={nodes.Circle009_1.geometry} material={nodes.Circle009_1.material}/>
</group>
</group>
<rectAreaLight
width={2.5}
height={1.65}
intensity={65}
color={'#ff6900'}
rotation={[-0.1, Math.PI, 0]}
position={[0, 0.55, -1.15]}
/>
<Html
transform
wrapperClass="htmlScreen"
distanceFactor={1.17}
position={[0, 1.56, -1.4]}
rotation-x={-0.256}
>
<iframe src="resume.pdf"/>
</Html>

</group>
)
Expand Down
34 changes: 34 additions & 0 deletions frontend/src/app/Room.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
Command: npx gltfjsx@6.2.16 room.glb --types --transform
Files: room.glb [3.25KB] > /Users/dustinalandzes/PycharmProjects/DustinAlandzes.github.io/frontend/public/room-transformed.glb [1.92KB] (41%)
*/

import * as THREE from 'three'
import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei'
import { GLTF } from 'three-stdlib'

type GLTFResult = GLTF & {
nodes: {
Room: THREE.Mesh
Window: THREE.Mesh
}
materials: {
Material: THREE.MeshStandardMaterial
}
}

type ContextType = Record<string, React.ForwardRefExoticComponent<JSX.IntrinsicElements['mesh']>>

export default function Model(props: JSX.IntrinsicElements['group']) {
const { nodes, materials } = useGLTF('/room-transformed.glb') as GLTFResult
return (
<group {...props} dispose={null}>
<mesh geometry={nodes.Room.geometry} material={materials.Material} scale={[3.809, 2.252, 3.753]} />
<mesh geometry={nodes.Window.geometry} material={nodes.Window.material} position={[-3.649, 0.368, -1.783]} rotation={[-Math.PI, 0, 0]} scale={[-0.227, -1.476, -1.121]} />
</group>
)
}

useGLTF.preload('/room-transformed.glb')
122 changes: 18 additions & 104 deletions frontend/src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,107 +1,21 @@
:root {
--max-width: 1100px;
--border-radius: 12px;
--font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
"Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
"Fira Mono", "Droid Sans Mono", "Courier New", monospace;

--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;

--primary-glow: conic-gradient(
from 180deg at 50% 50%,
#16abff33 0deg,
#0885ff33 55deg,
#54d6ff33 120deg,
#0071ff33 160deg,
transparent 360deg
);
--secondary-glow: radial-gradient(
rgba(255, 255, 255, 1),
rgba(255, 255, 255, 0)
);

--tile-start-rgb: 239, 245, 249;
--tile-end-rgb: 228, 232, 233;
--tile-border: conic-gradient(
#00000080,
#00000040,
#00000030,
#00000020,
#00000010,
#00000010,
#00000080
);

--callout-rgb: 238, 240, 241;
--callout-border-rgb: 172, 175, 176;
--card-rgb: 180, 185, 188;
--card-border-rgb: 131, 134, 135;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;

--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
--secondary-glow: linear-gradient(
to bottom right,
rgba(1, 65, 255, 0),
rgba(1, 65, 255, 0),
rgba(1, 65, 255, 0.3)
);

--tile-start-rgb: 2, 13, 46;
--tile-end-rgb: 2, 5, 19;
--tile-border: conic-gradient(
#ffffff80,
#ffffff40,
#ffffff30,
#ffffff20,
#ffffff10,
#ffffff10,
#ffffff80
);

--callout-rgb: 20, 20, 20;
--callout-border-rgb: 108, 108, 108;
--card-rgb: 100, 100, 100;
--card-border-rgb: 200, 200, 200;
}
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

html,
body {
max-width: 100vw;
overflow-x: hidden;
body,
#root
{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}

a {
color: inherit;
text-decoration: none;
}

@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}
.htmlScreen iframe
{
width: 1024px;
height: 670px;
border: none;
border-radius: 20px;
background: #000000;
}
Loading

0 comments on commit 7533954

Please sign in to comment.