SiteAssistantSkeleton.tsx
191 lines
| 1 | import { |
| 2 | Box, |
| 3 | Container, |
| 4 | Grid, |
| 5 | HStack, |
| 6 | Stack, |
| 7 | Skeleton, |
| 8 | SkeletonText, |
| 9 | } from "@chakra-ui/react"; |
| 10 | import React from "react"; |
| 11 | |
| 12 | const SiteAssistantSkeleton = () => { |
| 13 | return ( |
| 14 | <Container maxW="full" py={10}> |
| 15 | <Grid |
| 16 | gridGap="5" |
| 17 | gridTemplateColumns={{ |
| 18 | sm: '1fr', |
| 19 | md: '2fr 2fr', |
| 20 | lg: '3fr 2fr', |
| 21 | xl: '3fr 1fr', |
| 22 | }} |
| 23 | > |
| 24 | <Stack gap="5"> |
| 25 | <Stack |
| 26 | p="6" |
| 27 | gap="5" |
| 28 | bgColor="white" |
| 29 | borderRadius="base" |
| 30 | border="1px" |
| 31 | borderColor="gray.100" |
| 32 | > |
| 33 | <HStack justify={'space-between'}> |
| 34 | <Skeleton height="24px" width="180px" borderRadius="md" /> |
| 35 | <Skeleton height="32px" width="32px" borderRadius="base" /> |
| 36 | </HStack> |
| 37 | <Stack gap={3}> |
| 38 | <Skeleton height="1px" width="full" /> |
| 39 | <SkeletonText noOfLines={2} spacing={3} skeletonHeight="16px" /> |
| 40 | <Stack gap={2}> |
| 41 | <Skeleton height="16px" width="200px" borderRadius="md" /> |
| 42 | <Skeleton height="40px" width="full" borderRadius="md" /> |
| 43 | </Stack> |
| 44 | <Skeleton height="40px" width="150px" borderRadius="md" /> |
| 45 | </Stack> |
| 46 | </Stack> |
| 47 | |
| 48 | {/* Spam Protection Section Skeleton */} |
| 49 | <Stack |
| 50 | p="6" |
| 51 | gap="5" |
| 52 | bgColor="white" |
| 53 | borderRadius="base" |
| 54 | border="1px" |
| 55 | borderColor="gray.100" |
| 56 | > |
| 57 | <HStack justify={'space-between'}> |
| 58 | <Skeleton height="24px" width="180px" borderRadius="md" /> |
| 59 | <Skeleton height="32px" width="32px" borderRadius="base" /> |
| 60 | </HStack> |
| 61 | <Stack gap={3}> |
| 62 | <Skeleton height="1px" width="full" /> |
| 63 | <SkeletonText noOfLines={2} spacing={3} skeletonHeight="16px" /> |
| 64 | <Stack |
| 65 | bg="gray.50" |
| 66 | p="4" |
| 67 | borderRadius="md" |
| 68 | gap={2} |
| 69 | > |
| 70 | <Skeleton height="18px" width="120px" borderRadius="md" /> |
| 71 | <Skeleton height="14px" width="200px" borderRadius="md" /> |
| 72 | </Stack> |
| 73 | <HStack justify="space-between"> |
| 74 | <Skeleton height="14px" width="250px" borderRadius="md" /> |
| 75 | <Skeleton height="14px" width="80px" borderRadius="md" /> |
| 76 | </HStack> |
| 77 | </Stack> |
| 78 | </Stack> |
| 79 | </Stack> |
| 80 | |
| 81 | {/* Sidebar Skeleton */} |
| 82 | <Stack gap="5"> |
| 83 | {/* Community Card Skeleton */} |
| 84 | <Stack |
| 85 | p="6" |
| 86 | gap="3" |
| 87 | bgColor="white" |
| 88 | borderRadius="base" |
| 89 | border="1px" |
| 90 | borderColor="gray.100" |
| 91 | > |
| 92 | <HStack gap="2"> |
| 93 | <Skeleton height="20px" width="20px" borderRadius="sm" /> |
| 94 | <Skeleton height="18px" width="180px" borderRadius="md" /> |
| 95 | </HStack> |
| 96 | <SkeletonText noOfLines={3} spacing={2} skeletonHeight="13px" /> |
| 97 | <Skeleton height="14px" width="150px" borderRadius="md" /> |
| 98 | </Stack> |
| 99 | |
| 100 | {/* Getting Started Card Skeleton */} |
| 101 | <Stack |
| 102 | p="6" |
| 103 | gap="3" |
| 104 | bgColor="white" |
| 105 | borderRadius="base" |
| 106 | border="1px" |
| 107 | borderColor="gray.100" |
| 108 | > |
| 109 | <HStack gap="2"> |
| 110 | <Skeleton height="20px" width="20px" borderRadius="sm" /> |
| 111 | <Skeleton height="18px" width="140px" borderRadius="md" /> |
| 112 | </HStack> |
| 113 | <SkeletonText noOfLines={3} spacing={2} skeletonHeight="13px" /> |
| 114 | <Skeleton height="14px" width="140px" borderRadius="md" /> |
| 115 | </Stack> |
| 116 | |
| 117 | {/* Support Card Skeleton */} |
| 118 | <Stack |
| 119 | p="6" |
| 120 | gap="3" |
| 121 | bgColor="white" |
| 122 | borderRadius="base" |
| 123 | border="1px" |
| 124 | borderColor="gray.100" |
| 125 | > |
| 126 | <HStack gap="2"> |
| 127 | <Skeleton height="20px" width="20px" borderRadius="sm" /> |
| 128 | <Skeleton height="18px" width="100px" borderRadius="md" /> |
| 129 | </HStack> |
| 130 | <SkeletonText noOfLines={3} spacing={2} skeletonHeight="13px" /> |
| 131 | <Skeleton height="14px" width="120px" borderRadius="md" /> |
| 132 | </Stack> |
| 133 | |
| 134 | {/* Feature Request Card Skeleton */} |
| 135 | <Stack |
| 136 | p="6" |
| 137 | gap="3" |
| 138 | bgColor="white" |
| 139 | borderRadius="base" |
| 140 | border="1px" |
| 141 | borderColor="gray.100" |
| 142 | > |
| 143 | <HStack gap="2"> |
| 144 | <Skeleton height="20px" width="20px" borderRadius="sm" /> |
| 145 | <Skeleton height="18px" width="140px" borderRadius="md" /> |
| 146 | </HStack> |
| 147 | <SkeletonText noOfLines={3} spacing={2} skeletonHeight="13px" /> |
| 148 | <Skeleton height="14px" width="130px" borderRadius="md" /> |
| 149 | </Stack> |
| 150 | |
| 151 | {/* Submit Review Card Skeleton */} |
| 152 | <Stack |
| 153 | p="6" |
| 154 | gap="3" |
| 155 | bgColor="white" |
| 156 | borderRadius="base" |
| 157 | border="1px" |
| 158 | borderColor="gray.100" |
| 159 | > |
| 160 | <HStack gap="2"> |
| 161 | <Skeleton height="20px" width="20px" borderRadius="sm" /> |
| 162 | <Skeleton height="18px" width="140px" borderRadius="md" /> |
| 163 | </HStack> |
| 164 | <SkeletonText noOfLines={3} spacing={2} skeletonHeight="13px" /> |
| 165 | <Skeleton height="14px" width="130px" borderRadius="md" /> |
| 166 | </Stack> |
| 167 | |
| 168 | {/* Video Tutorials Card Skeleton */} |
| 169 | <Stack |
| 170 | p="6" |
| 171 | gap="3" |
| 172 | bgColor="white" |
| 173 | borderRadius="base" |
| 174 | border="1px" |
| 175 | borderColor="gray.100" |
| 176 | > |
| 177 | <HStack gap="2"> |
| 178 | <Skeleton height="20px" width="20px" borderRadius="sm" /> |
| 179 | <Skeleton height="18px" width="130px" borderRadius="md" /> |
| 180 | </HStack> |
| 181 | <SkeletonText noOfLines={3} spacing={2} skeletonHeight="13px" /> |
| 182 | <Skeleton height="14px" width="110px" borderRadius="md" /> |
| 183 | </Stack> |
| 184 | </Stack> |
| 185 | </Grid> |
| 186 | </Container> |
| 187 | ); |
| 188 | }; |
| 189 | |
| 190 | export default SiteAssistantSkeleton; |
| 191 |