-
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.
- Add basic structure of matching, - Add all roots, - Add carousel dependency, - Update Mantine dependency from 7.15.1 to 7.15.2 - Create submenu for matching - Create basic component for matching Refs: 8696pcz16 Signed-off-by: Jimmy <[email protected]>
- Loading branch information
Showing
22 changed files
with
406 additions
and
64 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {AppShell, Stack} 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}> | ||
<Stack mih={"inherit"} p={'lg'} align={'center'} justify={'center'} gap={0}> | ||
{props.component ? props.component : <Main/>} | ||
</Stack> | ||
</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'; |
6 changes: 6 additions & 0 deletions
6
frontend/src/Features/Matching/components/Filters/MatchFilters.tsx
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,6 @@ | ||
export const MatchFilters = () => { | ||
return ( | ||
<> | ||
</> | ||
); | ||
} |
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 {MatchFilters} from './MatchFilters.tsx'; |
Oops, something went wrong.