Skip to content

Commit e0301b0

Browse files
author
Samantha Kraft
committed
added icon components that I missed
1 parent ca89ec1 commit e0301b0

File tree

4 files changed

+73
-5
lines changed

4 files changed

+73
-5
lines changed

src/components/EventCard.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@
1818
</div>
1919
</h3>
2020
<div class="upcoming-event__detail">
21-
<svgicon name="calendar" height="16" width="16" />
21+
<calendar class="svg-icon"></calendar>
2222
<div class="body1">{{ getDateRange(startDate, endDate) }}</div>
2323
</div>
2424
<div v-if="location" class="upcoming-event__detail">
25-
<svgicon name="map" height="16" width="16" />
25+
<map-icon class="svg-icon"></map-icon>
2626
<div class="body1">{{ location }}</div>
2727
</div>
2828
</div>
2929
</template>
3030

3131
<script>
3232
import { format, parseISO } from 'date-fns'
33-
33+
import Calendar from './icons/Calendar.vue'
34+
import MapIcon from './icons/Map.vue'
3435
export default {
3536
name: 'EventCard',
3637
@@ -61,7 +62,10 @@
6162
type: String
6263
}
6364
},
64-
65+
components:{
66+
Calendar,
67+
MapIcon
68+
},
6569
methods: {
6670
/**
6771
* Get event date range, if there is no end date, default to start date

src/components/icons/Calendar.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+

src/components/icons/FilterApplied.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:fill="color"
77
viewBox="0 0 24 24"
88
>
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>
1010
</svg>
1111
</template>
1212

src/components/icons/Map.vue

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+

0 commit comments

Comments
 (0)