diff --git a/webapp/components/ProgressBar/ProgressBar.vue b/webapp/components/ProgressBar/ProgressBar.vue new file mode 100644 index 000000000..93030c47b --- /dev/null +++ b/webapp/components/ProgressBar/ProgressBar.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/webapp/pages/index.vue b/webapp/pages/index.vue index cdc95933c..d9944a5dd 100644 --- a/webapp/pages/index.vue +++ b/webapp/pages/index.vue @@ -6,12 +6,13 @@
-
-

Donations for November

-
-
- 500 of 15.000 € -
+ + Donate now @@ -74,6 +75,7 @@ import HcPostCard from '~/components/PostCard/PostCard.vue' import HcLoadMore from '~/components/LoadMore.vue' import MasonryGrid from '~/components/MasonryGrid/MasonryGrid.vue' import MasonryGridItem from '~/components/MasonryGrid/MasonryGridItem.vue' +import ProgressBar from '~/components/ProgressBar/ProgressBar.vue' import { mapGetters, mapMutations } from 'vuex' import { filterPosts } from '~/graphql/PostQuery.js' import PostMutations from '~/graphql/PostMutations' @@ -86,6 +88,7 @@ export default { HcEmpty, MasonryGrid, MasonryGridItem, + ProgressBar, }, data() { const { hashtag = null } = this.$route.query @@ -286,42 +289,4 @@ export default { align-items: flex-end; height: 100%; } - -.progress-bar { - position: relative; - height: 100%; - width: 240px; - margin-right: $space-x-small; -} - -.progress-bar__title { - position: absolute; - top: -2px; - left: $space-xx-small; - margin: 0; -} - -.progress-bar__goal { - position: absolute; - bottom: 0; - left: 0; - height: 37.5px; // styleguide-button-size - background-color: $color-neutral-100; - border-radius: $border-radius-base; -} - -.progress-bar__progress { - position: absolute; - bottom: 1px; - left: 0; - height: 35.5px; // styleguide-button-size - background-color: $color-yellow; - border-radius: $border-radius-base; -} - -.progress-bar__label { - position: absolute; - top: 50%; - left: $space-xx-small; -}