Files
nextjs-fetch-data-example/src/screens/home/home.screen.tsx
S.Gromov 7382499886 refactor: привести проект к стайлгайду
- Убран FC из всех шаблонов и компонентов
- Заменён interface на type, .interface.ts на .type.ts
- Добавлен паттерн Params/Props/RootAttrs в типы
- Деструктуризация пропсов перенесена в тело компонента
- Добавлены styles/ и types/ для feature, entity, widget, screen
- Добавлен расширенный JSDoc-шаблон с назначением и сценариями
- Исправлен баг в index.ts шаблона component
- Добавлены .editorconfig, .env.example
- Добавлен organizeImports.biome в .vscode/settings.json
- Исправлен .gitignore для .env.example
- Переписан README под проект-шаблон
- Удалён CLAUDE.md
2026-04-02 17:01:22 +03:00

26 lines
713 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 styles from './styles/home.module.css';
/**
* Главный экран приложения.
*/
export const HomeScreen = () => {
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>
);
};