-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUXWButton.js
110 lines (110 loc) · 2.76 KB
/
UXWButton.js
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
function UXWButton(props) {
return (
<div className="container">
<div className="flex flex-row">
<div className="flex flex-col">
<p className="pb-4 max-w-prose">
Buttons indicates an action therefore text or icon + text on the button expresses what action will occur when you press it.
</p>
</div>
<div className="flex-grow"></div>
</div>
<div className="flex max-w-prose"></div>
<div className="max-w-7xl grid grid-cols-2 gap-8 my-10">
<div>
<a className="btn-primary" href="#">Primary</a>
</div>
<div>
<UXWCodePanelHTMLCSS>
<div>
{`
<a href="#" class="btn-primary">
Primary
</a>
`}
</div>
<div>
{`
a.btn-primary{
color:var(--merlinsbeard-1);
letter-spacing: .1em;
text-transform: uppercase;
font-weight: 300;
padding: 1rem 3rem 1rem 3rem;
background-image: linear-gradient(to right, #6331FD, #3F18B4);
border-radius: 0.375rem;
transition-timing-function: cubic-bezier(0.4,0,0.2,1);
transition-duration: .5s;
}`}
</div>
</UXWCodePanelHTMLCSS>
</div>
</div>
<hr class="pb-10"></hr>
<div className="flex max-w-prose"></div>
<div className="max-w-7xl grid grid-cols-2 gap-8 my-10">
<div>
<a className="btn-disabled" href="#">Disabled</a>
</div>
<div>
<UXWCodePanelHTMLCSS>
<div>
{`
<a href="#" class="btn-disabled" >
Disabled
</a>
`}
</div>
<div>
{`
a.btn-disabled{
background-color: var(--merlinsbeard-3);
color: var(--merlinsbeard-4);
letter-spacing: .1em;
text-transform: uppercase;
font-weight: 300;
padding: 1rem 3rem 1rem 3rem;
border-radius: 0.375rem;
}`}
</div>
</UXWCodePanelHTMLCSS>
</div>
</div>
<hr class="pb-10"></hr>
<div className="flex max-w-prose"></div>
<div className="max-w-7xl grid grid-cols-2 gap-8 my-10">
<div>
<a href="#" className="btn-icon">
<i className="bi bi-download text-lg pr-4"></i>
Download
</a>
</div>
<div>
<UXWCodePanelHTMLCSS>
<div>
{`
<a href="#" class="btn-icon">
<i class="bi bi-download text-lg pr-4"></i>
Download
</a>
`}
</div>
<div>
{`
a.btn-icon{
border: 1px solid rgb(99, 49, 253);
background-color:var(--merlinsbeard-1);
letter-spacing: .1em;
text-transform: uppercase;
font-weight: 300;
padding: 1rem 3rem 1rem 3rem;
border-radius: 0.25rem;
}`}
</div>
</UXWCodePanelHTMLCSS>
</div>
</div>
<hr class="pb-10"></hr>
</div>
)
}