MSP-3100 change index and style in HomePage directory

This commit is contained in:
Anastasiia committed 2024-04-08 17:17:03 +03:00
1 parent 7083d2aeed
commit a4fb8111a1
3 files changed
+16 -32

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
.home-page {
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-image: url("/src/assets/images/home-background.png");
font-size: calc(1.5vw + 1.5vh);
font-family: 'Roboto',sans-serif;
font-style: normal;
font-weight: 400;
line-height: 56px;
}
-5
View File
@@ -1,5 +0,0 @@
.main {
min-height: 100vh;
display: flex;
justify-content: center;
}
+3 -27
View File
@@ -1,29 +1,5 @@
import { Button, theme } from 'antd'
import './home-page.scss'
import { useRole } from '@hooks/useRole.tsx'
import { PermissionKeys } from '@type/roles.type.ts'
import './home.scss'
const HomePages = () => {
const { hasPermission } = useRole()
const { useToken } = theme
const { token } = useToken()
const isPageAvailable = hasPermission(PermissionKeys.user_view)
return (
<main className="main" style={{ backgroundColor: token.colorBgLayout }}>
{isPageAvailable && (
<Button ghost type="primary">
Border
</Button>
)}
<div>Проверка шрифтов</div>
<Button type="primary">Primary</Button>
</main>
)
export default function HomePage() {
return <div className="home-page">Добро пожаловать!</div>
}
export default HomePages