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

View File

@ -5,7 +5,6 @@ import routesDeclarations from "@config/routes"
import onPageMount from "@hooks/onPageMount" import onPageMount from "@hooks/onPageMount"
import { Helmet } from "react-helmet"
import * as Sentry from "@sentry/browser" import * as Sentry from "@sentry/browser"
import { invoke } from "@tauri-apps/api/tauri" import { invoke } from "@tauri-apps/api/tauri"
import * as antd from "antd" import * as antd from "antd"
@ -113,15 +112,6 @@ class ComtyApp extends React.Component {
render() { render() {
return ( return (
<React.Fragment> <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> <ThemeProvider>
{window.__TAURI__ && <DesktopTopBar />} {window.__TAURI__ && <DesktopTopBar />}
<Layout staticRenders={ComtyApp.staticRenders}> <Layout staticRenders={ComtyApp.staticRenders}>