index: Add /de/ and /en/ versions
This commit is contained in:
@ -1,11 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="de-AT" prefix="og: https://ogp.me/ns#">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" prefix="og: https://ogp.me/ns#">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8"/>
|
<meta charset="UTF-8"/>
|
||||||
<title>Elwig</title>
|
<title>Elwig - Elektronische Winzergenossenschaftsverwaltung</title>
|
||||||
<meta name="description" content="Elektronische Winzergenossenschaftsverwaltung"/>
|
<meta name="description" content="Elektronische Winzergenossenschaftsverwaltung"/>
|
||||||
<link rel="icon" href="/favicon.ico" sizes="16x16 20x20 24x24 30x30 32x32 36x36 40x40 48x48 60x60 64x64 72x72 80x80 96x96 128x128 256x256"/>
|
<link rel="icon" href="/favicon.ico" sizes="16x16 20x20 24x24 30x30 32x32 36x36 40x40 48x48 60x60 64x64 72x72 80x80 96x96 128x128 256x256"/>
|
||||||
<link rel="stylesheet" href="/res/style.css"/>
|
<link rel="stylesheet" href="/res/style.css"/>
|
||||||
|
<link rel="alternate" href="/en/" hreflang="en"/>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
|
||||||
<meta name="theme-color" content="#A040C0"/>
|
<meta name="theme-color" content="#A040C0"/>
|
||||||
<meta name="mobile-web-app-capable" content="yes"/>
|
<meta name="mobile-web-app-capable" content="yes"/>
|
||||||
@ -28,16 +29,18 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav class="index">
|
<nav class="index">
|
||||||
<div>
|
<div>
|
||||||
<a href="https://elwig.at/"><img src="/res/elwig.png" alt="Elwig Logo"/></a>
|
<a href="https://elwig.at/de/"><img src="/res/elwig.png" alt="Elwig Logo"/></a>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="/#">Start</a></li>
|
<li><a href="#">Start</a></li>
|
||||||
<li><a href="/#about">Über</a></li>
|
<li><a href="#about">Über</a></li>
|
||||||
<li><a href="/#clients">Genossenschaften</a></li>
|
<li><a href="#clients">Genossenschaften</a></li>
|
||||||
<li><a href="/files/">Downloads</a></li>
|
<li><a href="/files/">Downloads</a></li>
|
||||||
<li><a href="https://git.necronda.net/winzer/">Quellcode</a></li>
|
<li><a href="https://git.necronda.net/winzer/">Quellcode</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div/>
|
<div>
|
||||||
|
<a href="/en/" class="flag"><div/></a>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
149
www/en/index.xhtml
Normal file
149
www/en/index.xhtml
Normal file
@ -0,0 +1,149 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" prefix="og: https://ogp.me/ns#">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8"/>
|
||||||
|
<title>Elwig - Electronic Management for Vintners' Cooperatives</title>
|
||||||
|
<meta name="description" content="Electronic Management for Vintners' Cooperatives"/>
|
||||||
|
<link rel="icon" href="/favicon.ico" sizes="16x16 20x20 24x24 30x30 32x32 36x36 40x40 48x48 60x60 64x64 72x72 80x80 96x96 128x128 256x256"/>
|
||||||
|
<link rel="stylesheet" href="/res/style.css"/>
|
||||||
|
<link rel="alternate" href="/de/" hreflang="de"/>
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
|
||||||
|
<meta name="theme-color" content="#A040C0"/>
|
||||||
|
<meta name="mobile-web-app-capable" content="yes"/>
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
||||||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
|
||||||
|
<meta property="og:site_name" content="Elwig"/>
|
||||||
|
<meta property="og:title" content="Elwig"/>
|
||||||
|
<meta property="og:description" content="Electronic Management for Vintners' Cooperatives"/>
|
||||||
|
<meta property="og:type" content="website"/>
|
||||||
|
<meta property="og:url" content="https://elwig.at/"/>
|
||||||
|
<meta property="og:image" content="https://elwig.at/res/images/preview.jpg"/>
|
||||||
|
<meta property="og:image:type" content="image/jpeg"/>
|
||||||
|
<meta property="og:image:width" content="1200"/>
|
||||||
|
<meta property="og:image:height" content="630"/>
|
||||||
|
<meta property="og:locale" content="de_AT"/>
|
||||||
|
<meta property="og:ttl" content="60"/>
|
||||||
|
<meta name="twitter:card" content="summary_large_image"/>
|
||||||
|
</head>
|
||||||
|
<body class="header-footer" style="background-color: var(--bg-color);">
|
||||||
|
<header>
|
||||||
|
<nav class="index">
|
||||||
|
<div>
|
||||||
|
<a href="https://elwig.at/en/"><img src="/res/elwig.png" alt="Elwig Logo"/></a>
|
||||||
|
</div>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#">Start</a></li>
|
||||||
|
<li><a href="#about">About</a></li>
|
||||||
|
<li><a href="#clients">Cooperatives</a></li>
|
||||||
|
<li><a href="/files/">Downloads</a></li>
|
||||||
|
<li><a href="https://git.necronda.net/winzer/">Source Code</a></li>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<a href="/de/" class="flag"><div/></a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<section class="home background">
|
||||||
|
<a href="#about">
|
||||||
|
<div>
|
||||||
|
<img src="/res/elwig.png" alt="Elwig"/>
|
||||||
|
<div style="max-width: 16em; margin-bottom: 0.5em;">
|
||||||
|
<h1>Elwig</h1>
|
||||||
|
<h2>Electronic Management for Vintners' Cooperatives</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div class="blur bottom"/>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="about">
|
||||||
|
<span id="about"/>
|
||||||
|
<h3>Elwig</h3>
|
||||||
|
<p>
|
||||||
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore etdolore magna aliquyam erat, sed diam voluptua.
|
||||||
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||||
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
||||||
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore etdolore magna aliquyam erat, sed diam voluptua.
|
||||||
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||||
|
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
|
||||||
|
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="picture-1 background">
|
||||||
|
<div class="blur top"/>
|
||||||
|
<div class="blur bottom"/>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="clients">
|
||||||
|
<span id="clients"/>
|
||||||
|
<h3>The Cooperatives</h3>
|
||||||
|
<div class="container background">
|
||||||
|
<div>
|
||||||
|
<h4>WG Matzen</h4>
|
||||||
|
<h5><span>Winzergenossenschaft</span> <span>für Matzen und Umgebung</span><br/><span>reg. Gen.m.b.H.</span></h5>
|
||||||
|
<h6>Branches:</h6>
|
||||||
|
<div class="branches">Matzen</div>
|
||||||
|
<p class="link">
|
||||||
|
<a href="https://winzermatzen.at/">winzermatzen.at</a>
|
||||||
|
</p>
|
||||||
|
<div class="edge"/><div class="edge"/><div class="edge"/><div class="edge"/>
|
||||||
|
</div>
|
||||||
|
<div class="filling"/>
|
||||||
|
<div>
|
||||||
|
<h4>Winzerkeller im Weinviertel</h4>
|
||||||
|
<h5><span>Winzerkeller im Weinviertel</span><br/><span>reg. Gen.m.b.H.</span></h5>
|
||||||
|
<h6>Branches:</h6>
|
||||||
|
<div class="branches">Wolkersdorf, Haugsdorf, Sitzendorf</div>
|
||||||
|
<p class="link">
|
||||||
|
<a href="http://www.winzerkeller.eu/">winzerkeller.eu</a>
|
||||||
|
</p>
|
||||||
|
<div class="edge"/><div class="edge"/><div class="edge"/><div class="edge"/>
|
||||||
|
</div>
|
||||||
|
<div class="filling"/>
|
||||||
|
<div>
|
||||||
|
<h4>WG Weinland</h4>
|
||||||
|
<h5><span>Winzergenossenschaft Weinland,</span> <span>mit dem Sitz in Groß-Inzersdorf,</span><br/><span>reg. Gen.m.b.H.</span></h5>
|
||||||
|
<h6>Branches:</h6>
|
||||||
|
<div class="branches">Groß-Inzersdorf</div>
|
||||||
|
<p class="link"></p>
|
||||||
|
<div class="edge"/><div class="edge"/><div class="edge"/><div class="edge"/>
|
||||||
|
</div>
|
||||||
|
<div class="filling"/>
|
||||||
|
<div>
|
||||||
|
<h4>WG Baden</h4>
|
||||||
|
<h5><span>Winzergenossenschaft</span> <span>Baden - Bad Vöslau</span><br/><span>reg. Gen.m.b.H.</span></h5>
|
||||||
|
<h6>Zweigstellen:</h6>
|
||||||
|
<div class="branches">Baden</div>
|
||||||
|
<p class="link">
|
||||||
|
<a href="http://www.wg-baden.at/">wg-baden.at</a>
|
||||||
|
</p>
|
||||||
|
<div class="edge"/><div class="edge"/><div class="edge"/><div class="edge"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="picture-2 background">
|
||||||
|
<div class="blur top"/>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<a href="https://elwig.at/"><img src="/res/elwig.png" alt="Elwig"/></a>
|
||||||
|
<p>
|
||||||
|
<strong>Imprint</strong><br/>
|
||||||
|
Lorenz Stechauner, Thomas Hilscher<br/>
|
||||||
|
Austria<br/>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<strong>Contact</strong><br/>
|
||||||
|
E-Mail: <a href="mailto:contact@necronda.net">contact@necronda.net</a><br/>
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,6 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
header("Content-Length: 0");
|
header("Content-Length: 0");
|
||||||
switch ($_SERVER['PATH_INFO']) {
|
switch ($_SERVER['PATH_INFO']) {
|
||||||
|
case '':
|
||||||
|
case '/':
|
||||||
|
$lang = 'de'; // prefer german
|
||||||
|
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||||
|
foreach (explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']) as $pref) {
|
||||||
|
$l = substr($pref, 0, 2);
|
||||||
|
if ($l === 'de') {
|
||||||
|
$lang = 'de';
|
||||||
|
break; // force german
|
||||||
|
} else if ($l === 'en') {
|
||||||
|
$lang = 'en'; // use english only, if user specifically asks for it
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
header("Status: 303");
|
||||||
|
header("Location: /$lang/");
|
||||||
|
break;
|
||||||
case '/changelog':
|
case '/changelog':
|
||||||
header("Status: 303");
|
header("Status: 303");
|
||||||
header("Location: https://git.necronda.net/winzer/elwig/src/branch/main/CHANGELOG.md");
|
header("Location: https://git.necronda.net/winzer/elwig/src/branch/main/CHANGELOG.md");
|
||||||
|
@ -81,6 +81,29 @@ nav li.active a{
|
|||||||
color: var(--main-color);
|
color: var(--main-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nav a.flag {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a.flag div {
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 1.25em;
|
||||||
|
width: 1em;
|
||||||
|
margin: 0.75rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a.flag[href='/de/'] div::before,
|
||||||
|
nav a.flag[href='/en/']:hover div::before,
|
||||||
|
nav a.flag[href='/en/']:focus div::before {
|
||||||
|
content: '\1F1EC\1F1E7'; /* GB */
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a.flag[href='/en/'] div::before,
|
||||||
|
nav a.flag[href='/de/']:hover div::before,
|
||||||
|
nav a.flag[href='/de/']:focus div::before {
|
||||||
|
content: '\1F1E6\1F1F9'; /* AT */
|
||||||
|
}
|
||||||
|
|
||||||
/**** Index ****/
|
/**** Index ****/
|
||||||
|
|
||||||
main span[id] {
|
main span[id] {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# robots.txt for elwig.at
|
# robots.txt for elwig.at
|
||||||
User-Agent: *
|
User-Agent: *
|
||||||
Disallow: /clients/
|
Disallow: /clients/
|
||||||
|
Disallow: /access/
|
||||||
Sitemap: https://elwig.at/sitemap.xml
|
Sitemap: https://elwig.at/sitemap.xml
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://elwig.at/</loc>
|
<loc>https://elwig.at/de/</loc>
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://elwig.at/en/</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.9</priority>
|
||||||
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://elwig.at/files/</loc>
|
<loc>https://elwig.at/files/</loc>
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
|
Reference in New Issue
Block a user