-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6dc1d72
commit 1c35d05
Showing
5 changed files
with
55 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Container } from "@mantine/core"; | ||
import Head from "next/head"; | ||
import { type PropsWithChildren, type FC } from "react"; | ||
|
||
const MainLayout: FC<PropsWithChildren> = ({ children }) => { | ||
return ( | ||
<> | ||
<Head> | ||
<title>Trophy Hunt</title> | ||
<meta name="description" content="Booky — Мобильное приложение" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/favicon.svg" /> | ||
</Head> | ||
<Container w="100%" h="100%"> | ||
{children} | ||
</Container> | ||
</> | ||
); | ||
}; | ||
|
||
export default MainLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { type MantineTheme } from "@mantine/core"; | ||
|
||
export type DefaultProps<P> = | ||
| Partial<P> | ||
| ((theme: MantineTheme) => Partial<P>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import { type IPage } from "@/models/AppModel"; | ||
import { Title } from "@mantine/core"; | ||
import { Flex, Title } from "@mantine/core"; | ||
|
||
const Home: IPage = () => { | ||
return <Title>Hello world!</Title>; | ||
return ( | ||
<Flex h="100%" justify="center" align="center"> | ||
<Title>Hello world!</Title> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { type DefaultProps } from "@/models/ThemeModel"; | ||
import { type ContainerProps, type MantineThemeOverride } from "@mantine/core"; | ||
|
||
const ContainerDefaultProps: DefaultProps<ContainerProps> = ({ spacing }) => ({ | ||
size: "xl", | ||
px: { base: spacing.xs, xl: 0 }, | ||
}); | ||
|
||
const theme: MantineThemeOverride = { | ||
components: { | ||
Container: { | ||
defaultProps: ContainerDefaultProps, | ||
}, | ||
}, | ||
}; | ||
|
||
export default theme; |