helfy-create 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,31 +5,25 @@ export interface Props {
5
5
  }
6
6
 
7
7
  @View
8
- /** Кастомная страница 404 приложения — переопределяет fallback RouterView. */
8
+ /** Custom 404 page — overrides the fallback RouterView. */
9
9
  export class NotFound {
10
10
  constructor(private readonly props: Props = {}) {}
11
11
 
12
12
  render() {
13
13
  return (
14
- <section class="flex flex-col flex-1 h-full flex-grow items-center justify-center px-8 py-16 text-center bg-slate-950">
15
- <div class="text-8xl font-bold tracking-tighter text-indigo-200 dark:text-indigo-900/50 select-none">
16
- 404
17
- </div>
18
- <h1 class="mt-4 text-xl font-semibold text-gray-900 dark:text-gray-100">
19
- Упс! Страница не найдена
20
- </h1>
21
- <p class="mt-2 text-sm text-gray-600 dark:text-gray-400 max-w-md">
22
- Запрошенный адрес не существует или был перемещён.
14
+ <section class="not-found">
15
+ <div class="not-found__code">404</div>
16
+ <h1 class="not-found__title">Oops! Page not found</h1>
17
+ <p class="not-found__text">
18
+ The requested address does not exist or has been moved.
23
19
  </p>
24
20
  {(this.props.pathname ?? "") && (
25
- <p class="mt-2 text-xs text-gray-500 dark:text-gray-500 font-mono break-all max-w-full">
26
- {this.props.pathname}
27
- </p>
21
+ <p class="not-found__path">{this.props.pathname}</p>
28
22
  )}
29
23
  <Link
30
24
  to="/"
31
- label="Вернуться на главную"
32
- class="mt-8 inline-flex items-center gap-2 px-5 py-2.5 text-sm font-medium rounded-lg bg-indigo-600 text-white hover:bg-indigo-500 dark:bg-indigo-500 dark:hover:bg-indigo-400 transition-colors shadow-sm"
25
+ label="Back to home"
26
+ class="btn btn--primary"
33
27
  />
34
28
  </section>
35
29
  );