-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
43 changed files
with
1,145 additions
and
679 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,2 @@ | ||
.next | ||
out |
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 @@ | ||
{ | ||
"extends": ["stylelint-config-standard-scss"], | ||
"rules": { | ||
"custom-property-pattern": null, | ||
"selector-class-pattern": null, | ||
"scss/no-duplicate-mixins": null, | ||
"declaration-empty-line-before": null, | ||
"declaration-block-no-redundant-longhand-properties": null, | ||
"alpha-value-notation": null, | ||
"custom-property-empty-line-before": null, | ||
"property-no-vendor-prefix": null, | ||
"color-function-notation": null, | ||
"length-zero-no-unit": null, | ||
"selector-not-notation": null, | ||
"no-descending-specificity": null, | ||
"comment-empty-line-before": null, | ||
"scss/at-mixin-pattern": null, | ||
"scss/at-rule-no-unknown": null, | ||
"value-keyword-case": null, | ||
"media-feature-range-notation": null, | ||
"selector-pseudo-class-no-unknown": [ | ||
true, | ||
{ | ||
"ignorePseudoClasses": ["global"] | ||
} | ||
] | ||
} | ||
} |
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,2 @@ | ||
.next | ||
out |
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,3 @@ | ||
{ | ||
"extends": ["../../.stylelintrc.json"] | ||
} |
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,3 @@ | ||
const main = require('../../postcss.config.cjs'); | ||
|
||
module.exports = main; |
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,3 @@ | ||
.text { | ||
color: var(--mantine-colors-gray-7); | ||
} |
This file was deleted.
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 |
---|---|---|
@@ -1,23 +1,29 @@ | ||
'use client'; | ||
|
||
import { AppShell } from '@mantine/core'; | ||
import { AppShell, rem } from '@mantine/core'; | ||
import { ReactNode, useState } from 'react'; | ||
|
||
import { Header, Navbar } from '@app/components'; | ||
|
||
const HEADER_HEIGHT = rem(60); | ||
|
||
export default function AppLayout({ children }: { children: ReactNode }) { | ||
const [opened, setOpened] = useState(false); | ||
|
||
return ( | ||
<AppShell | ||
navbar={<Navbar opened={opened} />} | ||
navbarOffsetBreakpoint="sm" | ||
header={<Header opened={opened} toggleOpen={() => setOpened(!opened)} />} | ||
styles={(theme) => ({ | ||
main: { backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[8] : theme.colors.white }, | ||
})} | ||
header={{ | ||
height: HEADER_HEIGHT, | ||
}} | ||
navbar={{ | ||
width: 300, | ||
breakpoint: 'sm', | ||
collapsed: { mobile: !opened }, | ||
}} | ||
> | ||
{children} | ||
<Header opened={opened} toggleOpen={() => setOpened(!opened)} /> | ||
<Navbar opened={opened} /> | ||
<AppShell.Main>{children}</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
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
27 changes: 27 additions & 0 deletions
27
apps/app/src/components/homepage/features/features.module.css
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,27 @@ | ||
.wrapper { | ||
padding-top: calc(var(--mantine-spacing-xl) * 4); | ||
padding-bottom: calc(var(--mantine-spacing-xl) * 4); | ||
} | ||
|
||
.title { | ||
font-family: "Greycliff CF", var(--mantine-font-family); | ||
font-weight: 900; | ||
margin-bottom: var(--mantine-spacing-md); | ||
text-align: center; | ||
|
||
@media (max-width: $mantine-breakpoint-sm) { | ||
font-size: rem(28px); | ||
text-align: left; | ||
} | ||
} | ||
|
||
|
||
.description { | ||
font-family: "Greycliff CF", var(--mantine-font-family); | ||
text-align: center; | ||
|
||
@media (max-width: $mantine-breakpoint-sm) { | ||
text-align: left; | ||
} | ||
} | ||
|
31 changes: 0 additions & 31 deletions
31
apps/app/src/components/homepage/features/features.styles.tsx
This file was deleted.
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
111 changes: 111 additions & 0 deletions
111
apps/app/src/components/homepage/footer/footer.module.css
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,111 @@ | ||
.footer { | ||
margin-top: rem(5); | ||
padding-top: calc(var(--mantine-spacing-xl) * 2); | ||
padding-bottom: calc(var(--mantine-spacing-md)); | ||
background-color: light-dark( | ||
var(--mantine-color-gray-0), | ||
var(--mantine-color-dark-6) | ||
); | ||
border-top: light-dark( | ||
var(--mantine-color-gray-2), | ||
var(--mantine-color-dark-5) | ||
); | ||
} | ||
|
||
.logo { | ||
max-width: rem(200); | ||
|
||
@media (max-width: $mantine-breakpoint-sm) { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
} | ||
|
||
|
||
.description { | ||
margin-top: rem(5); | ||
|
||
@media (max-width: $mantine-breakpoint-sm) { | ||
margin-top: var(--mantine-spacing-xs); | ||
text-align: center; | ||
} | ||
} | ||
|
||
|
||
.inner { | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
@media (max-width: $mantine-breakpoint-sm) { | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
} | ||
|
||
|
||
.groups { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
@media (max-width: var(--mantine-breakpoint-sm)) { | ||
.groups { | ||
display: none; | ||
} | ||
} | ||
|
||
.wrapper { | ||
width: rem(160); | ||
} | ||
|
||
.link { | ||
display: block; | ||
color: light-dark( | ||
var(--mantine-color-gray-6), | ||
var(--mantine-color-dark-1) | ||
); | ||
font-size: var(--mantine-font-size-sm); | ||
padding-top: rem(3); | ||
padding-bottom: rem(3); | ||
|
||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
.title { | ||
font-size: var(--mantine-font-size-lg); | ||
font-weight: 700; | ||
font-family: "Greycliff CF", var(--mantine-font-family); | ||
margin-bottom: calc(var(--mantine-spacing-xs) / 2); | ||
color: light-dark( | ||
var(--mantine-color-black), | ||
var(--mantine-color-white) | ||
); | ||
} | ||
|
||
.afterFooter { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-top: var(--mantine-spacing-xl); | ||
padding-top: var(--mantine-spacing-xl); | ||
padding-bottom: var(--mantine-spacing-xl); | ||
border-top: rem(1) solid light-dark( | ||
var(--mantine-color-gray-2), | ||
var(--mantine-color-dark-4) | ||
); | ||
} | ||
|
||
@media (max-width: var(--mantine-breakpoint-sm)) { | ||
.afterFooter { | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.social { | ||
@media (max-width: var(--mantine-breakpoint-sm)) { | ||
margin-top: var(--mantine-spacing-xs); | ||
} | ||
} |
This file was deleted.
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,41 @@ | ||
.dropdown { | ||
position: absolute; | ||
top: rem(56px); | ||
left: 0; | ||
right: 0; | ||
z-index: 0; | ||
overflow: hidden; | ||
} | ||
|
||
.header { | ||
height: rem(56px); | ||
background-color: var(--mantine-color-body); | ||
border-bottom: rem(1px) solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4)); | ||
} | ||
|
||
.inner { | ||
height: rem(56px); | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.link { | ||
display: block; | ||
line-height: 1; | ||
padding: rem(8px) rem(12px); | ||
border-radius: var(--mantine-radius-sm); | ||
text-decoration: none; | ||
color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-0)); | ||
font-size: var(--mantine-font-size-sm); | ||
font-weight: 500; | ||
|
||
@mixin hover { | ||
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6)); | ||
} | ||
|
||
[data-mantine-color-scheme] &[data-active] { | ||
background-color: var(--mantine-color-blue-filled); | ||
color: var(--mantine-color-white); | ||
} | ||
} |
This file was deleted.
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,66 @@ | ||
.wrapper { | ||
position: relative; | ||
padding-top: rem(120px); | ||
padding-bottom: rem(20px); | ||
|
||
@media (max-width: $mantine-breakpoint-sm) { | ||
padding-top: rem(80px); | ||
padding-bottom: rem(60px); | ||
} | ||
} | ||
|
||
.inner { | ||
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
.dots { | ||
position: absolute; | ||
color: light-dark( | ||
var(--mantine-color-gray-1), | ||
var(--mantine-color-dark-5) | ||
); | ||
|
||
@media (max-width: $mantine-breakpoint-sm) { | ||
display: none; | ||
} | ||
} | ||
|
||
.dotsLeft { | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
.title { | ||
text-align: center; | ||
font-weight: 800; | ||
font-size: rem(40px); | ||
letter-spacing: -1px; | ||
margin-bottom: 8px; | ||
color: light-dark( | ||
var(--mantine-color-black), | ||
var(--mantine-color-white) | ||
); | ||
|
||
@media (max-width: $mantine-breakpoint-xs) { | ||
font-size: rem(28px); | ||
text-align: left; | ||
} | ||
} | ||
|
||
.highlight { | ||
color: light-dark( | ||
var(--mantine-color-primary-4), | ||
var(--mantine-color-primary-6) | ||
); | ||
} | ||
|
||
.description { | ||
text-align: center; | ||
|
||
@media (max-width: $mantine-breakpoint-xs) { | ||
text-align: left; | ||
font-size: 16px; | ||
} | ||
} | ||
|
This file was deleted.
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,43 @@ | ||
.footer { | ||
padding-top: var(--mantine-spacing-md); | ||
margin-top: var(--mantine-spacing-md); | ||
border-top: 1px solid light-dark( | ||
var(--mantine-color-gray-2), | ||
var(--mantine-color-dark-4) | ||
); | ||
} | ||
|
||
.link { | ||
display: flex; | ||
align-items: center; | ||
text-decoration: none; | ||
font-size: var(--mantine-font-sizes-sm); | ||
color: light-dark( | ||
var(--mantine-color-gray-7), | ||
var(--mantine-color-dark-1) | ||
); | ||
padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm); | ||
border-radius: var(--mantine-radius-sm); | ||
font-weight: 500; | ||
} | ||
|
||
.link:hover { | ||
background-color: light-dark( | ||
var(--mantine-color-gray-0), | ||
var(--mantine-color-dark-6) | ||
); | ||
color: var(--mantine-black); | ||
} | ||
|
||
.linkIcon { | ||
color: light-dark( | ||
var(--mantine-color-gray-6), | ||
var(--mantine-color-dark-2) | ||
); | ||
margin-right: var(--mantine-spacing-sm); | ||
} | ||
|
||
.linkActive { | ||
background-color: var(--mantine-primary-color); | ||
color: var(--mantine-primary-color); | ||
} |
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,13 @@ | ||
'use client'; | ||
|
||
import { Button, createTheme } from '@mantine/core'; | ||
|
||
import classes from './theme.module.css'; | ||
|
||
export const theme = createTheme({ | ||
components: { | ||
Button: Button.extend({ | ||
classNames: classes, | ||
}), | ||
}, | ||
}); |
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,10 @@ | ||
.root { | ||
&[data-variant='danger'] { | ||
background-color: var(--mantine-color-red-9); | ||
color: var(--mantine-color-red-0); | ||
} | ||
|
||
&[data-variant='danger']:hover { | ||
background-color: var(--mantine-color-red-7); | ||
} | ||
} |
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
32 changes: 32 additions & 0 deletions
32
packages/core/src/components/genericError/genericError.module.css
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,32 @@ | ||
.root { | ||
padding-top: var(--mantine-spacing-xl); | ||
padding-bottom: var(--mantine-spacing-xl); | ||
} | ||
|
||
.inner { | ||
position: relative; | ||
} | ||
|
||
.image { | ||
opacity: 0.75; | ||
} | ||
|
||
.content { | ||
padding-top: var(--mantine-spacing-xl); | ||
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
.title { | ||
font-family: "Greycliff CF", var(--mantine-font-family); | ||
text-align: center; | ||
font-weight: 900; | ||
font-size: var(--mantine-font-sizes-xl); | ||
} | ||
|
||
.description { | ||
max-width: var(--mantine-spacing-xl); | ||
margin: auto; | ||
margin-top: var(--mantine-spacing-xl); | ||
margin-bottom: calc(var(--mantine-spacing-xl) * 1.5); | ||
} |
10 changes: 6 additions & 4 deletions
10
packages/core/src/components/themeToggler/themeToggler.component.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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import { ActionIcon, useMantineColorScheme } from '@mantine/core'; | ||
import { IconMoonStars, IconSun } from '@tabler/icons-react'; | ||
|
||
import classes from './themeToggler.module.css'; | ||
|
||
export const ThemeToggler = () => { | ||
const { colorScheme, toggleColorScheme } = useMantineColorScheme(); | ||
const dark = colorScheme === 'dark'; | ||
const { toggleColorScheme } = useMantineColorScheme(); | ||
|
||
return ( | ||
<ActionIcon | ||
variant="outline" | ||
color={dark ? 'yellow' : 'blue'} | ||
onClick={() => toggleColorScheme()} | ||
title="Toggle color scheme" | ||
className={classes.root} | ||
> | ||
{dark ? <IconSun data-testid="dark" size="1.1rem" /> : <IconMoonStars data-testid="light" size="1.1rem" />} | ||
<IconMoonStars className={classes.iconLight} data-testid="light" size="1.1rem" /> | ||
<IconSun className={classes.iconDark} data-testid="dark" size="1.1rem" /> | ||
</ActionIcon> | ||
); | ||
}; |
18 changes: 18 additions & 0 deletions
18
packages/core/src/components/themeToggler/themeToggler.module.css
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,18 @@ | ||
.root { | ||
color: light-dark( | ||
var(--mantine-color-blue-5), | ||
var(--mantine-color-yellow-5) | ||
); | ||
} | ||
|
||
.iconDark { | ||
@mixin light { | ||
display: none; | ||
} | ||
} | ||
|
||
.iconLight { | ||
@mixin dark { | ||
display: none; | ||
} | ||
} |
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,3 +1,2 @@ | ||
export * from './mantineProvider'; | ||
export * from './intlProvider'; | ||
export * from './localesProvider'; |
53 changes: 0 additions & 53 deletions
53
packages/core/src/providers/mantineProvider/MantineProvider.component.tsx
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/core/src/providers/mantineProvider/MantineProvider.const.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
plugins: { | ||
'postcss-preset-mantine': {}, | ||
'postcss-simple-vars': { | ||
variables: { | ||
'mantine-breakpoint-xs': '36em', | ||
'mantine-breakpoint-sm': '48em', | ||
'mantine-breakpoint-md': '62em', | ||
'mantine-breakpoint-lg': '75em', | ||
'mantine-breakpoint-xl': '88em', | ||
}, | ||
}, | ||
}, | ||
}; |