Fix: solidjs update, language routes, big screen layout shifts
This commit is contained in:
parent
2c9d4cb57e
commit
66fa95bb33
11 changed files with 339 additions and 334 deletions
10
package.json
10
package.json
|
@ -9,10 +9,10 @@
|
|||
},
|
||||
"type": "module",
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.20",
|
||||
"@typescript-eslint/parser": "^7.0.2",
|
||||
"@types/node": "^20.11.21",
|
||||
"@typescript-eslint/parser": "^7.1.0",
|
||||
"esbuild": "^0.20.1",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-solid": "^0.13.1",
|
||||
"prettier": "^3.2.5",
|
||||
|
@ -25,10 +25,10 @@
|
|||
"@fortawesome/pro-regular-svg-icons": "^6.5.1",
|
||||
"@solidjs/meta": "^0.29.3",
|
||||
"@solidjs/router": "^0.12.4",
|
||||
"@solidjs/start": "^0.5.10",
|
||||
"@solidjs/start": "^0.6.0",
|
||||
"sass": "^1.71.1",
|
||||
"solid-js": "^1.8.15",
|
||||
"vinxi": "^0.3.3"
|
||||
"vinxi": "^0.3.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
567
pnpm-lock.yaml
generated
567
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -3,38 +3,38 @@
|
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/en</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/en/KSS22</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/en/manufacturers</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/en/overview</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/de</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/de/imprint</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/de/KSS22</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/de/manufacturers</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://jg-eucs.com/de/overview</loc>
|
||||
<lastmod>2023-11-03</lastmod>
|
||||
<lastmod>2024-02-28</lastmod>
|
||||
</url>
|
||||
</urlset>
|
|
@ -59,7 +59,7 @@ function Navbar() {
|
|||
return (
|
||||
<>
|
||||
<div id="navbar" style={{ visibility: menu() ? "visible" : "hidden" }}>
|
||||
<a href="/de/">
|
||||
<a href="/de">
|
||||
<FontAwesomeIcon icon={faBookOpen} /> Einführung
|
||||
</a>
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ function Navbar() {
|
|||
return (
|
||||
<>
|
||||
<div id="navbar" style={{ visibility: menu() ? "visible" : "hidden" }}>
|
||||
<a href="/en/">
|
||||
<a href="/en">
|
||||
<FontAwesomeIcon icon={faBookOpen} /> Introduction
|
||||
</a>
|
||||
|
||||
|
|
|
@ -1,12 +1,21 @@
|
|||
import { StartServer, createHandler } from "@solidjs/start/server";
|
||||
import { getRequestEvent } from "solid-js/web";
|
||||
|
||||
export default createHandler(() => (
|
||||
<StartServer
|
||||
document={({ assets, children, scripts }) => (
|
||||
<html lang="en">
|
||||
document={({ assets, children, scripts }) => {
|
||||
const event = getRequestEvent();
|
||||
const pathname = event?.request.url
|
||||
? new URL(event?.request.url).pathname
|
||||
: "/";
|
||||
return (
|
||||
<html lang={pathname.startsWith("/de") ? "de" : "en"}>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1"
|
||||
/>
|
||||
{assets}
|
||||
</head>
|
||||
<body id="app">
|
||||
|
@ -14,6 +23,7 @@ export default createHandler(() => (
|
|||
{scripts}
|
||||
</body>
|
||||
</html>
|
||||
)}
|
||||
);
|
||||
}}
|
||||
/>
|
||||
));
|
||||
|
|
|
@ -66,7 +66,7 @@ function Introduction() {
|
|||
</div>
|
||||
</a>
|
||||
|
||||
<a href="/en/">
|
||||
<a href="/en">
|
||||
<div id="MoreButton">
|
||||
<p>
|
||||
Switch to English <FontAwesomeIcon icon={faGlobe} />
|
||||
|
|
|
@ -68,7 +68,7 @@ function Introduction() {
|
|||
</div>
|
||||
</a>
|
||||
|
||||
<a href="/de/">
|
||||
<a href="/de">
|
||||
<div id="MoreButton">
|
||||
<p>
|
||||
Wechsel zu Deutsch <FontAwesomeIcon icon={faGlobe} />
|
||||
|
|
|
@ -6,7 +6,7 @@ export default function Home() {
|
|||
const navigate = useNavigate();
|
||||
createEffect(() => {
|
||||
const isGerman = navigator.language.startsWith("de");
|
||||
navigate(isGerman ? "/de/" : "/en/");
|
||||
navigate(isGerman ? "/de" : "/en");
|
||||
});
|
||||
return <Title>Language detection...</Title>;
|
||||
}
|
||||
|
|
|
@ -177,36 +177,4 @@
|
|||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) /*unter handy größe*/ {
|
||||
.righties {
|
||||
width: 100%;
|
||||
|
||||
&:hover {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*@media screen and (min-width:1200px) {.raster {width: calc(100%/6);}}
|
||||
|
||||
@media screen and (min-width:1500px) {.raster {width: calc(100%/8);}}*/
|
||||
|
||||
@media screen and (min-width: 1900px) /*HD Fullscreen only*/ {
|
||||
.lefties {
|
||||
display: block;
|
||||
width: 27%;
|
||||
}
|
||||
.righties {
|
||||
width: 27%;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 2250px) /*ab 2000px nicht weiter skalieren*/ {
|
||||
* {
|
||||
width: 1950px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue