MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / ImageSection

Function ImageSection

src/showcase/blocks/features/FeaturesWIthImage.tsx:5–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import React, { useState } from 'react'
4
5const ImageSection = () => {
6 const [activeImage, setActiveImage] = useState(1)
7
8 const ImageTabs = [
9 {
10 name: 'UI Library',
11 description:
12 'Build faster. Launch sooner. Build your next project with SyntaxUI.',
13 icon: <Rss />,
14 },
15 {
16 name: 'Templates',
17 description:
18 'Get templates made with Next.js and Tailwind CSS for your next project.',
19 icon: <BadgeDollarSign />,
20 },
21 {
22 name: 'Ui Blocks',
23 description: 'Get UI blocks and components for your next project.',
24 icon: <BookOpenText />,
25 },
26 ]
27
28 // Images taken from https://dashboardsdesign.com/
29
30 const Images = [
31 {
32 imageNumber: 1,
33 imageSource:
34 'https://dashboardsdesign.com/img/dashboards/dashboard-05-custom.png',
35 },
36 {
37 imageNumber: 2,
38 imageSource:
39 'https://dashboardsdesign.com/img/dashboards/dashboard-02.png',
40 },
41 {
42 imageNumber: 3,
43 imageSource:
44 'https://dashboardsdesign.com/img/dashboards/dashboard-03.png',
45 },
46 ]
47
48 const handleImageChange = (index: number) => {
49 setActiveImage(index)
50 }
51
52 return (
53 <div className="bg-white py-16">
54 <div className="mx-auto max-w-2xl space-y-4 sm:text-center">
55 <p className="mt-2 text-3xl font-semibold tracking-tight text-gray-800 sm:text-4xl">
56 See SyntaxUI in action
57 </p>
58 <p className="text-md text-gray-600">
59 Watch how SyntaxUI can help you get started with your project in
60 seconds with our pre-built components and blocks.
61 </p>
62 </div>

Callers

nothing calls this directly

Calls 1

handleImageChangeFunction · 0.85

Tested by

no test coverage detected