-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.jsx
96 lines (82 loc) · 2.4 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import React from 'react';
import ReactDOM from 'react-dom/client';
import Badge from './src/components/Badge/index'
import Banner from './src/components/Banner/index'
import Card from './src/components/Card/index'
import Testimonial from './src/components/Testimonial/index'
import Tooltip from './src/components/Tooltip/index'
import image2 from "./src/assets/images/craig.png";
import Drawer from './src/components/Drawer/Drawer';
function App() {
/**
* TEXT OPTIONS FOR ALL COMPONENTS:
* You can edit the below text declarations for the specified component
* if values are left undefined, default text will be generated
*/
/**
* TOOLTIP
*/
const titleToolTip = "";
const bodyTextToolTip = "";
/**
* BADGE
* Colors: gray, red, yellow, green, blue, indigo, purple, pink -- if left undefined, the default color will be 'green'
* Type: square, pill -- if left undefined, the default type will be 'Square'
*/
const colorBadge = "";
const textBadge = "";
const typeBadge = "";
/**
* BANNER
*/
const textBanner = "";
/**
* CARD
*/
const titleTextCard = "";
const bodyTextCard = "";
/**
* TESTIMONIAL
* img: can test an alt image by using image2 (without quotes around it)
*/
const imgTestimonial = null;
const textTestimonial = "";
const textNameTestimonial = "";
const textWorkTitleTestimonial = "";
return (
<>
<h3>Drawer</h3>
<Drawer />
<h3>Tooltip</h3>
<Tooltip titleText={titleToolTip} bodyText={bodyTextToolTip}>
<Tooltip.Element />
</Tooltip>
<h3>Badge</h3>
<Badge color={colorBadge} text={textBadge} type={typeBadge}>
<Badge.Element />
</Badge>
<h3>Banner</h3>
<Banner text={textBanner}>
<Banner.Text />
<Banner.Element varient="success" />
<Banner.Element varient="warning" />
<Banner.Element varient="error" />
<Banner.Element varient="neutral" />
</Banner>
<h3>Card</h3>
<Card titleText={titleTextCard} bodyText={bodyTextCard}>
<Card.Element />
</Card>
<h3>Testimonial</h3>
<Testimonial
image={imgTestimonial}
text={textTestimonial}
name={textNameTestimonial}
workTitle={textWorkTitleTestimonial}
>
<Testimonial.Element />
</Testimonial>
</>
);
}
ReactDOM.createRoot(document.getElementById('root')).render(<App />);