mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -04:00
I forgot what I changed
This commit is contained in:
parent
d98d988b7b
commit
cb8d6ff7c5
5 changed files with 29 additions and 4 deletions
BIN
public/404.png
Normal file
BIN
public/404.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 147 KiB |
|
@ -4,5 +4,12 @@
|
||||||
"games": "Games",
|
"games": "Games",
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"discord": "Want more links?"
|
"discord": "Want more links?"
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"text": "This Nebula Service has been disabled.",
|
||||||
|
"return": "Back to home"
|
||||||
|
},
|
||||||
|
"home": {
|
||||||
|
"placeholder": "Search the web freely"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,5 +4,12 @@
|
||||||
"games": "ゲーム",
|
"games": "ゲーム",
|
||||||
"settings": "セッティング",
|
"settings": "セッティング",
|
||||||
"discord": "もっとリンクが欲しいですか?"
|
"discord": "もっとリンクが欲しいですか?"
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"text": "このネビュラサービスは無効になっています",
|
||||||
|
"return": "帰宅"
|
||||||
|
},
|
||||||
|
"home": {
|
||||||
|
"placeholder": "由にウェブを検索"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,9 @@
|
||||||
import { useState } from "preact/hooks";
|
import { useState } from "preact/hooks";
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export function Home() {
|
export function Home() {
|
||||||
const [isFocused, setIsFocused] = useState(false);
|
const [isFocused, setIsFocused] = useState(false);
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="flex justify-center items-center h-full">
|
<div class="flex justify-center items-center h-full">
|
||||||
|
@ -14,7 +16,7 @@ export function Home() {
|
||||||
}}
|
}}
|
||||||
type="text"
|
type="text"
|
||||||
class="p-2 border border-input-border-color rounded-2xl h-14 w-80 text-center bg-input text-xl placeholder:text-input-text focus:outline-none font-roboto"
|
class="p-2 border border-input-border-color rounded-2xl h-14 w-80 text-center bg-input text-xl placeholder:text-input-text focus:outline-none font-roboto"
|
||||||
placeholder={isFocused ? '' : 'Explore the web freely'}
|
placeholder={isFocused ? '' : t('home.placeholder')}
|
||||||
>
|
>
|
||||||
</input>
|
</input>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,8 +1,17 @@
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export function NotFound() {
|
export function NotFound() {
|
||||||
|
const { t } = useTranslation()
|
||||||
return (
|
return (
|
||||||
<section>
|
<section class="h-full">
|
||||||
<p>this nebula service has been disabled</p>
|
<div class="flex justify-center items-center h-full flex-col">
|
||||||
<span>404</span>
|
<img src="/404.png" class="h-72"></img>
|
||||||
|
<div class="p-6 flex flex-col items-center">
|
||||||
|
<p class="text-4xl font-roboto font-bold">{t('404.text')}</p>
|
||||||
|
<span class="text-3xl font-roboto">404</span>
|
||||||
|
</div>
|
||||||
|
<button class="p-2 border border-input-border-color rounded-2xl h-14 w-44 text-center bg-input text-xl placeholder:text-input-text focus:outline-none font-roboto">{t('404.return')}</button>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue