Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Norman
339189f51b Merge branch 'main' into feat/task-completion-survey-banner 2022-11-03 18:10:47 +01:00
Zé Bateira
4d05fbd4fa feat: add task completion survey banner 2021-09-09 15:43:58 +01:00
3 changed files with 1034 additions and 51 deletions

1069
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -73,6 +73,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",

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>