({ location })
| 21 | import openGraphImage from "~/assets/images/opengraph.png"; |
| 22 | |
| 23 | export const meta: MetaFunction = ({ location }) => { |
| 24 | const description = |
| 25 | "JSON Hero makes reading and understand JSON files easy by giving you a clean and beautiful UI packed with extra features."; |
| 26 | return { |
| 27 | title: "JSON Hero - a beautiful JSON viewer for the web", |
| 28 | viewport: "width=device-width,initial-scale=1", |
| 29 | description, |
| 30 | "og:image": `https://jsonhero.io${openGraphImage}`, |
| 31 | "og:url": `https://jsonhero.io${location.pathname}`, |
| 32 | "og:title": "JSON Hero - A beautiful JSON viewer", |
| 33 | "og:description": description, |
| 34 | "twitter:image": `https://jsonhero.io${openGraphImage}`, |
| 35 | "twitter:card": "summary_large_image", |
| 36 | "twitter:creator": "@json_hero", |
| 37 | "twitter:site": "@json_hero", |
| 38 | "twitter:title": "JSON Hero", |
| 39 | "twitter:description": description, |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | import styles from "./tailwind.css"; |
| 44 | import { getThemeSession } from "./theme.server"; |
nothing calls this directly
no outgoing calls
no test coverage detected