cursify

repository·main·Indexed 24 days ago

https://github.com/ui-layouts/cursify

A starter repository based on UI-LAYOUT for building and documenting high-quality UI components using Next.js, Tailwind CSS, and Framer Motion. It includes a variety of interactive cursor effects, such as the Blob Cursor, FairyDustCursor, and Canvas Cursor, along with custom hooks like useMediaQuery and useFluidCursor.

Tokens
14K
Snippets
30
Records
85
Agent score
84%

What's inside cursify

  1. Understand the cursify folder structure

    main

    The repository is organized into several key directories:

    • app/: Contains the Next.js App Router structure, including documentation pages (docs-page) and live component previews (live-components).
    • components/: The main component library, subdivided into:
      • core/: Fundamental UI elements (e.g., blur-vignette.tsx).
      • labs/: Experimental or specialized components.
      • website/: Components specific to the documentation/website UI (e.g., header.tsx, sidebar.tsx, and ui/ for base primitives).
    • registry/: A collection of component variations and specific UI patterns (e.g., button/, card/, footers/).
    • content/: MDX files used for component documentation.
    • hooks/: Custom React hooks like useMediaQuery, useClickOutside, and useZustStore.
    • lib/: Utility functions and helper logic.
    • configs/: Configuration files for documentation and content.
  2. Implement the Neural Glow Cursor Effect

    main

    The NeuralGlow component is a React client component that uses WebGL to create an interactive, dynamic bubble effect that tracks cursor movement in real time. It uses custom shaders to render a blue/indigo color palette with a 'neural' noise pattern that reacts to pointer position and scroll progress.

    To use it, import the component and place it within your layout. Note that the component uses pointer-events-none and absolute positioning, so it is designed to overlay existing content without interfering with clicks.