-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
152 lines (131 loc) · 2.99 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<script setup>
import TheInput from './components/TheInput.vue';
import TheBoard from './components/TheBoard.vue'
import { ref, computed } from 'vue';
import { useSelectListStore, itemsStore } from "./store/state";
import initialCards from './initialCards'
const selectListStore = useSelectListStore();
const selectList = computed(() => selectListStore.list);
for (let item in initialCards) {
let newItem = {
[item]: initialCards[item]
}
selectListStore.push(newItem)
}
const input = ref()
const allNamesItems = itemsStore()
const customers = computed(() => allNamesItems.list);
</script>
<template>
<header>
<h1>Документы</h1>
<nav>
<div class="btn svg"><svg fill="gray" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="15" height="15"
viewBox="0 0 24 24">
<path
d="M 6.0097656 2 C 4.9143111 2 4.0097656 2.9025988 4.0097656 3.9980469 L 4 22 L 12 19 L 20 22 L 20 20.556641 L 20 4 C 20 2.9069372 19.093063 2 18 2 L 6.0097656 2 z M 6.0097656 4 L 18 4 L 18 19.113281 L 12 16.863281 L 6.0019531 19.113281 L 6.0097656 4 z">
</path>
</svg></div>
<div class="btn"><span class="symbol">+</span>  Новый тип</div>
<div class="btn"><span class="symbol">+</span>  Новый документ</div>
</nav>
</header>
<TheInput :items="customers" filterby="name" />
<TheBoard />
</template>
<style scoped>
.search {
height: 100%;
width: 20%;
display: flex;
align-items: center;
}
h1 {
font-family: 'Fira Sans';
font-style: normal;
font-weight: 600;
font-size: 22px;
line-height: 108%;
}
header {
margin: 20px auto;
width: 90%;
display: flex;
justify-content: space-between;
align-items: center;
/* margin-bottom: 0px; */
}
.symbol {
font-family: 'Times New Roman', Times, serif;
font-weight: 700;
color: blue;
font-size: 25px;
}
.btn {
font-family: 'Fira Sans';
font-style: normal;
font-weight: 500;
font-size: 12px;
line-height: 108%;
margin: auto 5px;
font-weight: 900;
padding-left: 20px;
padding-right: 20px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
border: 1px solid rgb(193, 193, 193);
border-radius: 20px;
}
nav {
display: flex;
justify-content: center;
align-items: center;
}
.svg {
padding: 0;
border-radius: 50%;
width: 30px;
height: 30px;
}
.btn:hover {
background: rgba(173, 216, 230, 0.2);
cursor: pointer;
}
.input {
margin-top: 29px;
position: relative;
margin-left: 70px;
width: 564px;
height: 35px;
display: flex;
justify-content: space-between;
align-items: center;
}
input:focus {
border-bottom: 2px solid blue;
}
input {
font-size: 15px;
padding-bottom: 3px;
padding-left: 35px;
height: 100%;
width: 93%;
border: none;
outline: none;
border-bottom: 2px solid gray;
}
.multiply {
position: absolute;
right: 10px;
font-size: 15px;
color: red;
cursor: pointer;
}
.glass {
left: 10px;
position: absolute;
margin-bottom: 5px;
}
</style>