1
+ import Card from './Card' ;
2
+ import testImg from '../assets/cardImg.png' ;
3
+ import { Button , Typography } from '@neo4j-ndl/react' ;
4
+ import { AcademicCapIconOutline , RocketLaunchIconOutline } from '@neo4j-ndl/react/icons' ;
5
+
6
+ export default function DemoCards ( ) {
7
+ return (
8
+ < div className = "min-h-screen max-h-full p-8 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 n-bg-palette-neutral-bg-default" >
9
+ < Card layout = "vertical" imageSrc = { testImg } imageSize = "full" className = "h-auto w-96" >
10
+ < Card . Header > Header text</ Card . Header >
11
+ < Card . Subheader > Subtitle or description</ Card . Subheader >
12
+ < Card . Content >
13
+ < p > Some description about relatively important things but not too long since this is a card component.</ p >
14
+ < ul className = "list-disc list-inside" >
15
+ < li > 1 Key information</ li >
16
+ < li > 12.59 Key information</ li >
17
+ < li > 3 Key information</ li >
18
+ </ ul >
19
+ < div className = 'flex flex-row min-w-full justify-between' >
20
+ < Button size = 'small' color = 'danger' className = 'w-2/5 mx-2.5' > < Typography variant = "body-small" > Cancel</ Typography > </ Button >
21
+ < Button size = 'small' color = 'primary' className = 'w-2/5 mx-2.5' > < Typography variant = "body-small" > Sign</ Typography > </ Button >
22
+ </ div >
23
+ </ Card . Content >
24
+ </ Card >
25
+
26
+ < Card layout = "vertical" imageSrc = { testImg } imageSize = "full" className = "h-auto w-96" >
27
+ < Card . Content >
28
+ < p > Some description about relatively important things but not too long since this is a card component.</ p >
29
+ < ul className = "list-disc list-inside" >
30
+ < li > 18 Key information</ li >
31
+ < li > 12.59 Key information</ li >
32
+ < li > 5 Key information</ li >
33
+ </ ul >
34
+ </ Card . Content >
35
+ </ Card >
36
+
37
+ < Card layout = "vertical" className = "h-auto w-96" iconSystem = { RocketLaunchIconOutline } >
38
+ < Card . Header > Header text</ Card . Header >
39
+ < Card . Content >
40
+ < p > Some description about relatively important things but not too long since this is a card component.</ p >
41
+ < ul className = "list-disc list-inside" >
42
+ < li > 18 Key information</ li >
43
+ < li > 12.59 Key information</ li >
44
+ < li > 5 Key information</ li >
45
+ </ ul >
46
+ </ Card . Content >
47
+ </ Card >
48
+
49
+ < Card layout = "horizontal" imageSrc = { testImg } imageSize = "full" className = "h-72" >
50
+ < Card . Header > Header text</ Card . Header >
51
+ < Card . Subheader > Subtitle or description</ Card . Subheader >
52
+ < Card . Content >
53
+ < p > Some description about relatively important things but not too long since this is a card component.</ p >
54
+ < ul className = "list-disc list-inside" >
55
+ < li > 18 Key information</ li >
56
+ < li > 12.59 Key information</ li >
57
+ < li > 5 Key information</ li >
58
+ </ ul >
59
+ < div className = 'flex flex-row min-w-full justify-between' >
60
+ < Button size = 'small' color = 'danger' className = 'w-2/5 mx-2.5' > < Typography variant = "body-small" > Cancel</ Typography > </ Button >
61
+ < Button size = 'small' color = 'primary' className = 'w-2/5 mx-2.5' > < Typography variant = "body-small" > Sign</ Typography > </ Button >
62
+ </ div >
63
+ </ Card . Content >
64
+ </ Card >
65
+
66
+ < Card layout = "horizontal" imageSrc = { testImg } imageSize = "full" className = "h-44" >
67
+ < Card . Content >
68
+ < p > Some description about relatively important things but not too long since this is a card component.</ p >
69
+ < ul className = "list-disc list-inside" >
70
+ < li > 1 Key information</ li >
71
+ < li > 12.59 Key information</ li >
72
+ < li > 3 Key information</ li >
73
+ </ ul >
74
+ </ Card . Content >
75
+ </ Card >
76
+
77
+ < Card layout = "horizontal" iconSystem = { AcademicCapIconOutline } >
78
+ < Card . Header > Header text</ Card . Header >
79
+ < Card . Content >
80
+ < p > Some description about relatively important things but not too long since this is a card component.</ p >
81
+ < ul className = "list-disc list-inside" >
82
+ < li > 18 Key information</ li >
83
+ < li > 12.59 Key information</ li >
84
+ < li > 5 Key information</ li >
85
+ </ ul >
86
+ </ Card . Content >
87
+ </ Card >
88
+
89
+ </ div >
90
+ ) ;
91
+ }
0 commit comments