feat: add task completion survey banner

This commit is contained in:
Zé Bateira
2021-07-29 12:01:50 +01:00
parent a8a55c17bd
commit 4d05fbd4fa
3 changed files with 1034 additions and 51 deletions
+1018 -51
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -74,6 +74,7 @@
"*.{css,styl}": "stylelint --fix"
},
"dependencies": {
"@carsy/task-completion-survey-banner": "^1.3.0",
"dayjs": "^1.10.5",
"markdown-it-image-lazy-loading": "^1.1.0",
"markdown-it-imsize": "^2.0.1",
+15
View File
@@ -13,6 +13,7 @@
</div>
</div>
<div class="pt-8 pb-4 bg-white flex-grow bg-gray-background">
<TaskCompletionSurveyBanner project="ipfs" type="sticky" />
<SortAndFilter
:number-of-posts="pagesToShow.length"
:tags="tags"
@@ -64,6 +65,8 @@ import uniqBy from 'lodash/uniqBy'
import pick from 'lodash/pick'
import isEqual from 'lodash/isEqual'
import orderBy from 'lodash/orderBy'
import TaskCompletionSurveyBanner from '@carsy/task-completion-survey-banner/src/index.vue'
import countly from '../util/countly'
const defaultCategory = { name: 'Blog post', slug: 'blog-post' }
@@ -76,6 +79,7 @@ export default {
SortAndFilter,
LanguageSelector,
VideoModal,
TaskCompletionSurveyBanner,
},
data: function () {
return {
@@ -393,4 +397,15 @@ export default {
.language-selector {
bottom: -3rem;
}
#pl--task-completion-survey-banner {
--internal-max-width: 13rem;
display: none;
}
@media only screen and (min-width: 640px) {
#pl--task-completion-survey-banner {
display: inherit;
}
}
</style>