|
| 1 | +import React from 'react'; |
| 2 | +import { Box, Typography, Flex, LinkButton } from '@strapi/design-system'; |
| 3 | +import { |
| 4 | + Cast, |
| 5 | + Database, |
| 6 | + Image as ImageIcon, |
| 7 | + Globe, |
| 8 | + Rocket, |
| 9 | + ManyWays, |
| 10 | + Shield, |
| 11 | + Lock, |
| 12 | + Sparkle, |
| 13 | + ExternalLink |
| 14 | +} from '@strapi/icons'; |
| 15 | + |
| 16 | +const DemoWidget = () => { |
| 17 | + return ( |
| 18 | + <Box |
| 19 | + padding={4} |
| 20 | + background="neutral0" |
| 21 | + borderColor="neutral150" |
| 22 | + hasRadius |
| 23 | + > |
| 24 | + <Flex alignItems="flex-start" gap={6} direction="row" style={{ flexWrap: 'nowrap' }}> |
| 25 | + {/* Left Section */} |
| 26 | + <Box style={{ flex: '1 1 45%' }}> |
| 27 | + <Flex direction="column" alignItems="flex-start" gap={2}> |
| 28 | + <Box marginBottom={2}> |
| 29 | + <Typography variant="alpha" textColor="neutral800" as="h2"> |
| 30 | + Hosted Demo Environment |
| 31 | + </Typography> |
| 32 | + </Box> |
| 33 | + |
| 34 | + <Typography variant="omega" textColor="neutral600"> |
| 35 | + Experience Strapi in a production-like setup. Explore the platform as a real team would use it. |
| 36 | + </Typography> |
| 37 | + <Typography variant="omega" textColor="neutral600"> |
| 38 | + <strong>All paid features are unlocked</strong> in this demo so you can explore the full capabilities of Strapi. |
| 39 | + </Typography> |
| 40 | + </Flex> |
| 41 | + </Box> |
| 42 | + |
| 43 | + {/* Right Section */} |
| 44 | + <Box style={{ flex: '1 1 55%' }}> |
| 45 | + <Flex direction="column" alignItems="flex-start" gap={5}> |
| 46 | + <Flex direction="column" alignItems="flex-start" gap={3}> |
| 47 | + <Typography variant="sigma" textColor="neutral600" textTransform="uppercase"> |
| 48 | + Core Features |
| 49 | + </Typography> |
| 50 | + <Flex gap={2} wrap="wrap"> |
| 51 | + <LinkButton href="/admin/content-manager/" variant="secondary" startIcon={<Database fill="primary600" />}> |
| 52 | + Content Manager |
| 53 | + </LinkButton> |
| 54 | + <LinkButton href="/admin/plugins/upload" variant="secondary" startIcon={<ImageIcon fill="primary600" />}> |
| 55 | + Media Library |
| 56 | + </LinkButton> |
| 57 | + <LinkButton href="/admin/settings/internationalization" variant="secondary" startIcon={<Globe fill="primary600" />}> |
| 58 | + Internationalization |
| 59 | + </LinkButton> |
| 60 | + </Flex> |
| 61 | + </Flex> |
| 62 | + |
| 63 | + <Flex direction="column" alignItems="flex-start" gap={3}> |
| 64 | + <Flex gap={2}> |
| 65 | + <Typography variant="sigma" textColor="neutral600" textTransform="uppercase"> |
| 66 | + Premium Features |
| 67 | + </Typography> |
| 68 | + <Sparkle fill="primary600" width="12px" height="12px" /> |
| 69 | + </Flex> |
| 70 | + <Flex gap={2} wrap="wrap"> |
| 71 | + <LinkButton href="/admin/plugins/content-releases" variant="secondary" startIcon={<Rocket fill="primary600" />}> |
| 72 | + Releases |
| 73 | + </LinkButton> |
| 74 | + <LinkButton href="/admin/settings/review-workflows" variant="secondary" startIcon={<ManyWays fill="primary600" />}> |
| 75 | + Review Workflows |
| 76 | + </LinkButton> |
| 77 | + <LinkButton href="/admin/settings/audit-logs" variant="secondary" startIcon={<Shield fill="primary600" />}> |
| 78 | + Audit Logs |
| 79 | + </LinkButton> |
| 80 | + </Flex> |
| 81 | + </Flex> |
| 82 | + </Flex> |
| 83 | + </Box> |
| 84 | + </Flex> |
| 85 | + |
| 86 | + {/* Bottom Footer Section */} |
| 87 | + <Box |
| 88 | + marginTop={6} |
| 89 | + padding={4} |
| 90 | + borderColor="neutral150" |
| 91 | + > |
| 92 | + <Flex gap={3}> |
| 93 | + <Lock fill="neutral500" width="16px" height="16px" /> |
| 94 | + <Typography variant="omega" textColor="neutral600"> |
| 95 | + Content-Type Builder is disabled in production mode.{' '} |
| 96 | + <a |
| 97 | + href="https://github.com/strapi/LaunchPad" |
| 98 | + target="_blank" |
| 99 | + rel="noopener noreferrer" |
| 100 | + style={{ color: '#4945ff', fontWeight: 600, textDecoration: 'none', display: 'inline-flex', alignItems: 'center', gap: '4px' }} |
| 101 | + > |
| 102 | + Install LaunchPad locally <ExternalLink width="12px" height="12px" /> |
| 103 | + </a>{' '} |
| 104 | + to build from scratch. |
| 105 | + </Typography> |
| 106 | + </Flex> |
| 107 | + </Box> |
| 108 | + </Box> |
| 109 | + ); |
| 110 | +}; |
| 111 | + |
| 112 | +export default DemoWidget; |
0 commit comments