|
| 1 | +import { Box, Paper, Typography, Avatar } from "@mui/material"; |
| 2 | +import Link from "@mui/material/Link"; |
| 3 | + |
| 4 | +type ExternalLinkProps = { |
| 5 | + href: string; |
| 6 | + text: string; |
| 7 | + target?: string; |
| 8 | +}; |
| 9 | + |
| 10 | +const ExternalLink = ({ href, text, target = "_blank" }: ExternalLinkProps) => { |
| 11 | + return ( |
| 12 | + <Typography |
| 13 | + component={Link} |
| 14 | + href={href} |
| 15 | + target={target} |
| 16 | + variant="body3" |
| 17 | + color="info.main" |
| 18 | + > |
| 19 | + {text} |
| 20 | + </Typography> |
| 21 | + ); |
| 22 | +}; |
| 23 | + |
| 24 | +export const DevResources = () => { |
| 25 | + return ( |
| 26 | + <Box> |
| 27 | + <Typography variant="h5" mb="20px" color="common.white"> |
| 28 | + Developer Resources |
| 29 | + </Typography> |
| 30 | + <Paper |
| 31 | + variant="outlined" |
| 32 | + elevation={0} |
| 33 | + sx={{ |
| 34 | + p: "20px", |
| 35 | + display: "flex", |
| 36 | + flexDirection: "column", |
| 37 | + gap: "20px", |
| 38 | + backgroundColor: "transparent", |
| 39 | + color: "grey.400", |
| 40 | + borderColor: "grey.700", |
| 41 | + borderRadius: "8px", |
| 42 | + }} |
| 43 | + > |
| 44 | + <Typography variant="h6" color="common.white"> |
| 45 | + Build Faster, Build Smarter with Parsley! 🚀 |
| 46 | + </Typography> |
| 47 | + |
| 48 | + <Typography variant="body3" color="grey.400"> |
| 49 | + Get started building dynamic websites and applications with |
| 50 | + <ExternalLink |
| 51 | + href="https://docs.zesty.io/docs/parsley" |
| 52 | + text="Parsley" |
| 53 | + /> |
| 54 | + , Zesty.io's templating language. Explore our interactive |
| 55 | + <ExternalLink href="https://parsley.zesty.io/" text="REPL" /> |
| 56 | + for a quick hands-on introduction, or learn more through our |
| 57 | + in-depth |
| 58 | + <ExternalLink |
| 59 | + href="https://docs.zesty.io/docs/parsley-index" |
| 60 | + text="documentation" |
| 61 | + /> |
| 62 | + . |
| 63 | + </Typography> |
| 64 | + |
| 65 | + <Typography variant="h6" color="common.white"> |
| 66 | + Simplify Your Workflow: Preprocessing Inside! 💻 |
| 67 | + </Typography> |
| 68 | + |
| 69 | + <Typography variant="body3" color="grey.400"> |
| 70 | + Discover our streamlined workflows and boost your development |
| 71 | + efficiency. See how this works with our |
| 72 | + <ExternalLink |
| 73 | + href="https://docs.zesty.io/docs/css-js-processing-flow" |
| 74 | + text="CSS & JavaScript preprocessing" |
| 75 | + /> |
| 76 | + . |
| 77 | + </Typography> |
| 78 | + |
| 79 | + <Box display="flex" flexDirection="column"> |
| 80 | + <Typography variant="h6" color="common.white" mb="8px"> |
| 81 | + API Docs |
| 82 | + </Typography> |
| 83 | + <Box |
| 84 | + component={Link} |
| 85 | + href="https://docs.zesty.io/reference/instances-api-reference" |
| 86 | + target="_blank" |
| 87 | + display="flex" |
| 88 | + flexDirection="row" |
| 89 | + alignItems="center" |
| 90 | + columnGap="12px" |
| 91 | + py="4px" |
| 92 | + height="36px" |
| 93 | + borderBottom="1px solid" |
| 94 | + borderColor="grey.700" |
| 95 | + sx={{ |
| 96 | + textDecoration: "none!important", |
| 97 | + }} |
| 98 | + > |
| 99 | + <Avatar |
| 100 | + src="/images/postmanIcon.svg" |
| 101 | + sx={{ width: 24, height: 24 }} |
| 102 | + /> |
| 103 | + <Typography variant="body2" color="common.white"> |
| 104 | + Instance API Docs |
| 105 | + </Typography> |
| 106 | + </Box> |
| 107 | + <Box |
| 108 | + component={Link} |
| 109 | + href="https://docs.zesty.io/docs/graphql#GraphQL" |
| 110 | + target="_blank" |
| 111 | + display="flex" |
| 112 | + flexDirection="row" |
| 113 | + alignItems="center" |
| 114 | + columnGap="12px" |
| 115 | + py="4px" |
| 116 | + height="36px" |
| 117 | + borderBottom="1px solid" |
| 118 | + borderColor="grey.700" |
| 119 | + sx={{ |
| 120 | + textDecoration: "none!important", |
| 121 | + }} |
| 122 | + > |
| 123 | + <Avatar |
| 124 | + src="/images/graphQLIcon.svg" |
| 125 | + sx={{ width: 24, height: 24 }} |
| 126 | + /> |
| 127 | + <Typography variant="body2" color="common.white"> |
| 128 | + GraphQL Docs |
| 129 | + </Typography> |
| 130 | + </Box> |
| 131 | + <Box |
| 132 | + component={Link} |
| 133 | + href="https://docs.zesty.io/docs/parsley" |
| 134 | + target="_blank" |
| 135 | + display="flex" |
| 136 | + flexDirection="row" |
| 137 | + alignItems="center" |
| 138 | + columnGap="12px" |
| 139 | + py="4px" |
| 140 | + height="36px" |
| 141 | + borderBottom="1px solid" |
| 142 | + borderColor="grey.700" |
| 143 | + sx={{ |
| 144 | + textDecoration: "none!important", |
| 145 | + }} |
| 146 | + > |
| 147 | + <Avatar |
| 148 | + src="/images/parsleyIcon.svg" |
| 149 | + sx={{ width: 24, height: 24 }} |
| 150 | + /> |
| 151 | + <Typography variant="body2" color="common.white"> |
| 152 | + Parsley Docs |
| 153 | + </Typography> |
| 154 | + </Box> |
| 155 | + </Box> |
| 156 | + </Paper> |
| 157 | + </Box> |
| 158 | + ); |
| 159 | +}; |
0 commit comments