generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #109 from LamArt/dev
Release 0.6.0 + 1.0.0
- Loading branch information
Showing
148 changed files
with
1,735 additions
and
5,868 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 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 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 |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
} | ||
|
||
.deleteButton { | ||
width: 160px; | ||
width: auto; | ||
padding: 7px; | ||
} | ||
} |
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,33 @@ | ||
import styles from './styles/styles.module.scss' | ||
import { Col, Row } from 'antd' | ||
import React from 'react' | ||
import { FieldProps } from './interface' | ||
|
||
export const Field = (props: FieldProps) => { | ||
const { fieldName, fieldValue = undefined, defaultValue, type = 'right' } = props | ||
|
||
let lgxs | ||
|
||
if (type === 'left') { | ||
lgxs = 14 | ||
} else if (type === 'center') { | ||
lgxs = 12 | ||
} else { | ||
lgxs = 10 | ||
} | ||
|
||
if (!fieldValue && !defaultValue) { | ||
return null | ||
} | ||
|
||
return ( | ||
<Row gutter={[0, 24]} className={styles.itemContainer}> | ||
<Col className={styles.fieldName} lg={lgxs} xs={lgxs}> | ||
{fieldName} | ||
</Col> | ||
<Col className={styles.fieldValue} lg={24 - lgxs} xs={24 - lgxs}> | ||
{fieldValue || defaultValue} | ||
</Col> | ||
</Row> | ||
) | ||
} |
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 interface FieldProps { | ||
fieldName: string | ||
fieldValue?: string | ||
defaultValue?: string | ||
type?: 'left' | 'center' | 'right' | ||
} |
26 changes: 26 additions & 0 deletions
26
apps/schools/domains/common/components/field/styles/styles.module.scss
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 '@domains/common/components/styles/abstracts/_colors.scss'; | ||
|
||
|
||
.itemContainer { | ||
margin-bottom: 30px; | ||
|
||
.fieldName { | ||
color: $color-field-name; | ||
|
||
font-family: "Open Sans", sans-serif; | ||
font-size: 20px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 130%; | ||
} | ||
|
||
.fieldValue { | ||
color: $color-field-value; | ||
|
||
font-family: "Open Sans", sans-serif; | ||
font-size: 20px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 130%; | ||
} | ||
} |
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
Oops, something went wrong.