-
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.
Merge pull request #95 from JimTheCat/CU-8696pcz16_Create-matching-pa…
…ge_Patryk-Kosiski Cu 8696pcz16 create matching page patryk kosiski
- Loading branch information
Showing
35 changed files
with
1,079 additions
and
75 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,26 @@ | ||
import {AppShell} from "@mantine/core"; | ||
import {Aside} from "./components/Aside"; | ||
import React from "react"; | ||
import {Main} from "./components/Main"; | ||
|
||
type MatchingProps = { | ||
component?: React.ReactNode; | ||
} | ||
|
||
export const Matching = (props: MatchingProps) => { | ||
return ( | ||
<AppShell | ||
aside={{ | ||
breakpoint: 0, | ||
width: 300 | ||
}} | ||
> | ||
<AppShell.Aside withBorder={false}> | ||
<Aside/> | ||
</AppShell.Aside> | ||
<AppShell.Main p={0}> | ||
{props.component ? props.component : <Main/>} | ||
</AppShell.Main> | ||
</AppShell> | ||
); | ||
} |
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,23 @@ | ||
import {AppShell, Card, ScrollArea, Title} from "@mantine/core"; | ||
import {MenuButton} from "../../../shared/components/MenuButton"; | ||
import {IconFilterHeart, IconHeartHandshake, IconNotes, IconSettingsHeart, IconUserHeart} from "@tabler/icons-react"; | ||
|
||
export const Aside = () => { | ||
const iconStroke = 1.5; | ||
const base = '/matching'; | ||
|
||
return ( | ||
<Card radius={'md'} mt={"lg"} p={"sm"} w={'90%'} withBorder> | ||
<Title order={2} mb={'xs'}> | ||
Matching | ||
</Title> | ||
<AppShell.Section component={ScrollArea}> | ||
<MenuButton icon={<IconHeartHandshake stroke={iconStroke}/>} text={'Meowknij'} href={base}/> | ||
<MenuButton icon={<IconUserHeart stroke={iconStroke}/>} text={'Profil'} href={base + '/profile'}/> | ||
<MenuButton icon={<IconFilterHeart stroke={iconStroke}/>} text={'Filtry'} href={base + '/filters'}/> | ||
<MenuButton icon={<IconNotes stroke={iconStroke}/>} text={'Moje testy'} href={base + '/tests'}/> | ||
<MenuButton icon={<IconSettingsHeart stroke={iconStroke}/>} text={'Ustawienia'} href={base + '/settings'}/> | ||
</AppShell.Section> | ||
</Card> | ||
); | ||
} |
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 @@ | ||
export {Aside} from './Aside'; |
Oops, something went wrong.