diff --git a/src/components/BackgroundChess.astro b/src/components/BackgroundChess.astro new file mode 100644 index 0000000..e70d22c --- /dev/null +++ b/src/components/BackgroundChess.astro @@ -0,0 +1,35 @@ +--- +import type { HTMLAttributes } from "astro/types"; +import { cn } from "../lib/utils"; + +type Props = HTMLAttributes<"div">; + +const { class: className, ...rest } = Astro.props; +--- + +
+
+
+
+
+ + {/* Background Gradient */} +
+
+
diff --git a/src/components/BackgroundChess.tsx b/src/components/BackgroundChess.tsx deleted file mode 100644 index 23a3108..0000000 --- a/src/components/BackgroundChess.tsx +++ /dev/null @@ -1,76 +0,0 @@ -"use client"; -import React from "react"; -import { motion } from "framer-motion"; -import { cn } from "../lib/utils"; - -export const BackgroundChessCore = ({ className, ...rest }: { className?: string }) => { - const rows = new Array(150).fill(1); - const cols = new Array(100).fill(1); - let colors = [ - "--gray-100", - "--gray-200", - "--gray-300", - "--gray-400", - "--gray-500", - "--gray-600", - "--gray-700", - "--gray-800", - "--gray-900", - ]; - const getRandomColor = () => { - return colors[Math.floor(Math.random() * colors.length)]; - }; - - return ( -
- {rows.map((_, i) => ( - - {cols.map((_, j) => ( - - {j % 2 === 0 && i % 2 === 0 ? ( - - - - ) : null} - - ))} - - ))} -
- ); -}; - -export const BackgroundChess = React.memo(BackgroundChessCore); diff --git a/src/components/ExpandableHoloJobCard.tsx b/src/components/ExpandableHoloJobCard.tsx index 7ce7b4f..2c02640 100644 --- a/src/components/ExpandableHoloJobCard.tsx +++ b/src/components/ExpandableHoloJobCard.tsx @@ -91,9 +91,15 @@ export function ExpandableHoloJobCard({ > {active.title} + + {active.role} + {active.timePeriod} diff --git a/src/components/FlipWords.tsx b/src/components/FlipWords.tsx index c2c773f..3a8e25c 100644 --- a/src/components/FlipWords.tsx +++ b/src/components/FlipWords.tsx @@ -28,9 +28,6 @@ export const FlipWords = ({ }, duration); }, [isAnimating, duration, startAnimation]); - console.log(currentWord.split(""), currentWord.split("").map((letter, index) => ( - `${letter}` - ))) return ( { diff --git a/src/components/Globe.tsx b/src/components/Globe.tsx index 5ef365e..b5bb2f6 100644 --- a/src/components/Globe.tsx +++ b/src/components/Globe.tsx @@ -73,6 +73,7 @@ export function Globe() {
{ if (refElement.current) { - console.log(state.current); const { background, rotate, holo } = state.current; refElement.current?.style.setProperty("--m-x", `${holo.x}%`); refElement.current?.style.setProperty("--m-y", `${holo.y}%`); diff --git a/src/components/Particles.tsx b/src/components/Particles.tsx index 3395e74..057412f 100644 --- a/src/components/Particles.tsx +++ b/src/components/Particles.tsx @@ -41,7 +41,6 @@ export const Particles = (props: ParticlesProps) => { const particlesLoaded = async (container?: Container) => { if (container) { - console.log(container); controls.start({ opacity: 1, transition: { diff --git a/src/pages/index.astro b/src/pages/index.astro index 99ca4a2..04b9ceb 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,7 +8,7 @@ import Section from "../components/Section.astro"; import ConicHeader from "../components/ConicHeader.astro"; import { Particles } from "../components/Particles"; import Separator from "../components/Separator.astro"; -import { BackgroundChess } from "../components/BackgroundChess.tsx"; +import { BackgroundChess } from "../components/BackgroundChess.astro"; import { FlipWords } from "../components/FlipWords"; import Anchor from "../components/Anchor.astro"; import { mailUrl } from "../constants/site"; @@ -23,6 +23,41 @@ import Contact from "../sections/Contact.astro"; - +
+ +
+ +
+
+
+
+ +

+ Projects +

+
+
+
+
diff --git a/src/sections/Contact.astro b/src/sections/Contact.astro index 7a4b591..5e9ac72 100644 --- a/src/sections/Contact.astro +++ b/src/sections/Contact.astro @@ -1,12 +1,14 @@ --- import Anchor from "../components/Anchor.astro"; -import { BackgroundChess } from "../components/BackgroundChess"; +import BackgroundChess from "../components/BackgroundChess.astro"; import { FlipWords } from "../components/FlipWords"; import Section from "../components/Section.astro"; import { mailUrl } from "../constants/site"; ---
+ +
- +

Let's build the future together -

+

© {new Date().getFullYear()} Rubén Buzón.

diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 7eb97a5..f872288 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -89,6 +89,10 @@ export default { transform: "rotate(215deg) translateX(-100vh)", opacity: 0, }, + }, + grid: { + "0%": { transform: "translateY(-50%)" }, + "100%": { transform: "translateY(0)" }, }, }, animation: { @@ -96,6 +100,7 @@ export default { "accordion-up": "accordion-up 0.2s ease-out", spotlight: "spotlight 2s ease .75s 1 forwards", meteor: "meteor 5s linear infinite", + grid: "grid 15s linear infinite", }, }, },