Files
nextjs-fetch-data-example/src/screens/home/home.screen.tsx
S.Gromov 9e2167b34d refactor: приведение проекта к стайлгайду
- Разделён globals.css на styles/variables.css, media.css, reset.css
- Добавлен styles/index.css как единая точка входа глобальных стилей
- Вынесен MantineProvider в app/providers/
- Переименован .ui.tsx в .tsx в шаблоне component
- Приведены CSS-токены радиусов к числовой шкале (--radius-1, --radius-2...)
- Добавлен слой src/layouts/
- Настроен Biome: одинарные кавычки, исключены .templates, разрешён @custom-media
- Обновлён .vscode/settings.json (quickfix.biome → source.fixAll.biome)
- Обновлён AGENTS.md с правилами для агентов
2026-03-29 13:23:00 +03:00

27 lines
750 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Container, Image, Stack, Text, Title } from '@mantine/core';
import type { FC } from 'react';
import styles from './styles/home.module.css';
/**
* Главный экран приложения.
*/
export const HomeScreen: FC = () => {
return (
<div className={styles.root}>
<Container size="sm">
<Stack align="center" gap="lg">
<Image
src="/rick-and-morty-dance.gif"
alt="Dancing Rick"
w={200}
h={200}
fit="contain"
/>
<Title order={1}>Добро пожаловать</Title>
<Text c="dimmed">Шаблон приложения на Next.js и TypeScript.</Text>
</Stack>
</Container>
</div>
);
};