-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathApp.vue
136 lines (127 loc) · 2.69 KB
/
App.vue
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
<script lang="ts" setup>
import IntroductionPart from './examples/IntroductionPart.vue'
import BasicExample from './examples/BasicExample.vue'
import LoaderExample from './examples/LoaderExample.vue'
import TableExample from './examples/TableExample.vue'
import AlertExample from './examples/AlertExample.vue'
import PropsBehavior from './examples/PropsBehavior.vue'
</script>
<template>
<article class="main-container">
<IntroductionPart />
<BasicExample />
<AlertExample />
<LoaderExample />
<TableExample />
<PropsBehavior />
</article>
<!-- put it in the template of your App.vue file to make this library work -->
<div class="alerts-container">
<DialogsWrapper />
</div>
</template>
<style>
@import 'https://cdn.jsdelivr.net/npm/daisyui@1.19.0/dist/full.css';
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2/dist/tailwind.min.css';
.alerts-container {
position: fixed;
display: flex;
flex-direction: column;
gap: 5px;
top: 20px;
right: 40px;
width: 380px;
}
.main-container {
padding: 15px 30px;
max-width: 800px;
margin: 0 auto;
width: 100%;
background-color: white;
box-shadow: #f2f2f2;
}
h1, h2 {
text-align: center;
}
body {
background-color: #f2f2f2;
height: 100%;
font-size: 16px;
}
.article-title {
font-size: 36px;
text-transform: capitalize;
font-weight: 500;
margin: 15px 0px;
}
.card {
border: 2px solid #f0f0f0;
}
.code-card {
background-color: #2f2f2f;
color: #80cbc4;
}
.html-code {
background: none;
border: none;
resize: none;
outline: none;
width: 100%;
overflow: hidden;
}
.widget {
display: inline-block;
overflow: hidden;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
font-size: 0;
line-height: 0;
white-space: nowrap;
}
.inline-code {
background-color: #e3e2e2;
border-radius: 5px;
padding: 3px 5px;
}
.input {
font-size: 18px!important;
}
.divider {
margin-bottom: 100px;
margin-top: 40px;
}
.divider:after, .divider:before {
background-color: #bbbbbb;
}
.warning-block {
box-sizing: border-box;
border: 1px solid #ffc517;
margin: 28px 0;
padding: 20px 24px 25px 42px;
border-radius: 8px;
overflow-x: auto;
transition: color .5s,background-color .5s;
position: relative;
font-size: 14px;
line-height: 1.6;
font-weight: 500;
color: #0000008c;
background-color: #f9f9f9;
}
.warning-block:before {
content: "\26a0";
font-size: 17px;
top: 19px;
left: 16ppx;
}
.warning-block_title {
display: inline-block;
margin-bottom: 8px;
font-size: 15px;
font-weight: 500;
color: var(--vt-c-text-1);
transition: color .5s;
}
.label-text {
font-size: 1rem;
}
</style>