-
Notifications
You must be signed in to change notification settings - Fork 0
/
component.html
2070 lines (1949 loc) · 77.3 KB
/
component.html
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/atom-one-dark-reasonable.min.css"
/>
<title>CrystalUi</title>
<link rel="icon" href="./svg/logo.svg" type="image/icon type" />
<link rel="stylesheet" href="./styles/root.css" />
<link rel="stylesheet" href="./styles/colors.css" />
<link rel="stylesheet" href="./styles/reset.css" />
<link rel="stylesheet" href="./styles/navbar.css" />
<link rel="stylesheet" href="./styles/hero.css" />
<link rel="stylesheet" href="./components.css" />
</head>
<body>
<header class="nav-container">
<nav class="navbar">
<a href="/index.html" class="nav-logo">CrystalUi</a>
<div class="nav-div">
<ul class="nav-links">
<li><a href="#" class="link">Docs</a></li>
<li><a href="#" class="link">Examples</a></li>
<li>
<a
href="https://github.com/MiheerTamkhane/CrystalUi/tree/main"
target="_blank"
class="link"
>GitHub</a
>
</li>
</ul>
<div class="dark-light">
<span class="material-icons sun">wb_sunny</span>
<span class="material-icons moon">dark_mode</span>
</div>
<div class="hamburger-div">
<a
href="https://github.com/MiheerTamkhane/CrystalUi/tree/main"
target="_blank"
>
<img src="./svg/nav-github.svg" alt="GitHub" />
</a>
<span class="material-icons hamburger"> menu </span>
</div>
</div>
</nav>
</header>
<main class="hero">
<section class="sidebar">
<span class="material-icons close-btn">close</span>
<div class="side-div">
<h2>Get Started</h2>
<ul class="comp-list">
<li><a class="link sidebar-link" data-link="intro" href="#intro">Introduction</a></li>
<li><a class="link sidebar-link" data-link="colors" href="#colors">Colors</a></li>
</ul>
</div>
<div class="side-div">
<h2>Components</h2>
<ul class="comp-list">
<li><a class="link sidebar-link" data-link="avatar" href="#avatar">Avatar</a></li>
<li><a class="link sidebar-link" data-link="alert" href="#alert">Alert</a></li>
<li><a class="link sidebar-link" data-link="badge" href="#badge">Badge</a></li>
<li><a class="link sidebar-link" data-link="button" href="#button">Button</a></li>
<li><a class="link sidebar-link" data-link="input" href="#input">Input</a></li>
<li><a class="link sidebar-link" data-link="image" href="#image">Image</a></li>
<li><a class="link sidebar-link" data-link="card" href="#card">Card</a></li>
<li><a class="link sidebar-link" data-link="text-utils" href="#text-utils">Text Utilities</a></li>
<li><a class="link sidebar-link" data-link="lists" href="#lists">Lists</a></li>
<li><a class="link sidebar-link" data-link="nav" href="#nav">Navbar</a></li>
<li><a class="link sidebar-link" data-link="modal" href="#modal">Modal</a></li>
<li><a class="link sidebar-link" data-link="rating" href="#rating">Rating</a></li>
<li><a class="link sidebar-link" data-link="toast" href="#toast">Toast</a></li>
<li><a class="link sidebar-link" data-link="grid" href="#grid">Grid</a></li>
<li><a class="link sidebar-link" data-link="slider" href="#slider">Slider</a></li>
</ul>
</div>
</section>
<section class="comp-docs">
<!-- GETTING STARTED PAGE -->
<main class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="intro">Introduction</h2>
<p>
<code>CrystalUi</code> is a free, open source framework that provides ready-to-use frontend components that you can easily combine to build responsive web interfaces.
</p>
</div>
<div class="comp-type">
<h3 class="comp-title">Installation Guide</h3>
<p>
To use CrystalUi in your web interfaces , copy the following link and paste it in <head> tag of your main HTML file.
</p>
<div class="comp-code">
<pre><code class="html">
<link rel="stylesheet" href="https://crystal-ui.netlify.app/components.css" />
</code></pre>
</div>
</div>
</main>
<main class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="colors">Colors</h2>
<p>
<code>CrystalUi</code> comes with pre-defined color, which can be used directly in your css.
We can use these colors for background of elements or on text-colors. We have losts of varients for colors as well as their weights.
</p>
</div>
<div class="comp-type">
<h3 class="comp-title" >Colors of Library</h3>
<p>Color pallete of <code>CrystalUi</code></p>
<div class="comp-demo">
<div class="ct-colors">
<div class="color-box ct-primary">
primary #02bfc9;
</div>
<div class="color-box ct-text">
text #393e46;
</div>
<div class="color-box ct-heading">
heading #222831;
</div>
<div class="color-box ct-body">
body #f9f9f9;
</div>
</div>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title" >Colors</h2>
<p>Colors CrystalUi provides.</p>
<div class="comp-demo">
<div class="ct-colors">
<div class="color-box ct-gray-100">
gray-100 #efefef
</div>
<div class="color-box ct-gray-300">
gray-300 #d1d5db;
</div>
<div class="color-box ct-gray-500">
gray-500 #6b7280;
</div>
<div class="color-box ct-gray-700">
gray-700 #374151;
</div>
<div class="color-box ct-gray-900">
gray-900 #1f2937;
</div>
</div>
<div class="ct-colors">
<div class="color-box ct-violet-300">
violet-300 #d8cffc;
</div>
<div class="color-box ct-violet-500">
violet-500 #8b5cf6;
</div>
<div class="color-box ct-violet-700">
violet-700 #6d28d9;
</div>
<div class="color-box ct-indigo-300 ">
indigo-300 #a5b4fc;
</div>
<div class="color-box ct-indigo-500 ">
indigo-500 #6366f1;
</div>
<div class="color-box ct-indigo-700 ">
indigo-700 #4338ca;
</div>
</div>
<div class="ct-colors">
<div class="color-box ct-blue-300">
blue-300 #bee3f8;
</div>
<div class="color-box ct-blue-500">
blue-500 #3182ce;
</div>
<div class="color-box ct-blue-700">
blue-700 #0b5fbe;
</div>
<div class="color-box ct-green-300 ">
green-300 #c6f6d5;
</div>
<div class="color-box ct-green-500 ">
green-500 #38a169;
</div>
<div class="color-box ct-green-700 ">
green-700 #15803d;
</div>
</div>
<div class="ct-colors">
<div class="color-box ct-yellow-300">
yellow-300 #fff1ac;
</div>
<div class="color-box ct-yellow-500">
yellow-500 #f59e0b;
</div>
<div class="color-box ct-yellow-700">
yellow-700 #b45309;
</div>
<div class="color-box ct-red-300 ">
red-300 #fed7d7;
</div>
<div class="color-box ct-red-500 ">
red-500 #e53e3e;
</div>
<div class="color-box ct-red-700 ">
red-700 #b91c1c;
</div>
</div>
</div>
</div>
</main>
<!-- ALL THE COMPONENTS OF THE LIBRARY ARE BELOW -->
<section class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="avatar">Avatar</h2>
<p>
The <code>Avatar</code> component is used to represent a user, and
displays the profile picture, we have avatar in different sizes
and shapes. You have to add <code>ct-avatar</code> class in
<code> img </code>tag to use it as avatar. By default the avatar
size is 32px.
</p>
</div>
<div class="comp-type">
<h2 class="comp-title">Round Avatar Sizes</h2>
<p>
You have to apply <code>ct-avatar, ct-round</code> class to use
round avatar, which has four different sizes
<code
>ct-sm | 32px, ct-md | 40px, ct-lg | 64px, ct-xlg | 96px</code
>.
</p>
<div class="comp-demo">
<img
class="ct-avatar ct-round ct-sm"
src="./assests/images/pic1.jpg"
alt="avatar"
/>
<img
class="ct-avatar ct-round ct-md"
src="./assests/images/pic2.jpg"
alt="avatar"
/>
<img
class="ct-avatar ct-round ct-lg"
src="./assests/images/pic3.jpg"
alt="avatar"
/>
<img
class="ct-avatar ct-round ct-xlg"
src="./assests/images/pic4.jpg"
alt="avatar"
/>
</div>
<div class="comp-code">
<pre><code class="html">
<img class="ct-avatar ct-round ct-sm" src="image-url" alt="avatar"/>
<img class="ct-avatar ct-round ct-md" src="image-url" alt="avatar"/>
<img class="ct-avatar ct-round ct-lg" src="image-url" alt="avatar"/>
<img class="ct-avatar ct-round ct-xlg" src="image-url" alt="avatar"/>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Squared Avatar</h2>
<p>
Use <code>ct-square</code> class to add Squared avatar. Which also
has all the four sizes.
</p>
<div class="comp-demo">
<img
class="ct-avatar ct-square ct-sm"
src="./assests/images/pic1.jpg"
alt=""
/>
<img
class="ct-avatar ct-square ct-md"
src="./assests/images/pic2.jpg"
alt=""
/>
<img
class="ct-avatar ct-square ct-lg"
src="./assests/images/pic3.jpg"
alt=""
/>
<img
class="ct-avatar ct-square ct-xlg"
src="./assests/images/pic4.jpg"
alt=""
/>
</div>
<div class="comp-code">
<pre><code class="html">
<img class="ct-avatar ct-square ct-sm" src="image-url" alt="avatar"/>
<img class="ct-avatar ct-square ct-md" src="image-url" alt="avatar"/>
<img class="ct-avatar ct-square ct-lg" src="image-url" alt="avatar"/>
<img class="ct-avatar ct-square ct-xlg" src="image-url" alt="avatar"/>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Fallback Avatar</h2>
<p>
You can use fallback avatar if the user has not given any image or
removed it. put <code>ct-fallback</code>.
</p>
<div class="comp-demo">
<img
class="ct-fallback ct-sm"
src="./assests/svg/fallback.svg"
alt="fallback"
/>
<img
class="ct-fallback ct-md"
src="./assests/svg/fallback.svg"
alt="fallback"
/>
<img
class="ct-fallback ct-lg"
src="./assests/svg/fallback.svg"
alt="fallback"
/>
<img
class="ct-fallback ct-xlg"
src="./assests/svg/fallback.svg"
alt="fallback"
/>
</div>
<div class="comp-code">
<pre><code class="html">
<img class="ct-fallback ct-sm" src="image-url" alt="avatar"/>
<img class="ct-fallback ct-md" src="image-url" alt="avatar"/>
<img class="ct-fallback ct-lg" src="image-url" alt="avatar"/>
<img class="ct-fallback ct-xlg" src="image-url" alt="avatar"/>
</code></pre>
</div>
</div>
</section>
<section class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="alert">Alert</h2>
<p>
Alerts are use to show a state to user that something affected to
a system, feature or page. We have four types of alerts with icons
and button, which can you use adding class
<code>ct-alert</code> in it.
</p>
</div>
<div class="comp-type">
<h2 class="comp-title">Status Alert</h2>
<p>
Use <code>ct-error</code> for Error alert,
<code>ct-update</code> for success, <code>ct-report</code> for
report, <code>ct-info</code> for information.
</p>
<div class="comp-demo">
<div>
<div class="ct-error ct-alert">
<span class="material-icons"> error </span>
There was an error processing your request
</div>
<div class="ct-update ct-alert">
<span class="material-icons"> check_circle </span>
Data uploaded to the server. Fire on!
</div>
<div class="ct-report ct-alert">
<span class="material-icons"> report </span>
Seems your account is about expire, upgrade now
</div>
<div class="ct-info ct-alert">
<span class="material-icons"> lightbulb </span>
Mangalyaan is going live on 5 November 2013. Get ready!
</div>
</div>
</div>
<div class="comp-code">
<pre><code class="html">
<div class="ct-error ct-alert"> <span class="material-icons"> error </span>
There was an error processing your request </div>
<div class="ct-update ct-alert"> <span class="material-icons"> check_circle </span>
Data uploaded to the server. Fire on! </div>
<div class="ct-report ct-alert"> <span class="material-icons"> report </span>
Seems your account is about expire, upgrade now </div>
<div class="ct-info ct-alert"> <span class="material-icons"> lightbulb </span>
Mangalyaan is going live on 5 November 2013. Get ready! </div>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Status Alert with Border</h2>
<p>
Add <code>ct-error-bd, ct-update-bd...</code> etc classes to add
outer border alert. <code>-bd</code> stands for border.
</p>
<div class="comp-demo">
<div>
<div class="ct-error-bd ct-alert">
<span class="material-icons"> error </span>
There was an error processing your request
</div>
<div class="ct-update-bd ct-alert">
<span class="material-icons"> check_circle </span>
Data uploaded to the server. Fire on!
</div>
<div class="ct-report-bd ct-alert">
<span class="material-icons"> report </span>
Seems your account is about expire, upgrade now
</div>
<div class="ct-info-bd ct-alert">
<span class="material-icons"> lightbulb </span>
Mangalyaan is going live on 5 November 2013. Get ready!
</div>
</div>
</div>
<div class="comp-code">
<pre><code class="html">
<div class="ct-error-bd ct-alert"> <span class="material-icons"> error </span>
There was an error processing your request </div>
<div class="ct-update-bd ct-alert"> <span class="material-icons"> check_circle </span>
Data uploaded to the server. Fire on! </div>
<div class="ct-report-bd ct-alert"> <span class="material-icons"> report </span>
Seems your account is about expire, upgrade now </div>
<div class="ct-info-bd ct-alert"> <span class="material-icons"> lightbulb </span>
Mangalyaan is going live on 5 November 2013. Get ready! </div>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Alert with Button</h2>
<p>
We have close button in this alert type. You can use both default
and outer alert types in it using those classes.
</p>
<div class="comp-demo">
<div>
<div class="ct-error ct-alert">
<span class="material-icons"> error </span>
There was an error processing your request
<span class="material-icons"> close </span>
</div>
<div class="ct-update-bd ct-alert">
<span class="material-icons">check_circle </span>
There was an error processing your request
<span class="material-icons"> close </span>
</div>
</div>
</div>
<div class="comp-code">
<pre><code class="html">
<div class="ct-error ct-alert"> <span class="material-icons"> error </span>
There was an error processing your request <span class="material-icons"> close </span>
</div>
<div class="ct-update-bd ct-alert"> <span class="material-icons">check_circle </span>
There was an error processing your request <span class="material-icons"> close </span>
</div> </code></pre>
</div>
</div>
</section>
<section class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="badge">Badge</h2>
<p>
Badges can be usefull in showing notification pop-up, user is
online or not, on CTA buttons. we have badges on icons, buttons
and avatar also.
</p>
</div>
<div class="comp-type">
<h2 class="comp-title">Badge on Icons</h2>
<p>
Badge on icons has <code>basic-badge</code> class, inside that we
have <code>badge-pop</code> class which is a badge and includes
four colors by default it has blue color but you can add these
classes to make it different,
<code>ct-green, ct-red, ct-violet</code>.
</p>
<div class="comp-demo">
<div class="basic-badge">
<img src="/assests/svg/mail.svg" alt="mail" />
<span class="badge-pop">4</span>
</div>
<div class="basic-badge">
<img src="/assests/svg/mail.svg" alt="mail" />
<span class="badge-pop ct-green">4</span>
</div>
<div class="basic-badge">
<img src="/assests/svg/favorite.svg" alt="favorite" />
<span class="badge-pop ct-red">4</span>
</div>
<div class="basic-badge">
<img src="/assests/svg/cart.svg" alt="cart" />
<span class="badge-pop ct-violet">4</span>
</div>
</div>
<div class="comp-code">
<pre> <code class="html">
<div class="basic-badge">
<img src="img.svg-url" alt="mail" /> <span class="badge-pop">4</span>
</div>
<div class="basic-badge">
<img src="img.svg-url" alt="mail" /> <span class="badge-pop ct-green">4</span>
</div>
<div class="basic-badge">
<img src="img.svg-url" alt="favorite" /> <span class="badge-pop ct-red">4</span>
</div>
<div class="basic-badge">
<img src="img.svg-url" alt="cart" /> <span class="badge-pop ct-violet">4</span>
</div> </code> </pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Large Badge</h2>
<p>
Large badge which is mostly usefull in larger viewports. to use
simply add <code>large-badge</code> class in component.
</p>
<div class="comp-demo">
<div class="large-badge">
<img src="/assests/svg/mail.svg" alt="mail" />
<span class="large-pop">4</span>
</div>
<div class="large-badge">
<img src="/assests/svg/favorite.svg" alt="favorite" />
<span class="large-pop ct-red">4</span>
</div>
</div>
<div class="comp-code">
<pre>
<code class="html">
<div class="large-badge"> <img src="img.svt-url" alt="mail" />
<span class="large-pop">4</span> </div>
<div class="large-badge"> <img src="img.svt-url" alt="favorite" />
<span class="large-pop ct-red">4</span> </div>
</code>
</pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Badge on Button</h2>
<p>
Badge for CTA buttons in your web app. add
<code>btn-badge</code> class to use.
</p>
<div class="comp-demo">
<div class="basic-badge">
<button class="btn-badge">Action</button>
<span class="badge-pop">4</span>
</div>
</div>
<div class="comp-code">
<pre>
<code class="html">
<div class="basic-badge">
<button class="btn-badge">Action</button>
<span class="badge-pop">4</span>
</div> </code> </pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Badge on Avatar</h2>
<p>
Badge on avatar is used to check wether the user in online or
offline.
</p>
<div class="comp-demo">
<div class="basic-badge">
<img
src="./assests/images/pic2.jpg"
alt=""
class="ct-avatar ct-lg"
/>
<span class="plane-badge"></span>
</div>
<div class="basic-badge">
<img
src="./assests/svg/fallback.svg"
alt=""
class="ct-avatar ct-lg"
/>
<span class="plane-badge"></span>
</div>
</div>
<div class="comp-code">
<pre> <code class="html">
<div class="basic-badge"> <img src="img-url" alt="" class="ct-avatar ct-lg" />
<span class="plane-badge"></span>
</div>
<div class="basic-badge"> <img src="img-url" alt="" class="ct-avatar ct-lg" />
<span class="plane-badge"></span>
</div> </code> </pre>
</div>
</div>
</section>
<section class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="button">Button</h2>
<p>
Buttons are most important component of a web page also term as
CTA(call to action). We have different types of button to give
user simple and clean experience.
</p>
</div>
<div class="comp-type">
<h2 class="comp-title">Primary Button</h2>
<p>
Primary buttons are the main buttons or CTA of the page. use
<code>ct-btn</code> class to use primary button. it also has four
colors which can you use adding respective classes.
<code>ct-red, ct-blue, ct-green, ct-gray</code>
</p>
<div class="comp-demo">
<button class="ct-btn ct-red">Primary</button>
<button class="ct-btn ct-blue">Primary</button>
<button class="ct-btn ct-green">Primary</button>
<button class="ct-btn ct-gray">Primary</button>
</div>
<div class="comp-code">
<pre> <code class="html">
<button class="ct-btn ct-red">Primary</button>
<button class="ct-btn ct-blue">Primary</button>
<button class="ct-btn ct-green">Primary</button>
<button class="ct-btn ct-gray">Primary</button>
</code> </pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Link Button</h2>
<p>
Link buttons are usefull to link other pages like social media
handles or wiki of some terms. Add
<code>ct-red-bd, ... </code> classes to watch in action.
</p>
<div class="comp-demo">
<button class="ct-btn ct-red-bd">Link</button>
<button class="ct-btn ct-blue-bd">Link</button>
<button class="ct-btn ct-green-bd">Link</button>
<button class="ct-btn ct-gray-bd">Link</button>
</div>
<div class="comp-code">
<pre> <code class="html">
<button class="ct-btn ct-red-bd">Link</button>
<button class="ct-btn ct-blue-bd">Link</button>
<button class="ct-btn ct-green-bd">Link</button>
<button class="ct-btn ct-gray-bd">Link</button>
</code> </pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Icon Button</h2>
<p>
Buttons with icons also very usefull for the people who don't
understands a language or can't read. We have four types of icon
buttons shown below to use add respective classes.
</p>
<div class="comp-demo">
<button class="ct-btn ct-addcart">
<span class="material-icons">shopping_cart</span>
ADD TO CART
</button>
<button class="ct-btn ct-wishlist">
<span class="material-icons">favorite</span>
WISHLIST
</button>
<button class="ct-btn ct-pay">
<span class="material-icons">attach_money</span>
PAYMENT
</button>
<button class="ct-btn ct-store">
<span class="material-icons">store</span>
STORE
</button>
</div>
<div class="comp-code">
<pre><code class="html">
<button class="ct-btn ct-addcart">
<span class="material-icons">shopping_cart</span>
ADD TO CART
</button>
<button class="ct-btn ct-wishlist">
<span class="material-icons">favorite</span>
WISHLIST
</button>
<button class="ct-btn ct-pay">
<span class="material-icons">attach_money</span>
PAYMENT
</button>
<button class="ct-btn ct-store">
<span class="material-icons">store</span>
STORE
</button>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title" id="badge">Floating Button</h2>
<p>
Floating buttons to show a list on button click or it can be use
for search bar.
</p>
<div class="comp-demo">
<button class="ct-btn">
<span class="material-icons ct-float">search</span>
</button>
<button class="ct-btn">
<span class="material-icons ct-float">add</span>
</button>
<button class="ct-btn">
<span class="material-icons ct-float">save</span>
</button>
</div>
<div class="comp-code">
<pre><code class="html">
<button class="ct-btn">
<span class="material-icons ct-float">search</span></button>
<button class="ct-btn"><span class="material-icons ct-float">add</span>
</button>
<button class="ct-btn">
<span class="material-icons ct-float">save</span>
</button>
</code></pre>
</div>
</div>
</section>
<section class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="input">Input</h2>
<p>
Inputs are necessary for user interaction with the website. Inputs
are used to take information from the user, and then save the data
to the server.
</p>
</div>
<div class="comp-type">
<h2 class="comp-title">Basic input</h2>
<p>
Basic input field with label. Include <code>ct-input</code> class
to use.
</p>
<div class="comp-demo">
<div class="ct-input-div">
<label for="ct-input">Label*</label>
<input
type="text"
id="ct-input"
class="ct-input"
placeholder="Basic input"
/>
</div>
</div>
<div class="comp-code">
<pre><code class="html">
<div class="ct-input-div">
<label for="ct-input">Label*</label>
<input type="text" id="ct-input" class="ct-input" placeholder="Basic input" />
</div>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title">Input with Icon</h2>
<p>
Input with icons, we have two types 1. input with error 2. input
with success
</p>
<div class="comp-demo">
<div class="ct-input-error">
<input
type="text"
class="ct-error-icon"
name="input"
placeholder="input text"
/>
<span class="material-icons">warning_amber</span>
</div>
<div class="ct-input-check">
<input
type="text"
class="ct-check-icon"
name="input"
placeholder="input text"
/>
<span class="material-icons">done</span>
</div>
</div>
<div class="comp-code">
<pre><code class="html">
<div class="ct-input-error">
<input type="text" class="ct-error-icon" name="input" placeholder="input text"/>
<span class="material-icons">warning_amber</span>
</div>
<div class="ct-input-check">
<input type="text" class="ct-check-icon" name="input" placeholder="input text"/>
<span class="material-icons">done</span>
</div>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title" id="input">Input types</h2>
<p>
Checkbox and radio buttons are use to make a choice. to agree a
policy, and choose the gender.
</p>
<div class="comp-demo">
<div class="ct-wrapper">
<input
type="checkbox"
checked
id="checkbox1"
class="ct-checkbox"
/>
<label for="checkbox1">Checked</label>
</div>
<div class="ct-wrapper">
<input
type="checkbox"
id="checkbox2"
class="ct-checkbox"
disabled
/>
<label for="checkbox2">Checkbox</label>
</div>
<div class="ct-wrapper">
<input type="radio" name="radio" id="radio1" class="ct-radio" />
<label for="radio1">Male</label>
</div>
<div class="ct-wrapper">
<input type="radio" class="ct-radio" name="radio" id="radio2" />
<label for="radio2">Female</label>
</div>
</div>
<div class="comp-code">
<pre><code class="html">
<div class="ct-wrapper">
<input type="checkbox" checked id="checkbox1" class="ct-checkbox"/>
<label for="checkbox1">Checked</label> </div>
<div class="ct-wrapper">
<input type="checkbox" id="checkbox2" class="ct-checkbox" disabled/>
<label for="checkbox2">Checkbox</label> </div>
<div class="ct-wrapper">
<input type="radio" name="radio" id="radio1" class="ct-radio" />
<label for="radio1">Male</label> </div>
<div class="ct-wrapper">
<input type="radio" class="ct-radio" name="radio" id="radio2" />
<label for="radio2">Female</label> </div>
</code></pre>
</div>
</div>
<div class="comp-type">
<h2 class="comp-title" id="input">Input form</h2>
<p>
Every site has a form to get data of user it can be usefull in
different ways. You can directly use below form dy copy and
pasting into your page.
</p>
<div class="comp-demo">
<form class="ct-form">
<h2>Sign up</h2>
<div class="ct-input-div">
<input
type="text"
name="ct-input"
class="ct-input"
placeholder="Enter name..."
required
/>
</div>
<div class="ct-input-error">
<input
type="email"
class="ct-error-icon"
name="input"
placeholder="Email..."
required
/>
<span class="material-icons">warning_amber</span>
</div>
<div class="ct-input-check">
<input
type="tel"
class="ct-check-icon"
name="input"
placeholder="Phone No..."
required
/>
<span class="material-icons">done</span>
</div>
<div class="ct-checkbox-div">
<input
type="checkbox"
id="checkbox3"
required
class="ct-checkbox"
/>
<label for="checkbox3">Privacy</label>
</div>
<div class="ct-radio-div">
<input
type="radio"
name="radio"
id="radio3"
required
class="ct-radio"
/>
<label for="radio3">Male</label>
</div>
<div class="ct-radio-div">
<input
type="radio"
name="radio"
id="radio4"
required
class="ct-radio"
/>
<label for="radio4">Female</label>
</div>
<button class="ct-form-btn" type="submit">SUBMIT</button>
</form>
</div>
<div class="comp-code">
<pre><code class="html">
<form class="ct-form"> <h2>Sign up</h2> <div class="ct-input-div">
<input type="text" class="ct-input" placeholder="Enter name..." required /> </div>
<div class="ct-input-error">
<input type="email" class="ct-error-icon" placeholder="Email..." required />
<span class="material-icons">warning_amber</span> </div>
<div class="ct-input-check">
<input type="tel" class="ct-check-icon" placeholder="Phone No..." required />
<span class="material-icons">done</span> </div>
<div class="ct-checkbox-div">
<input type="checkbox" id="checkbox3" required class="ct-checkbox" />
<label for="checkbox3">Privacy</label> </div>
<div class="ct-radio-div">
<input type="radio" id="radio3" required class="ct-radio" />
<label for="radio3">Male</label> </div>
<div class="ct-radio-div"> <input type="radio" id="radio4" class="ct-radio" required />
<label for="radio4">Female</label> </div>
<button class="ct-form-btn" type="submit">SUBMIT</button>
</form>
</code></pre>
</div>
</div>
</section>
<section class="comp-container">
<div class="comp-type">
<h2 class="comp-title" id="image">Image</h2>
<p>
Image Components are used to dsiplay Images on websites, which are
screen responsive. They expand upto the width of the container
they are in.
</p>