|
| 1 | +import { useTranslation } from "next-i18next" |
| 2 | +import styled from "styled-components" |
| 3 | +import { Container, Row, Col } from "../../bootstrap" |
| 4 | +import { |
| 5 | + DescrContainer, |
| 6 | + Divider, |
| 7 | + PageDescr, |
| 8 | + PageTitle, |
| 9 | + SectionContainer, |
| 10 | + SectionTitle |
| 11 | +} from "../../shared/CommonComponents" |
| 12 | +import { Internal } from "../../links" |
| 13 | + |
| 14 | +const ExampleBox = styled.div` |
| 15 | + background: var(--maple-surface-raised); |
| 16 | + border-left: 4px solid var(--maple-brand-primary); |
| 17 | + border-radius: 0 var(--maple-radius-md) var(--maple-radius-md) 0; |
| 18 | + padding: 1rem 1.25rem; |
| 19 | + margin: 0.75rem 0; |
| 20 | + font-size: 15px; |
| 21 | + font-style: italic; |
| 22 | + color: var(--maple-text-body); |
| 23 | +` |
| 24 | + |
| 25 | +const StepNumber = styled.div` |
| 26 | + display: flex; |
| 27 | + align-items: center; |
| 28 | + justify-content: center; |
| 29 | + width: 2rem; |
| 30 | + height: 2rem; |
| 31 | + border-radius: 50%; |
| 32 | + background: var(--maple-brand-primary); |
| 33 | + color: white; |
| 34 | + font-weight: 700; |
| 35 | + font-size: 1rem; |
| 36 | + flex-shrink: 0; |
| 37 | + margin-right: 0.75rem; |
| 38 | +` |
| 39 | + |
| 40 | +const StepRow = styled.div` |
| 41 | + display: flex; |
| 42 | + align-items: flex-start; |
| 43 | + padding: 0.75rem 1.25rem; |
| 44 | +` |
| 45 | + |
| 46 | +const StepText = styled.div` |
| 47 | + font-size: 16px; |
| 48 | + font-weight: 500; |
| 49 | + color: var(--maple-text-body); |
| 50 | + line-height: 1.5; |
| 51 | +` |
| 52 | + |
| 53 | +const ExampleLabel = styled.div` |
| 54 | + font-size: 13px; |
| 55 | + font-weight: 700; |
| 56 | + text-transform: uppercase; |
| 57 | + letter-spacing: 0.06em; |
| 58 | + color: var(--maple-brand-primary); |
| 59 | + margin-bottom: 0.25rem; |
| 60 | +` |
| 61 | + |
| 62 | +export const AiTools = () => { |
| 63 | + const { t } = useTranslation("aiTools") |
| 64 | + |
| 65 | + return ( |
| 66 | + <Container> |
| 67 | + <Row> |
| 68 | + <Col> |
| 69 | + <PageTitle>{t("title")}</PageTitle> |
| 70 | + </Col> |
| 71 | + </Row> |
| 72 | + <Row> |
| 73 | + <Col className="py-3"> |
| 74 | + <PageDescr>{t("description")}</PageDescr> |
| 75 | + </Col> |
| 76 | + </Row> |
| 77 | + |
| 78 | + {/* What is it */} |
| 79 | + <Row> |
| 80 | + <Col className="py-3"> |
| 81 | + <SectionContainer> |
| 82 | + <SectionTitle className="p-2">{t("section1.title")}</SectionTitle> |
| 83 | + <DescrContainer className="py-3 px-4"> |
| 84 | + {t("section1.desc1")} |
| 85 | + </DescrContainer> |
| 86 | + <DescrContainer className="pb-3 px-4"> |
| 87 | + {t("section1.desc2Pre")}{" "} |
| 88 | + <b> |
| 89 | + <a |
| 90 | + href="https://modelcontextprotocol.io/introduction" |
| 91 | + target="_blank" |
| 92 | + rel="noreferrer" |
| 93 | + > |
| 94 | + {t("section1.desc2LinkText")} |
| 95 | + </a> |
| 96 | + </b> |
| 97 | + {t("section1.desc2Post")} |
| 98 | + </DescrContainer> |
| 99 | + </SectionContainer> |
| 100 | + </Col> |
| 101 | + </Row> |
| 102 | + |
| 103 | + {/* What you can do */} |
| 104 | + <Row> |
| 105 | + <Col className="py-3"> |
| 106 | + <SectionContainer> |
| 107 | + <SectionTitle className="p-2">{t("section2.title")}</SectionTitle> |
| 108 | + <DescrContainer className="py-3 px-4"> |
| 109 | + {t("section2.intro")} |
| 110 | + </DescrContainer> |
| 111 | + <DescrContainer className="pb-1 px-4"> |
| 112 | + <ul> |
| 113 | + <li className="pb-3"> |
| 114 | + <b>{t("section2.item1Bold")}</b> {t("section2.item1Main")} |
| 115 | + </li> |
| 116 | + <li className="pb-3"> |
| 117 | + <b>{t("section2.item2Bold")}</b> {t("section2.item2Main")} |
| 118 | + </li> |
| 119 | + <li className="pb-3"> |
| 120 | + <b>{t("section2.item3Bold")}</b> {t("section2.item3Main")} |
| 121 | + </li> |
| 122 | + <li className="pb-3"> |
| 123 | + <b>{t("section2.item4Bold")}</b> {t("section2.item4Main")} |
| 124 | + </li> |
| 125 | + <li className="pb-3"> |
| 126 | + <b>{t("section2.item5Bold")}</b> {t("section2.item5Main")} |
| 127 | + </li> |
| 128 | + <li className="pb-3"> |
| 129 | + <b>{t("section2.item6Bold")}</b> {t("section2.item6Main")} |
| 130 | + </li> |
| 131 | + <li> |
| 132 | + <b>{t("section2.item7Bold")}</b> {t("section2.item7Main")} |
| 133 | + </li> |
| 134 | + </ul> |
| 135 | + </DescrContainer> |
| 136 | + </SectionContainer> |
| 137 | + </Col> |
| 138 | + </Row> |
| 139 | + |
| 140 | + {/* Examples */} |
| 141 | + <Row> |
| 142 | + <Col className="py-3"> |
| 143 | + <SectionContainer> |
| 144 | + <SectionTitle className="p-2">{t("section3.title")}</SectionTitle> |
| 145 | + <DescrContainer className="py-3 px-4"> |
| 146 | + {t("section3.intro")} |
| 147 | + </DescrContainer> |
| 148 | + <div className="px-4 pb-4"> |
| 149 | + <ExampleLabel>{t("section3.example1Label")}</ExampleLabel> |
| 150 | + <ExampleBox> |
| 151 | + “{t("section3.example1Text")}” |
| 152 | + </ExampleBox> |
| 153 | + |
| 154 | + <ExampleLabel>{t("section3.example2Label")}</ExampleLabel> |
| 155 | + <ExampleBox> |
| 156 | + “{t("section3.example2Text")}” |
| 157 | + </ExampleBox> |
| 158 | + |
| 159 | + <ExampleLabel>{t("section3.example3Label")}</ExampleLabel> |
| 160 | + <ExampleBox> |
| 161 | + “{t("section3.example3Text")}” |
| 162 | + </ExampleBox> |
| 163 | + |
| 164 | + <ExampleLabel>{t("section3.example4Label")}</ExampleLabel> |
| 165 | + <ExampleBox> |
| 166 | + “{t("section3.example4Text")}” |
| 167 | + </ExampleBox> |
| 168 | + </div> |
| 169 | + </SectionContainer> |
| 170 | + </Col> |
| 171 | + </Row> |
| 172 | + |
| 173 | + {/* How to get started */} |
| 174 | + <Row> |
| 175 | + <Col className="py-3"> |
| 176 | + <SectionContainer> |
| 177 | + <SectionTitle className="p-2">{t("section4.title")}</SectionTitle> |
| 178 | + <DescrContainer className="py-3 px-4"> |
| 179 | + {t("section4.intro")} |
| 180 | + </DescrContainer> |
| 181 | + <StepRow> |
| 182 | + <StepNumber>1</StepNumber> |
| 183 | + <StepText> |
| 184 | + <b>{t("section4.step1Bold")}</b> {t("section4.step1Pre")}{" "} |
| 185 | + <Internal href="/login">{t("section4.step1LinkText")}</Internal> |
| 186 | + {t("section4.step1Post")} |
| 187 | + </StepText> |
| 188 | + </StepRow> |
| 189 | + <Divider /> |
| 190 | + <StepRow> |
| 191 | + <StepNumber>2</StepNumber> |
| 192 | + <StepText> |
| 193 | + <b>{t("section4.step2Bold")}</b> {t("section4.step2Intro")} |
| 194 | + <ul style={{ marginTop: "0.5rem" }}> |
| 195 | + <li className="pb-2"> |
| 196 | + <b>{t("section4.step2item1Bold")}</b>{" "} |
| 197 | + {t("section4.step2item1Tag")} {t("section4.step2item1Pre")}{" "} |
| 198 | + <a |
| 199 | + href="https://claude.ai/download" |
| 200 | + target="_blank" |
| 201 | + rel="noreferrer" |
| 202 | + > |
| 203 | + {t("section4.step2item1Link1")} |
| 204 | + </a> |
| 205 | + {t("section4.step2item1Mid")}{" "} |
| 206 | + <a |
| 207 | + href="https://modelcontextprotocol.io/quickstart/user" |
| 208 | + target="_blank" |
| 209 | + rel="noreferrer" |
| 210 | + > |
| 211 | + {t("section4.step2item1Link2")} |
| 212 | + </a> |
| 213 | + {t("section4.step2item1Post")} |
| 214 | + </li> |
| 215 | + <li className="pb-2"> |
| 216 | + <b>{t("section4.step2item2Bold")}</b>{" "} |
| 217 | + {t("section4.step2item2Tag")} {t("section4.step2item2Pre")}{" "} |
| 218 | + <a |
| 219 | + href="https://help.openai.com/en/articles/11487775-connectors-in-chatgpt" |
| 220 | + target="_blank" |
| 221 | + rel="noreferrer" |
| 222 | + > |
| 223 | + {t("section4.step2item2LinkText")} |
| 224 | + </a>{" "} |
| 225 | + {t("section4.step2item2Post")} |
| 226 | + </li> |
| 227 | + <li> |
| 228 | + <b>{t("section4.step2item3Bold")}</b>{" "} |
| 229 | + {t("section4.step2item3Main")} |
| 230 | + </li> |
| 231 | + </ul> |
| 232 | + </StepText> |
| 233 | + </StepRow> |
| 234 | + <Divider /> |
| 235 | + <StepRow> |
| 236 | + <StepNumber>3</StepNumber> |
| 237 | + <StepText> |
| 238 | + <b>{t("section4.step3Bold")}</b> {t("section4.step3Pre")}{" "} |
| 239 | + <Internal href="/dev/token"> |
| 240 | + {t("section4.step3LinkText")} |
| 241 | + </Internal>{" "} |
| 242 | + {t("section4.step3Post")} |
| 243 | + </StepText> |
| 244 | + </StepRow> |
| 245 | + <Divider /> |
| 246 | + <StepRow> |
| 247 | + <StepNumber>4</StepNumber> |
| 248 | + <StepText> |
| 249 | + <b>{t("section4.step4Bold")}</b> {t("section4.step4Pre")}{" "} |
| 250 | + <code>YOUR_TOKEN_HERE</code> {t("section4.step4Post")} |
| 251 | + </StepText> |
| 252 | + </StepRow> |
| 253 | + <div className="px-4 pb-4"> |
| 254 | + <pre |
| 255 | + style={{ |
| 256 | + background: "var(--maple-surface-raised)", |
| 257 | + borderRadius: "var(--maple-radius-md)", |
| 258 | + padding: "1rem", |
| 259 | + fontSize: "13px", |
| 260 | + overflowX: "auto" |
| 261 | + }} |
| 262 | + >{`{ |
| 263 | + "mcpServers": { |
| 264 | + "maple": { |
| 265 | + "type": "http", |
| 266 | + "url": "https://mapletestimony.org/api/mcp", |
| 267 | + "headers": { |
| 268 | + "X-Maple-Token": "Bearer YOUR_TOKEN_HERE" |
| 269 | + } |
| 270 | + } |
| 271 | + } |
| 272 | +}`}</pre> |
| 273 | + </div> |
| 274 | + <Divider /> |
| 275 | + <StepRow> |
| 276 | + <StepNumber>5</StepNumber> |
| 277 | + <StepText> |
| 278 | + <b>{t("section4.step5Bold")}</b> {t("section4.step5Post")} |
| 279 | + </StepText> |
| 280 | + </StepRow> |
| 281 | + <DescrContainer className="py-3 px-4"> |
| 282 | + <b>{t("section4.needHelp")}</b> {t("section4.needHelpPost")}{" "} |
| 283 | + <a href="mailto:info@mapletestimony.org"> |
| 284 | + info@mapletestimony.org |
| 285 | + </a> |
| 286 | + . |
| 287 | + </DescrContainer> |
| 288 | + </SectionContainer> |
| 289 | + </Col> |
| 290 | + </Row> |
| 291 | + |
| 292 | + {/* Privacy */} |
| 293 | + <Row> |
| 294 | + <Col className="py-3"> |
| 295 | + <SectionContainer> |
| 296 | + <SectionTitle className="p-2">{t("section5.title")}</SectionTitle> |
| 297 | + <DescrContainer className="py-3 px-4"> |
| 298 | + {t("section5.desc1")} |
| 299 | + </DescrContainer> |
| 300 | + <DescrContainer className="pb-3 px-4"> |
| 301 | + {t("section5.desc2Pre")}{" "} |
| 302 | + <Internal href="/about/how-maple-uses-ai"> |
| 303 | + {t("section5.desc2LinkText")} |
| 304 | + </Internal> |
| 305 | + </DescrContainer> |
| 306 | + </SectionContainer> |
| 307 | + </Col> |
| 308 | + </Row> |
| 309 | + </Container> |
| 310 | + ) |
| 311 | +} |
| 312 | + |
| 313 | +export default AiTools |
0 commit comments