Skip to content

Commit

Permalink
added a simple ui for my projects
Browse files Browse the repository at this point in the history
  • Loading branch information
bkcastro committed Nov 14, 2024
1 parent 602438e commit f7f54e5
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 21 deletions.
2 changes: 2 additions & 0 deletions github-142-svgrepo-com.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
172 changes: 151 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

h1 {
z-index: 99;
z-index: 2;
}

body {
Expand All @@ -35,13 +35,34 @@
}

canvas {
display: block;
position: absolute;
top: 0;
right: 0;
width: 100%;
z-index: 0;
z-index: -1;
height: 100%

}

h1:hover {
color: red;
transform: scale(1.1);
}

.email {
padding: 5px 5px;
width: min-content;
margin: 10px auto;
background-color: red;
}

.email:hover {
text-decoration: underline;
}

.icon:hover {
background-color: black;
cursor: pointer;
}


Expand All @@ -53,25 +74,131 @@ <h1 style="padding-top: 100px; margin: 0 0; font-family: CustomFont4; font-size:
<h1 style="margin: 0 0; padding: 0 0; font-family: CustomFont3; font-size: 50px">lilgremlin</h1>
<h1 style="margin: 0 0; padding: 0 0; font-family: CustomFont2;">Erick Castro</h1>

<script src=" https://cdn.jsdelivr.net/npm/fflate@0.8.2/umd/index.min.js "></script>
<p class="email" onclick="copyText()">c1brandon626@gmail.com</p>

<div style="display: flex; align-items: center; justify-content: center; gap:20px;">
<a class='icon' href="https://www.instagram.com/bkcastro_/" target="_blank">
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z" fill="#000000"/>
<path d="M18 5C17.4477 5 17 5.44772 17 6C17 6.55228 17.4477 7 18 7C18.5523 7 19 6.55228 19 6C19 5.44772 18.5523 5 18 5Z" fill="#ff0000"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.65396 4.27606C1 5.55953 1 7.23969 1 10.6V13.4C1 16.7603 1 18.4405 1.65396 19.7239C2.2292 20.8529 3.14708 21.7708 4.27606 22.346C5.55953 23 7.23969 23 10.6 23H13.4C16.7603 23 18.4405 23 19.7239 22.346C20.8529 21.7708 21.7708 20.8529 22.346 19.7239C23 18.4405 23 16.7603 23 13.4V10.6C23 7.23969 23 5.55953 22.346 4.27606C21.7708 3.14708 20.8529 2.2292 19.7239 1.65396C18.4405 1 16.7603 1 13.4 1H10.6C7.23969 1 5.55953 1 4.27606 1.65396C3.14708 2.2292 2.2292 3.14708 1.65396 4.27606ZM13.4 3H10.6C8.88684 3 7.72225 3.00156 6.82208 3.0751C5.94524 3.14674 5.49684 3.27659 5.18404 3.43597C4.43139 3.81947 3.81947 4.43139 3.43597 5.18404C3.27659 5.49684 3.14674 5.94524 3.0751 6.82208C3.00156 7.72225 3 8.88684 3 10.6V13.4C3 15.1132 3.00156 16.2777 3.0751 17.1779C3.14674 18.0548 3.27659 18.5032 3.43597 18.816C3.81947 19.5686 4.43139 20.1805 5.18404 20.564C5.49684 20.7234 5.94524 20.8533 6.82208 20.9249C7.72225 20.9984 8.88684 21 10.6 21H13.4C15.1132 21 16.2777 20.9984 17.1779 20.9249C18.0548 20.8533 18.5032 20.7234 18.816 20.564C19.5686 20.1805 20.1805 19.5686 20.564 18.816C20.7234 18.5032 20.8533 18.0548 20.9249 17.1779C20.9984 16.2777 21 15.1132 21 13.4V10.6C21 8.88684 20.9984 7.72225 20.9249 6.82208C20.8533 5.94524 20.7234 5.49684 20.564 5.18404C20.1805 4.43139 19.5686 3.81947 18.816 3.43597C18.5032 3.27659 18.0548 3.14674 17.1779 3.0751C16.2777 3.00156 15.1132 3 13.4 3Z" fill="#000000"/>
</svg>
</a>

<a class="icon" href="https://x.com/lunch_number" target="_blank">
<svg fill="#000000" height="30px" width="30px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 460.775 460.775" xml:space="preserve">
<path d="M285.08,230.397L456.218,59.27c6.076-6.077,6.076-15.911,0-21.986L423.511,4.565c-2.913-2.911-6.866-4.55-10.992-4.55
c-4.127,0-8.08,1.639-10.993,4.55l-171.138,171.14L59.25,4.565c-2.913-2.911-6.866-4.55-10.993-4.55
c-4.126,0-8.08,1.639-10.992,4.55L4.558,37.284c-6.077,6.075-6.077,15.909,0,21.986l171.138,171.128L4.575,401.505
c-6.074,6.077-6.074,15.911,0,21.986l32.709,32.719c2.911,2.911,6.865,4.55,10.992,4.55c4.127,0,8.08-1.639,10.994-4.55
l171.117-171.12l171.118,171.12c2.913,2.911,6.866,4.55,10.993,4.55c4.128,0,8.081-1.639,10.992-4.55l32.709-32.719
c6.074-6.075,6.074-15.909,0-21.986L285.08,230.397z"/>
</svg>
</a>

