Skip to content

Instantly share code, notes, and snippets.

View leognmotta's full-sized avatar
🏠
Working from home

Leonardo Motta leognmotta

🏠
Working from home
View GitHub Profile
@leognmotta
leognmotta / matrix.tsx
Last active March 3, 2025 12:29
AI generated
import React, { useEffect, useRef, useState } from 'react'
const MatrixConsole: React.FC = () => {
const canvasRef = useRef<HTMLCanvasElement>(null)
const [terminalLines, setTerminalLines] = useState<string[]>([])
const [isTyping, setIsTyping] = useState(false)
const terminalRef = useRef<HTMLDivElement>(null)
const [isHacked, setIsHacked] = useState(false)
const [showEasterEgg, setShowEasterEgg] = useState(false)
const [matrixMode, setMatrixMode] = useState<