Skip to content

Commit

Permalink
Update meta tags (#53)
Browse files Browse the repository at this point in the history
* Update meta icons

* Use vite-plugin-html

* Fix title

* Update twitter meta tags
  • Loading branch information
ardier16 authored Mar 14, 2024
1 parent e5aa34f commit 1e6d791
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 38 deletions.
15 changes: 8 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
<meta name="theme-color" content="#ffffff">

<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
<meta name="description" content="Manage your identity credentials and Soulbound Tokens (SBTs) easily from the Rarime App">
<meta property="og:title" content="Rarime App">
<meta property="og:description" content="Manage your identity credentials and Soulbound Tokens (SBTs) easily from the Rarime App.">
<!-- TODO: fix link to the actual one -->
<meta property="og:url" content="https://app.rarime.com">
<meta property="og:image" content="https://app.rarime.com/branding/logo.png">
<meta name="description" content="Manage your identity credentials and Soulbound Tokens (SBTs). Generate Zero-Knowledge Proofs and share without exposing personal data.">
<meta property="og:title" content="Manage your identity | RariMe App">
<meta property="og:description" content="Manage your identity credentials and Soulbound Tokens (SBTs). Generate Zero-Knowledge Proofs and share without exposing personal data.">
<meta property="og:url" content="<%- host %>">
<meta property="og:image" content="<%- host %>/branding/og-img.png">
<meta property="og:locale" content="en_GB">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="<%- host %>/branding/og-img.png">
<meta name="twitter:title" content="Manage your identity | RariMe App">
<meta name="twitter:description" content="Manage your identity credentials and Soulbound Tokens (SBTs). Generate Zero-Knowledge Proofs and share without exposing personal data.">

<link rel="apple-touch-icon" sizes="180x180" href="/branding/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/branding/favicon-32x32.png">
Expand All @@ -40,7 +42,6 @@

<link href="/noscript/style.css" type="text/css" rel="stylesheet">
<link href="/init-loader/style.css" type="text/css" rel="stylesheet">
<script type="module" src="/src/main.tsx"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"typescript": "^5.2.2",
"vite": "^4.4.12",
"vite-plugin-checker": "^0.6.1",
"vite-plugin-html": "^3.2.0",
"vite-plugin-html": "^3.2.2",
"vite-plugin-node-polyfills": "^0.9.0",
"vite-plugin-svg-icons": "^2.0.1",
"vite-tsconfig-paths": "^4.0.3",
Expand Down
Binary file modified static/branding/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/branding/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/branding/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/branding/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/branding/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/branding/favicon.ico
Binary file not shown.
Binary file modified static/branding/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/branding/og-image.jpg
Binary file not shown.
Binary file added static/branding/og-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 3 additions & 28 deletions static/branding/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as path from 'path'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig, loadEnv } from 'vite'
import { checker } from 'vite-plugin-checker'
import { createHtmlPlugin } from 'vite-plugin-html'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
import tsconfigPaths from 'vite-tsconfig-paths'
Expand Down Expand Up @@ -52,6 +53,15 @@ export default defineConfig(({ mode }) => {
lintCommand: 'eslint "{src,config}/**/*.{jsx,tsx}" --cache --max-warnings=0',
},
}),
createHtmlPlugin({
minify: true,
entry: '/src/main.tsx',
inject: {
data: {
host: env.VITE_APP_DOMAIN,
},
},
}),
...(isAnalyze
? [
visualizer({
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9061,7 +9061,7 @@ __metadata:
valtio: "npm:^1.12.1"
vite: "npm:^4.4.12"
vite-plugin-checker: "npm:^0.6.1"
vite-plugin-html: "npm:^3.2.0"
vite-plugin-html: "npm:^3.2.2"
vite-plugin-node-polyfills: "npm:^0.9.0"
vite-plugin-svg-icons: "npm:^2.0.1"
vite-tsconfig-paths: "npm:^4.0.3"
Expand Down Expand Up @@ -11069,7 +11069,7 @@ __metadata:
languageName: node
linkType: hard

"vite-plugin-html@npm:^3.2.0":
"vite-plugin-html@npm:^3.2.2":
version: 3.2.2
resolution: "vite-plugin-html@npm:3.2.2"
dependencies:
Expand Down

0 comments on commit 1e6d791

Please sign in to comment.