<a class='icon' href="https://www.linkedin.com/in/brandon-castro22/" target="_blank">
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M6.5 8C7.32843 8 8 7.32843 8 6.5C8 5.67157 7.32843 5 6.5 5C5.67157 5 5 5.67157 5 6.5C5 7.32843 5.67157 8 6.5 8Z" fill="#0F0F0F"/>
<path d="M5 10C5 9.44772 5.44772 9 6 9H7C7.55228 9 8 9.44771 8 10V18C8 18.5523 7.55228 19 7 19H6C5.44772 19 5 18.5523 5 18V10Z" fill="#0F0F0F"/>
<path d="M11 19H12C12.5523 19 13 18.5523 13 18V13.5C13 12 16 11 16 13V18.0004C16 18.5527 16.4477 19 17 19H18C18.5523 19 19 18.5523 19 18V12C19 10 17.5 9 15.5 9C13.5 9 13 10.5 13 10.5V10C13 9.44771 12.5523 9 12 9H11C10.4477 9 10 9.44772 10 10V18C10 18.5523 10.4477 19 11 19Z" fill="#0F0F0F"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 1C21.6569 1 23 2.34315 23 4V20C23 21.6569 21.6569 23 20 23H4C2.34315 23 1 21.6569 1 20V4C1 2.34315 2.34315 1 4 1H20ZM20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20Z" fill="#0F0F0F"/>
</svg>
</a>

<a class='icon' href="https://github.com/bkcastro" target="_blank">
<svg width="30px" height="30px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

