Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

1.3 KB
Raw Blame
// Source: https://magicui.design/docs/components/aurora-text
// Licensed under MIT. Vendored implementation. Renders inline text with
// a slow-shifting aurora gradient (brand-500 → violet → brand-700) so
// the hero H1's accent phrase ("ten minutes" in the content doc) draws
// the eye without competing with the surrounding white text.
'use client';

import { useReducedMotion } from 'framer-motion';
import type { ReactNode } from 'react';
import { cn } from '@/lib/utils';

interface AuroraTextProps {
  children: ReactNode;
  className?: string;
}

export function AuroraText({ children, className }: AuroraTextProps) {
  const prefersReducedMotion = useReducedMotion();
  return (
    <span
      className={cn(
        // VelvetEdge aurora — mint → emerald → mint. The hue family stays
        // inside the emerald gem so the accent reads as a luminous variant
        // of the body H1 colour rather than a competing jewel. Reduced
        // motion freezes the gradient at its midpoint.
        'inline-block bg-gradient-to-r from-velvet-emerald-mint via-velvet-emerald-light to-velvet-emerald-mint bg-clip-text text-transparent',
        !prefersReducedMotion && 'animate-aurora-shift [background-size:200%_100%]',
        className,
      )}
    >
      {children}
    </span>
  );
}