-
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
Showing
21 changed files
with
959 additions
and
158 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,7 @@ a { | |
cursor: pointer; | ||
text-decoration: none; | ||
} | ||
|
||
h1, h2, h3, p { | ||
margin: 0; | ||
} |
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 @@ | ||
import { format, parse } from 'date-fns' | ||
|
||
export const parseDate = (date: string) => { | ||
try { | ||
return parse(date, 'dd.MM.yyyy', new Date()) | ||
} catch (e) { | ||
return undefined | ||
} | ||
} | ||
export const formatDate = (date: Date) => format(date, 'dd.MM.yyyy') |
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,46 @@ | ||
import styled from 'styled-components' | ||
|
||
export const FlexCol = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
` | ||
|
||
export const FlexRow = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
` | ||
|
||
export const FlexColWithGaps = styled(FlexCol)<{ $gapSize?: 's' | 'm' | 'L' }>` | ||
> * { | ||
margin-bottom: ${(p) => | ||
p.$gapSize === 'L' ? '32px' : p.$gapSize === 'm' ? '16px' : '8px'}; | ||
} | ||
` | ||
|
||
export const FlexRowWithGaps = styled(FlexRow)<{ $gapSize?: 's' | 'm' | 'L' }>` | ||
> * { | ||
margin-right: ${(p) => | ||
p.$gapSize === 'L' ? '32px' : p.$gapSize === 'm' ? '16px' : '8px'}; | ||
} | ||
` | ||
|
||
export const FlexLeftRight = styled(FlexRow)` | ||
justify-content: space-between; | ||
align-items: center; | ||
` | ||
|
||
export const VerticalGap = styled.div<{ $size?: 's' | 'm' | 'L' }>` | ||
height: ${(p) => | ||
p.$size === 'L' ? '32px' : p.$size === 'm' ? '16px' : '8px'}; | ||
` | ||
|
||
export const Table = styled.table` | ||
td { | ||
border-top: 1px solid #888; | ||
border-right: 1px solid #888; | ||
} | ||
td:last-child { | ||
border-right: 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import styled from 'styled-components' | ||
|
||
export const Label = styled.label` | ||
font-weight: bold; | ||
` | ||
|
||
export const H1 = styled.h1`` | ||
|
||
export const H2 = styled.h2`` | ||
|
||
export const H3 = styled.h3`` | ||
|
||
export const P = styled.p`` |
Oops, something went wrong.