init create-fias

This commit is contained in:
Samandar Turgunboyev
2025-11-24 10:32:40 +05:00
commit 2c9a9c76e6
60 changed files with 6817 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import { getPosts } from '@/shared/config/api/test/test.request';
import LangToggle from '@/widgets/lang-toggle/ui/lang-toggle';
import ModeToggle from '@/widgets/theme-toggle/ui/theme-toggle';
import { useQuery } from '@tanstack/react-query';
import GitHubButton from 'react-github-btn';
const Welcome = () => {
const { data } = useQuery({
queryKey: ['posts'],
queryFn: () => getPosts(),
});
console.log('data', data);
return (
<div className="custom-container h-screen rounded-2xl flex items-center justify-center">
<div className="flex flex-col gap-2 items-center">
<GitHubButton
href="https://github.com/fiasuz/fias-ui"
data-color-scheme="no-preference: light; light: light; dark: dark;"
data-size="large"
data-show-count="true"
aria-label="Star fiasuz/fias-ui on GitHub"
>
Star
</GitHubButton>
<div className="flex flex-row gap-2">
<ModeToggle />
<LangToggle />
</div>
</div>
</div>
);
};
export default Welcome;