diff --git a/src/components/BaseButton.vue b/src/components/BaseButton.vue index 5c523f3..2079109 100644 --- a/src/components/BaseButton.vue +++ b/src/components/BaseButton.vue @@ -1,6 +1,6 @@ diff --git a/src/components/GhostButton.vue b/src/components/GhostButton.vue new file mode 100644 index 0000000..9f078aa --- /dev/null +++ b/src/components/GhostButton.vue @@ -0,0 +1,60 @@ + + + + + + + diff --git a/src/components/SelectedProjects.vue b/src/components/SelectedProjects.vue index 90bd1d9..98e889a 100644 --- a/src/components/SelectedProjects.vue +++ b/src/components/SelectedProjects.vue @@ -43,6 +43,7 @@ background-color: #fafafa; border: 1px solid rgba(0, 0, 0, .025); border-radius: 5px; + animation: load-project 2s forwards; .project-image { grid-area: image; @@ -86,7 +87,7 @@ } } - @media screen and (min-width: 901px) { + @media screen and (min-width: 900px) { .project { .more-button { display: flex; @@ -151,7 +152,18 @@ } } -@media screen and (max-width: 500px) { +@keyframes load-project { + from { + transform: translateY(20px); + opacity: .1; + } + to { + transform: translateY(0); + opacity: 1; + } +} + +@media screen and (max-width: 600px) { .projects .container { grid-template-columns: 1fr; padding: 25px; diff --git a/src/components/sections/FavoriteProjects.vue b/src/components/sections/FavoriteProjects.vue index 4052491..af2f3dc 100644 --- a/src/components/sections/FavoriteProjects.vue +++ b/src/components/sections/FavoriteProjects.vue @@ -6,11 +6,17 @@
Poniżej przedstawiam Państwu, wybraną przeze mnie, listę projektów.
+ - @@ -172,12 +210,15 @@ export default { }, methods: { loadListWhereCategory (category) { - if (category !== 'wszystkie') { - const projects = this.projects.all.filter(project => project.category === category) - this.projects.active = projects - } else { - this.projects.active = this.projects.all - } + this.projects.active = [] + setTimeout(() => { + if (category !== 'wszystkie') { + const projects = this.projects.all.filter(project => project.category === category) + this.projects.active = projects + } else { + this.projects.active = this.projects.all + } + }, 1000) }, changeCategory (category) { this.categories.active = category