This file contains hidden or 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
"use client"; | |
import { useAuth } from "@clerk/nextjs"; | |
import * as Sentry from "@sentry/nextjs"; | |
import { useEffect, useState } from "react"; | |
function createWidget() { | |
return Sentry.getFeedback()?.createWidget(); | |
} |
This file contains hidden or 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
'use client' | |
import React, { useState, useEffect } from "react"; | |
import { motion, useAnimation, useMotionValue, useTransform } from "framer-motion"; | |
import Image from "next/image"; | |
import { RightArrow } from "../globals/Icons"; | |
const images = []; | |
for (let i = 1; i <= 14; i++) { | |
images.push(import(`@/assets/quick-carousel/${i}.webp`).then(module => module.default)); | |
} |
This file contains hidden or 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
'use client'; | |
import Image from 'next/image'; | |
import React, { useEffect, useState } from 'react'; | |
import { HomeIcon , ProjectsIcon, ExperienceIcon, BehanceIcon, Behance} from './Icons'; | |
import { MagneticBackgroundTab } from './MagneticBackgroundTab'; | |
export const Header = () => { | |
const [isSticky, setIsSticky] = useState(false); | |
useEffect(() => { |
This file contains hidden or 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
'use client'; | |
import { useRotateYValues } from "@/utils/customHooks"; | |
import { motion, useMotionValue } from "framer-motion"; | |
import { useState } from "react"; | |
import { AI, Motion, Gears, Code, Cube } from "../globals/Icons"; | |
const ITEMS = [ | |
{ |
This file contains hidden or 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
'use client' | |
import { AnimatePresence, motion } from "framer-motion"; | |
import Image from "next/image"; | |
import React, { useState, useEffect, useRef } from "react"; | |
import { copyToClipboard } from "@/utils/Copy"; | |
import { DockDemo } from "../ContactMe/DockDemo"; | |
export default function FixedDrawer() { | |
const refMenu = useRef(null); | |
const [openMenu, setOpenMenu] = useState(false); | |
const [Copied, setCopied] = useState(false); |
This file contains hidden or 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
'use client'; | |
import Image from 'next/image'; | |
import { Drawer } from 'vaul'; | |
import { RightArrow } from '../Icons'; | |
export function DrawerComponent() { | |
return ( | |
<Drawer.Root shouldScaleBackground> |
This file contains hidden or 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
<body> | |
<div style="filter: blur(1px);pointer-events:none;position:fixed;min-width:100%;margin-top:0;height:180%;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);z-index:0;opacity:0.3"> | |
<div style="border-radius:99999px;position:absolute;top:50%;left:50%;width:100vw;min-width:1000px;height:100vh;transform:translate(-50%, -50%) scale(0.6);overflow:hidden"> | |
<div class="ColorBlobs_SpinningGradient__DpGtx" style="position:absolute;top:50%;left:50%;width:100vw;height:100vw;transform:translate(-50%, -50%)" | |
animation: ColorBlobs_spin__CbrXa 8s linear infinite; | |
background: conic-gradient(from 0deg, #08f, #f60, #bbffa1, #4c00ff, #ab2666, #09f); | |
></div> | |
</div></div> |
This file contains hidden or 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
'use client'; | |
import { useEffect, useRef, useState } from 'react'; | |
export const LazyLoad = ({ children }) => { | |
const [isVisible, setIsVisible] = useState(false); | |
const ref = useRef(); | |
useEffect(() => { | |
const observer = new IntersectionObserver( | |
([entry]) => { |
This file contains hidden or 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
import time | |
from collections import defaultdict | |
# readign nodes data from nodes.csv | |
def read_nodes(file): | |
with open(file, 'r', encoding='utf-8') as f: | |
lines = f.readlines()[1:] # Skip header | |
nodes = {} |