File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ 'use client'
2+
13import { motion , AnimatePresence } from 'framer-motion'
24import { Check , Copy } from 'lucide-react'
35import React , { useEffect , useState } from 'react'
@@ -21,7 +23,7 @@ const CopyPasteButton = () => {
2123 < motion . button
2224 whileTap = { { scale : 0.9 , opacity : 0.8 } }
2325 onClick = { ( ) => setCopied ( ! copied ) }
24- className = "rounded-lg border border-gray-100 bg-gray-900 p-3 text-white"
26+ className = "rounded-lg border border-gray-100 bg-red-500 p-3 text-white"
2527 >
2628 < AnimatePresence mode = "wait" initial = { false } >
2729 { copied ? (
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Image from 'next/image'
55import Link from 'next/link'
66import HeartbeatButton from '../components/button/HeartbeatButton'
77import Card from './Card'
8+ import CopyPasteButton from '../playground/CopyPasteButton'
89
910const data = [
1011 {
@@ -37,6 +38,16 @@ const data = [
3738 component : < SimpleToggle /> ,
3839 link : '/components/toggle' ,
3940 } ,
41+ {
42+ title : 'Accordion' ,
43+ image : '/images/ui/accordion.svg' ,
44+ link : '/components/accordion' ,
45+ } ,
46+ {
47+ title : 'Playground' ,
48+ component : < CopyPasteButton /> ,
49+ link : '/playground' ,
50+ } ,
4051]
4152
4253const ComponentCards = ( ) => {
You can’t perform that action at this time.
0 commit comments