File tree 4 files changed +73
-5
lines changed 4 files changed +73
-5
lines changed Original file line number Diff line number Diff line change 18
18
</div >
19
19
</h3 >
20
20
<div class =" upcoming-event__detail" >
21
- < svgicon name = " calendar" height = " 16 " width = " 16 " / >
21
+ < calendar class = " svg-icon " ></ calendar >
22
22
<div class =" body1" >{{ getDateRange(startDate, endDate) }}</div >
23
23
</div >
24
24
<div v-if =" location" class =" upcoming-event__detail" >
25
- <svgicon name = " map" height = " 16 " width = " 16 " / >
25
+ <map-icon class = " svg-icon " ></ map-icon >
26
26
<div class =" body1" >{{ location }}</div >
27
27
</div >
28
28
</div >
29
29
</template >
30
30
31
31
<script >
32
32
import { format , parseISO } from ' date-fns'
33
-
33
+ import Calendar from ' ./icons/Calendar.vue'
34
+ import MapIcon from ' ./icons/Map.vue'
34
35
export default {
35
36
name: ' EventCard' ,
36
37
61
62
type: String
62
63
}
63
64
},
64
-
65
+ components: {
66
+ Calendar,
67
+ MapIcon
68
+ },
65
69
methods: {
66
70
/**
67
71
* Get event date range, if there is no end date, default to start date
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <svg
3
+ xmlns =" http://www.w3.org/2000/svg"
4
+ :width =" width"
5
+ :height =" height"
6
+ :fill =" color"
7
+ viewBox =" 0 0 16 17"
8
+ >
9
+ <g _fill =" #000" fill-rule =" nonzero" ><path pid =" 0" d =" M6.168 1.482h3.684v1.744H6.168z" /><path pid =" 1" d =" M13.032 3.226h1.242v2.79H1.705v-2.79h1.242V1.482H.021V17H15.98V1.482h-2.947v1.744zM1.705 15.256V7.76h12.59v7.497H1.705z" /><path pid =" 2" d =" M3.726 0H5.41v4.348H3.726zM10.589 0h1.684v4.348h-1.684z" /></g >
10
+ </svg >
11
+ </template >
12
+
13
+ <script >
14
+ export default {
15
+ name: " Calendar" ,
16
+ props: {
17
+ width: {
18
+ type: Number ,
19
+ default: 16 ,
20
+ },
21
+ height: {
22
+ type: Number ,
23
+ default: 17 ,
24
+ },
25
+ color: {
26
+ type: String ,
27
+ default: " currentColor" ,
28
+ },
29
+ },
30
+ };
31
+ </script >
32
+
Original file line number Diff line number Diff line change 6
6
:fill =" color"
7
7
viewBox =" 0 0 24 24"
8
8
>
9
- <g data-name = " & lt ; clipboard & gt ; " ><path pid =" 0" d =" M20 8H4a1 1 0 010-2h16a1 1 0 010 2zM20 13H7a1 1 0 010-2h10a1 1 0 010 2zM20 18H10a1 1 0 010-2h4a1 1 0 010 2z" /><path pid =" 1" d =" M14 4a2 2 0 0 0-4 0H4.5v18H8a1 1 0 0 0 0-2H6.5V6h2v2h7V6h2v14H12a1 1 0 1 0 0 2h7.5V4z" /></g >
9
+ <g ><path pid =" 0" d =" M20 8H4a1 1 0 010-2h16a1 1 0 010 2zM20 13H7a1 1 0 010-2h10a1 1 0 010 2zM20 18H10a1 1 0 010-2h4a1 1 0 010 2z" /><path pid =" 1" d =" M14 4a2 2 0 0 0-4 0H4.5v18H8a1 1 0 0 0 0-2H6.5V6h2v2h7V6h2v14H12a1 1 0 1 0 0 2h7.5V4z" /></g >
10
10
</svg >
11
11
</template >
12
12
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <svg
3
+ xmlns =" http://www.w3.org/2000/svg"
4
+ :width =" width"
5
+ :height =" height"
6
+ :fill =" color"
7
+ viewBox =" 0 0 13 17"
8
+ >
9
+ <g _fill =" #000" fill-rule =" evenodd" ><path pid =" 0" d =" M6.478 0C10.072 0 13 2.95 13 6.527c0 4.203-2.485 7.422-5.546 10.104a1.418 1.418 0 01-1.908 0C2.485 13.95 0 10.73 0 6.527 0 2.951 2.928 0 6.478 0zM6.5 4A2.51 2.51 0 019 6.5C9 7.893 7.893 9 6.5 9A2.51 2.51 0 014 6.5C4 5.148 5.148 4 6.5 4z" /></g >
10
+ </svg >
11
+ </template >
12
+
13
+ <script >
14
+ export default {
15
+ name: " MapIcon" ,
16
+ props: {
17
+ width: {
18
+ type: Number ,
19
+ default: 13 ,
20
+ },
21
+ height: {
22
+ type: Number ,
23
+ default: 17 ,
24
+ },
25
+ color: {
26
+ type: String ,
27
+ default: " currentColor" ,
28
+ },
29
+ },
30
+ };
31
+ </script >
32
+
You can’t perform that action at this time.
0 commit comments