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 с правилами для агентов
This commit is contained in:
2026-03-29 13:23:00 +03:00
parent 8a8ecba397
commit 9e2167b34d
23 changed files with 208 additions and 107 deletions

View File

@@ -1,6 +1,6 @@
import type { FC } from 'react'
import { Container, Title, Text, Image, Stack } from '@mantine/core'
import styles from './styles/home.module.css'
import { Container, Image, Stack, Text, Title } from '@mantine/core';
import type { FC } from 'react';
import styles from './styles/home.module.css';
/**
* Главный экран приложения.
@@ -18,11 +18,9 @@ export const HomeScreen: FC = () => {
fit="contain"
/>
<Title order={1}>Добро пожаловать</Title>
<Text c="dimmed">
Шаблон приложения на Next.js и TypeScript.
</Text>
<Text c="dimmed">Шаблон приложения на Next.js и TypeScript.</Text>
</Stack>
</Container>
</div>
)
}
);
};