Skip to content

Commit

Permalink
[#48] feat: create paragraph component
Browse files Browse the repository at this point in the history
  • Loading branch information
damla committed Feb 7, 2021
1 parent ad95440 commit 418ff01
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
17 changes: 17 additions & 0 deletions components/paragraph/paragraph.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React, { ReactNode, ReactElement } from 'react'
import styles from './paragraph.module.scss'

interface Props {
children: ReactNode
}

export default function Paragraph ({
children
}: Props
): ReactElement {
return (
<div className={styles.container}>
<p>{children}</p>
</div>
)
}
20 changes: 20 additions & 0 deletions components/paragraph/paragraph.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@use "../../global/variables.scss" as variables;

.container {
// max-height: 60%;
max-width: 30rem;
margin: 2rem 0;

@media only screen and (max-width: variables.$max-width-mobile) {
margin: 1rem 0;
}

p {
color: variables.$secondary-color;
text-align: justify;
font-family: "SuisseInt-Regular", sans-serif;
font-size: 1.2rem;
font-weight: normal;
line-height: 2rem;
}
}
2 changes: 1 addition & 1 deletion components/section/section.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function Section ({
banner !== undefined && styles.container__banner,
relative !== undefined && styles.relative
)}
style={ style }
style={style}
id={id}
>
{children}
Expand Down

0 comments on commit 418ff01

Please sign in to comment.