first attempt at making a UI (clickdummy)
This commit is contained in:
parent
66c22a915f
commit
b80e3fe4f0
13 changed files with 4775 additions and 0 deletions
26
app/src/pages/index.astro
Normal file
26
app/src/pages/index.astro
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width"/>
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg"/>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
<meta name="generator" content={Astro.generator}/>
|
||||
<title>dooris</title>
|
||||
<script>
|
||||
const userLang = new Intl.Locale(navigator.language).language;
|
||||
const urls: Record<string, string> = {
|
||||
'en': './en',
|
||||
'de': './de',
|
||||
};
|
||||
|
||||
const url = urls[userLang] ?? urls.en;
|
||||
document.location.href = url;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Loading…
Reference in a new issue