From 6fdc5418309b7e03e72978763b43d667675fd809 Mon Sep 17 00:00:00 2001 From: Akhilnair1306 <111660827+Akhilnair1306@users.noreply.github.com> Date: Thu, 23 Oct 2025 18:48:42 +0530 Subject: [PATCH] new/terminal-inspired-accordion --- .../react/terminal-accordion/README.md | 107 ++++++++++++++++++ .../terminal-accordion/TerminalAccordion.jsx | 88 ++++++++++++++ .../react/terminal-accordion/component.json | 14 +++ 3 files changed, 209 insertions(+) create mode 100644 components/section/react/terminal-accordion/README.md create mode 100644 components/section/react/terminal-accordion/TerminalAccordion.jsx create mode 100644 components/section/react/terminal-accordion/component.json diff --git a/components/section/react/terminal-accordion/README.md b/components/section/react/terminal-accordion/README.md new file mode 100644 index 0000000..1d128a3 --- /dev/null +++ b/components/section/react/terminal-accordion/README.md @@ -0,0 +1,107 @@ +# TerminalAccordion (React) + +A cyberpunk-inspired, terminal-themed accordion component built with React. Features command-line aesthetics, smooth animations, and a retro hacker vibe perfect for displaying expandable content with style. + +--- + +## Features + +- **Terminal Aesthetics** - Command-line inspired design with monospace fonts and neon accents +- **Cyberpunk Theme** - Dark background with neon green (#00FF41) and cyan (#00D9FF) colors +- **Smooth Animations** - Fluid expand/collapse transitions with rotating chevron indicators +- **Fully Responsive** - Works seamlessly across desktop, tablet, and mobile devices +- **Accessible** - Built with ARIA attributes and keyboard navigation support +- **Lightweight** - Minimal dependencies, optimized performance +- **Single Expansion** - Only one item can be expanded at a time for focused viewing +- **Hover Effects** - Interactive glowing borders and background highlights + +--- + +## 📦 Usage + +This component is used for accordion. + +--- + + +This component relies on the following: + +- **React** +- **Tailwind CSS** (for styling) +- **react-icons/fa** (for icons) + +--- + +## ⚙️ Installation + +Install the required icons package: + +```bash +npm install react-icons +# or +pnpm add react-icons +# or +yarn add react-icons +``` + +--- + +## Usage + +This file exports a preview wrapper `App` that renders the card for the docs site. To use the component in your app, import or copy the `SplitLoginCard` function and render it inside a page/container: + +```jsx +import React from 'react'; +import SplitLoginCard from './SplitLoginCard'; // if you export SplitLoginCard from the file + +export default function AuthPage() { + return ( +