<title>github [#142]</title>
<desc>Created with Sketch.</desc>
<defs>

</defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Dribbble-Light-Preview" transform="translate(-140.000000, -7559.000000)" fill="#000000">
<g id="icons" transform="translate(56.000000, 160.000000)">
<path d="M94,7399 C99.523,7399 104,7403.59 104,7409.253 C104,7413.782 101.138,7417.624 97.167,7418.981 C96.66,7419.082 96.48,7418.762 96.48,7418.489 C96.48,7418.151 96.492,7417.047 96.492,7415.675 C96.492,7414.719 96.172,7414.095 95.813,7413.777 C98.04,7413.523 100.38,7412.656 100.38,7408.718 C100.38,7407.598 99.992,7406.684 99.35,7405.966 C99.454,7405.707 99.797,7404.664 99.252,7403.252 C99.252,7403.252 98.414,7402.977 96.505,7404.303 C95.706,7404.076 94.85,7403.962 94,7403.958 C93.15,7403.962 92.295,7404.076 91.497,7404.303 C89.586,7402.977 88.746,7403.252 88.746,7403.252 C88.203,7404.664 88.546,7405.707 88.649,7405.966 C88.01,7406.684 87.619,7407.598 87.619,7408.718 C87.619,7412.646 89.954,7413.526 92.175,7413.785 C91.889,7414.041 91.63,7414.493 91.54,7415.156 C90.97,7415.418 89.522,7415.871 88.63,7414.304 C88.63,7414.304 88.101,7413.319 87.097,7413.247 C87.097,7413.247 86.122,7413.234 87.029,7413.87 C87.029,7413.87 87.684,7414.185 88.139,7415.37 C88.139,7415.37 88.726,7417.2 91.508,7416.58 C91.513,7417.437 91.522,7418.245 91.522,7418.489 C91.522,7418.76 91.338,7419.077 90.839,7418.982 C86.865,7417.627 84,7413.783 84,7409.253 C84,7403.59 88.478,7399 94,7399" id="github-[#142]">

</path>
</g>
</g>
</g>
</svg>
</a>
</div>

<div style="background-color: rgba(0, 0, 0, 0.482); padding: 20px; white-space: nowrap; overflow-x: auto;">
<div style="display: flex; gap: 15px; color: white;">

<!-- Games Category -->
<div class="grid-category" style="min-width: 200px; background: #222; padding: 15px; border-radius: 8px;">
<h3>Games</h3>
<ul>
<li><a href="link-to-game1" style="color: lightblue;">Game Project 1</a></li>
<li><a href="link-to-game2" style="color: lightblue;">Game Project 2</a></li>
<!-- Add more game projects here -->
</ul>
</div>

<!-- Art Category -->
<div class="grid-category" style="min-width: 200px; background: #222; padding: 15px; border-radius: 8px;">
<h3>Art</h3>
<ul>
<li><a href="link-to-art1" style="color: lightcoral;">Art Project 1</a></li>
<li><a href="link-to-art2" style="color: lightcoral;">Art Project 2</a></li>
<!-- Add more art projects here -->
</ul>
</div>

<!-- Photography Category -->
<div class="grid-category" style="min-width: 200px; background: #222; padding: 15px; border-radius: 8px;">
<h3>Photography</h3>
<ul>
<li><a href="link-to-photo1" style="color: lightgreen;">Photography Project 1</a></li>
<li><a href="link-to-photo2" style="color: lightgreen;">Photography Project 2</a></li>
<!-- Add more photography projects here -->
</ul>
</div>

<!-- Web Projects Category -->
<div class="grid-category" style="min-width: 200px; background: #222; padding: 15px; border-radius: 8px;">
<h3>Web Projects</h3>
<ul>
<li><a href="link-to-web1" style="color: lightyellow;">Web Project 1</a></li>
<li><a href="link-to-web2" style="color: lightyellow;">Web Project 2</a></li>
<!-- Add more web projects here -->
</ul>
</div>

</div>
</div>


<!-- <script src=" https://cdn.jsdelivr.net/npm/fflate@0.8.2/umd/index.min.js "></script>
-->
<!-- Three.js Library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script> -->
<!-- FBX Loader -->
<script src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r128/examples/js/loaders/FBXLoader.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r128/examples/js/loaders/FBXLoader.js"></script> -->
<!-- OrbitControls -->
<script src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r128/examples/js/controls/OrbitControls.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/gh/mrdoob/three.js@r128/examples/js/controls/OrbitControls.js"></script> -->

<div class="contain">

</div>

<div></div>
<script>
<!-- <script>
function copyText() {
const text = document.getElementById("text-to-copy").innerText;
navigator.clipboard.writeText(text).then(() => {
alert("Text copied to clipboard!");
}).catch(err => {
console.error("Could not copy text: ", err);
});
}
class Pentagram extends THREE.Mesh {
constructor() {
const geometry = new THREE.PlaneGeometry(1, 1)
const geometry = new THREE.PlaneGeometry(1.5, 1.5)
const material = new THREE.MeshBasicMaterial({
map: new THREE.TextureLoader().load(`./pentagrams/penta6.png`), // `./pentagrams/penta${1+Math.floor(Math.random()*5)}.png`
transparent: true,
Expand All @@ -88,21 +215,22 @@ <h1 style="margin: 0 0; padding: 0 0; font-family: CustomFont2;">Erick Castro</h
// Initialize the Scene
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, width / height, 0.1, 500);
camera.position.set(0, 0.3, 1.2); // Adjust camera position
camera.position.set(0, 4, 1.2); // Adjust camera position
//camera.lookAt(new THREE.Vector3(0,0,0))
const finalPosition = new THREE.Vector3(0, 0.2, 1.2)
// Renderer
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
renderer.setSize(width, height);
renderer.setClearColor(0x000000, 0);
document.body.appendChild(renderer.domElement);
// Orbit Controls
const controls = new THREE.OrbitControls(camera, renderer.domElement);
controls.enableDamping = true; // Smooth the orbit motion
controls.dampingFactor = 0.25;
controls.screenSpacePanning = false;

// const controls = new THREE.OrbitControls(camera, renderer.domElement);
// controls.enableDamping = true; // Smooth the orbit motion
// controls.dampingFactor = 0.25;
// controls.screenSpacePanning = false;
const clock = new THREE.Clock();
Expand Down Expand Up @@ -158,19 +286,21 @@ <h1 style="margin: 0 0; padding: 0 0; font-family: CustomFont2;">Erick Castro</h
const elapsedTime = clock.getElapsedTime();
const delta = clock.getDelta();
penta1.rotation.z = elapsedTime / 4;
//penta1.rotation.z = elapsedTime / 4;
//penta1.rotation.y = Math.sin(elapsedTime) / 4;
//scene.rotation.y = elapsedTime / 6;
camera.position.lerp(finalPosition, 0.05)
renderer.render(scene, camera);
if (mixer != null) {
mixer.update(delta)
}
// Update controls
controls.update();
// controls.update();
}
animate();
Expand All @@ -180,6 +310,6 @@ <h1 style="margin: 0 0; padding: 0 0; font-family: CustomFont2;">Erick Castro</h
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
});
</script>
</script> -->
</body>
</html>
1 change: 1 addition & 0 deletions linkedin-svgrepo-com.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed skeletonAvatar.fbx
Binary file not shown.
12 changes: 12 additions & 0 deletions x-symbol-svgrepo-com.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f7f54e5

Please sign in to comment.