Set page title and meta tags in index.html and remove Helmet usage

This commit is contained in:
srgooglo 2025-07-04 16:21:58 +02:00
parent cc99fbc085
commit b01905c8fd
2 changed files with 173 additions and 182 deletions

View File

@ -1,202 +1,203 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta
name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
name="description"
content="Comty, a prototype of social network."
/>
<meta name="title" content="Comty" />
<meta
name="description"
content="Comty, a prototype of social network."
/>
<meta property="og:title" content="Comty" />
<meta
property="og:description"
content="Comty, a prototype of social network."
/>
<meta
property="og:image"
content="https://storage.ragestudio.net/rstudio/branding/comty/iso/basic_alt.svg"
/>
</head>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<title>Comty™</title>
<meta name="title" content="Comty™" />
<meta
name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
name="description"
content="Comty, a prototype of social network."
/>
<meta
name="description"
content="Comty, a prototype of social network."
/>
<meta property="og:title" content="Comty" />
<meta
property="og:description"
content="Comty, a prototype of social network."
/>
<meta
property="og:image"
content="https://storage.ragestudio.net/rstudio/branding/comty/iso/basic_alt.svg"
/>
</head>
<style>
.app_splash_visible {
opacity: 1 !important;
pointer-events: auto;
}
<style>
.app_splash_visible {
opacity: 1 !important;
pointer-events: auto;
}
.app_splash {
z-index: 9999;
position: fixed;
.app_splash {
z-index: 9999;
position: fixed;
top: 0;
left: 0;
top: 0;
left: 0;
overflow: hidden;
overflow: hidden;
background-color: #252525;
color: #d7d7d7;
background-color: #252525;
color: #d7d7d7;
width: 100vw;
height: 100vh;
height: 100dvh;
width: 100vw;
height: 100vh;
height: 100dvh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
opacity: 0;
pointer-events: none;
transition: all 300ms ease-in-out;
}
transition: all 300ms ease-in-out;
}
.app_splash .app_splash_content {
position: relative;
z-index: 100;
.app_splash .app_splash_content {
position: relative;
z-index: 100;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 70px;
padding: 70px;
width: 300px;
height: 300px;
}
width: 300px;
height: 300px;
}
.app_splash .app_splash_content .app_splash_content_logo {
width: 230px;
height: 230px;
}
.app_splash .app_splash_content .app_splash_content_logo {
width: 230px;
height: 230px;
}
.app_splash_content_loader_wrapper {
user-select: none;
.app_splash_content_loader_wrapper {
user-select: none;
position: fixed;
position: fixed;
z-index: 1000;
z-index: 1000;
right: 0;
bottom: 0;
right: 0;
bottom: 0;
width: fit-content;
height: 30px;
width: fit-content;
height: 30px;
margin: 40px 50px;
margin: 40px 50px;
background-color: #2d2d2dc2;
border-radius: 28px;
}
background-color: #2d2d2dc2;
border-radius: 28px;
}
.app_splash_content_loader_wrapper .app_splash_content_loader {
transform: scale(0.28);
width: 54px;
height: 23px;
}
.app_splash_content_loader_wrapper .app_splash_content_loader {
transform: scale(0.28);
width: 54px;
height: 23px;
}
.app_splash_content_loader_wrapper .app_splash_content_loader > div {
width: 6px;
height: 20px;
.app_splash_content_loader_wrapper .app_splash_content_loader > div {
width: 6px;
height: 20px;
position: absolute;
position: absolute;
left: -10px;
bottom: 15px;
border-radius: 5px;
transform-origin: 10px 35px;
transform: rotate(0deg);
animation: loader 0.8s infinite;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(2) {
transform: rotate(45deg);
animation-delay: 0.1s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(3) {
transform: rotate(90deg);
animation-delay: 0.2s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(4) {
transform: rotate(135deg);
animation-delay: 0.3s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(5) {
transform: rotate(180deg);
animation-delay: 0.4s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(6) {
transform: rotate(225deg);
animation-delay: 0.5s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(7) {
transform: rotate(270deg);
animation-delay: 0.6s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(8) {
transform: rotate(315deg);
animation-delay: 0.7s;
}
@keyframes loader {
0% {
background: transparent;
left: -10px;
transform-origin: 10px 35px;
}
30% {
background: #fff;
}
100% {
background: transparent;
left: 10px;
transform-origin: -10px 35px;
}
}
</style>
left: -10px;
bottom: 15px;
border-radius: 5px;
transform-origin: 10px 35px;
transform: rotate(0deg);
animation: loader 0.8s infinite;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(2) {
transform: rotate(45deg);
animation-delay: 0.1s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(3) {
transform: rotate(90deg);
animation-delay: 0.2s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(4) {
transform: rotate(135deg);
animation-delay: 0.3s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(5) {
transform: rotate(180deg);
animation-delay: 0.4s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(6) {
transform: rotate(225deg);
animation-delay: 0.5s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(7) {
transform: rotate(270deg);
animation-delay: 0.6s;
}
.app_splash_content_loader_wrapper
.app_splash_content_loader
> div:nth-child(8) {
transform: rotate(315deg);
animation-delay: 0.7s;
}
@keyframes loader {
0% {
background: transparent;
left: -10px;
transform-origin: 10px 35px;
}
30% {
background: #fff;
}
100% {
background: transparent;
left: 10px;
transform-origin: -10px 35px;
}
}
</style>
<body>
<div id="splash-screen" class="app_splash app_splash_visible">
<div class="app_splash_content">
<img class="app_splash_content_logo" src="/basic_alt.svg" />
<body>
<div id="splash-screen" class="app_splash app_splash_visible">
<div class="app_splash_content">
<img class="app_splash_content_logo" src="/basic_alt.svg" />
<div class="app_splash_content_loader_wrapper">
<div class="app_splash_content_loader">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
</div>
<div id="root"></div>
<script type="module" src="/src/App.jsx"></script>
</body>
<div class="app_splash_content_loader_wrapper">
<div class="app_splash_content_loader">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
</div>
<div id="root"></div>
<script type="module" src="/src/App.jsx"></script>
</body>
</html>

View File

@ -5,7 +5,6 @@ import routesDeclarations from "@config/routes"
import onPageMount from "@hooks/onPageMount"
import { Helmet } from "react-helmet"
import * as Sentry from "@sentry/browser"
import { invoke } from "@tauri-apps/api/tauri"
import * as antd from "antd"
@ -113,15 +112,6 @@ class ComtyApp extends React.Component {
render() {
return (
<React.Fragment>
<Helmet>
<title>{config.app.siteName}</title>
<meta
name="og:description"
content={config.app.siteDescription}
/>
<meta property="og:title" content={config.app.siteName} />
</Helmet>
<ThemeProvider>
{window.__TAURI__ && <DesktopTopBar />}
<Layout staticRenders={ComtyApp.staticRenders}>