PluginEntrySkeleton.vue
10 months ago
PluginIntegrationSkeleton.vue
10 months ago
PluginsSectionSkeleton.vue
10 months ago
PluginEntrySkeleton.vue
103 lines
| 1 | <script lang="ts" setup> |
| 2 | import { HSkeletonLoader } from '@hostinger/hcomponents'; |
| 3 | </script> |
| 4 | |
| 5 | <template> |
| 6 | <div class="plugin-entry-skeleton"> |
| 7 | <div class="plugin-entry-skeleton__cell plugin-entry-skeleton__cell--plugin"> |
| 8 | <div class="plugin-entry-skeleton__plugin-content"> |
| 9 | <div class="plugin-entry-skeleton__plugin-info"> |
| 10 | <div class="plugin-entry-skeleton__plugin-icon"> |
| 11 | <HSkeletonLoader width="28px" height="28px" border-radius="sm" /> |
| 12 | </div> |
| 13 | <HSkeletonLoader width="120px" height="16px" border-radius="sm" /> |
| 14 | </div> |
| 15 | </div> |
| 16 | </div> |
| 17 | <div class="plugin-entry-skeleton__cell plugin-entry-skeleton__cell--entries"> |
| 18 | <HSkeletonLoader width="20px" height="16px" border-radius="sm" /> |
| 19 | </div> |
| 20 | <div class="plugin-entry-skeleton__cell plugin-entry-skeleton__cell--status"> |
| 21 | <HSkeletonLoader width="60px" height="24px" border-radius="lg" /> |
| 22 | </div> |
| 23 | <div class="plugin-entry-skeleton__cell plugin-entry-skeleton__cell--actions"> |
| 24 | <HSkeletonLoader width="32px" height="32px" border-radius="sm" /> |
| 25 | </div> |
| 26 | </div> |
| 27 | </template> |
| 28 | |
| 29 | <style scoped lang="scss"> |
| 30 | .plugin-entry-skeleton { |
| 31 | display: flex; |
| 32 | padding: 16px 0px; |
| 33 | |
| 34 | &__cell { |
| 35 | display: flex; |
| 36 | align-items: center; |
| 37 | |
| 38 | &--plugin { |
| 39 | width: 50%; |
| 40 | order: 1; |
| 41 | } |
| 42 | |
| 43 | &--entries { |
| 44 | width: 21%; |
| 45 | order: 2; |
| 46 | } |
| 47 | |
| 48 | &--status { |
| 49 | width: 19%; |
| 50 | order: 3; |
| 51 | } |
| 52 | |
| 53 | &--actions { |
| 54 | width: 10%; |
| 55 | display: flex; |
| 56 | justify-content: flex-end; |
| 57 | padding-right: 16px; |
| 58 | order: 4; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | &__plugin-content { |
| 63 | display: flex; |
| 64 | align-items: center; |
| 65 | gap: 8px; |
| 66 | width: 100%; |
| 67 | } |
| 68 | |
| 69 | &__plugin-info { |
| 70 | display: flex; |
| 71 | align-items: center; |
| 72 | gap: 12px; |
| 73 | } |
| 74 | |
| 75 | &__plugin-icon { |
| 76 | width: 28px; |
| 77 | height: 28px; |
| 78 | border-radius: 7px; |
| 79 | overflow: hidden; |
| 80 | display: flex; |
| 81 | align-items: center; |
| 82 | justify-content: center; |
| 83 | } |
| 84 | |
| 85 | @media (max-width: 1023px) { |
| 86 | flex-direction: column; |
| 87 | gap: 12px; |
| 88 | |
| 89 | &__cell--plugin, |
| 90 | &__cell--entries, |
| 91 | &__cell--status, |
| 92 | &__cell--actions { |
| 93 | width: 100%; |
| 94 | justify-content: center; |
| 95 | } |
| 96 | |
| 97 | &__cell--actions { |
| 98 | padding-right: 0; |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | </style> |
| 103 |