Skip to content

Commit 330597e

Browse files
authored
✨ added more cards (#266)
* ✨ added accordion & playground cards * ✨ added stepper component
1 parent 98545e5 commit 330597e

File tree

4 files changed

+39
-1
lines changed

4 files changed

+39
-1
lines changed

public/images/ui/accordion.svg

Lines changed: 10 additions & 0 deletions
Loading

public/images/ui/stepper.svg

Lines changed: 10 additions & 0 deletions
Loading

src/showcase/playground/CopyPasteButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client'
2+
13
import { motion, AnimatePresence } from 'framer-motion'
24
import { Check, Copy } from 'lucide-react'
35
import 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 ? (

src/showcase/ui-group/ComponentCards.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Image from 'next/image'
55
import Link from 'next/link'
66
import HeartbeatButton from '../components/button/HeartbeatButton'
77
import Card from './Card'
8+
import CopyPasteButton from '../playground/CopyPasteButton'
89

910
const data = [
1011
{
@@ -37,6 +38,21 @@ 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+
},
51+
{
52+
title: 'Stepper',
53+
image: '/images/ui/stepper.svg',
54+
link: '/components/stepper',
55+
},
4056
]
4157

4258
const ComponentCards = () => {

0 commit comments

Comments
 (0)