Skip to content

Commit

Permalink
feat: seo
Browse files Browse the repository at this point in the history
1. Added meta tags to head
2. Updated titles, descriptions
3. Added image and icon
  • Loading branch information
Beraliv committed Dec 27, 2024
1 parent 52bbeed commit 442b902
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ts-conversion

Interactive website, helping understand, how to convert one type to another in TypeScript, with code examples, links to TypeScript playground and applications from popular libraries
Interactive TypeScript tool: learn how to convert types effectively with hands-on examples, TypeScript Playground, and references to widely used libraries.

Try it now: https://ts-conversion.beraliv.com

Expand Down Expand Up @@ -32,4 +32,4 @@ npm run dev -- --host
- [ ] Accessibility-friendly (_in progress_)
- [x] Analytics
- [x] Added [Plausible](https://plausible.io/ts-conversion.beraliv.com)
- [ ] SEO-friendly (_in progress_)
- [x] SEO-friendly
38 changes: 36 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,42 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TS conversion</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="Interactive TypeScript tool: learn how to convert types effectively with hands-on examples, TypeScript Playground, and references to widely used libraries"
/>
<link rel="icon" href="/icon.jpg" />
<meta name="image" content="/image.png" />
<meta name="keywords" content="TypeScript Conversion TS" />
<link rel="canonical" href="https://ts-conversion.beraliv.com/" />
<meta property="og:site_name" content="ts-conversion.beraliv.com" />
<meta
property="og:title"
content="Convert one type to another in TypeScript"
/>
<meta
property="og:description"
content="Interactive TypeScript tool: learn how to convert types effectively with hands-on examples, TypeScript Playground, and references to widely used libraries"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://ts-conversion.beraliv.com/" />
<meta property="og:image" content="/image.png" />
<meta property="og:image:height" content="900" />
<meta property="og:image:width" content="1600" />
<meta name="twitter:creator" content="@beraliv" />
<meta name="twitter:site" content="@beraliv" />
<meta
name="twitter:title"
content="Convert one type to another in TypeScript"
/>
<meta
name="twitter:description"
content="Interactive TypeScript tool: learn how to convert types effectively with hands-on examples, TypeScript Playground, and references to widely used libraries"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content="/image.png" />
<title>TS Conversion</title>
<script
defer
data-domain="ts-conversion.beraliv.com"
Expand Down
Binary file added public/icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/Intro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export const Intro = () => (
<sup className={styles.ProgressData}>beta</sup>
</h2>
<p>
Interactive website, helping engineers understand, how they can convert
one type to another in TypeScript, with examples and links to TypeScript
playground.
Interactive TypeScript tool: learn how to transform types effectively with
hands-on examples, TypeScript Playground, and references to widely used
libraries.
</p>
</div>
);
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import react from "@vitejs/plugin-react-swc";
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
publicDir: "public",
});

0 comments on commit 442b902

Please sign in to comment.