Skip to content

Commit

Permalink
Merge pull request #122 from MTeresaMB/feature/#119-add-new-export-bu…
Browse files Browse the repository at this point in the history
…ttons

add new export buttons
  • Loading branch information
brauliodiez authored Jul 11, 2023
2 parents 63148bd + cfd840c commit c6475a4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,24 @@ export const TemplateExport: React.FC<Props> = props => {
placeholder="Pega aquí tu JSON en formato MAC"
className={classes.textarea}
></textarea>
<Button
disabled={text ? false : true}
onClick={handleOnExport}
className={classes.buttonClass}
showIcon={false}
>
Export
</Button>
<div className={classes.buttonContainer}>
<Button
disabled={text ? false : true}
onClick={handleOnExport}
className={classes.buttonClass}
showIcon={false}
>
Export To Word
</Button>
<Button
disabled={text ? false : true}
onClick={handleOnExport} /* TODO functionality for Markdown export */
className={classes.buttonClass}
showIcon={false}
>
Export To Markdwon
</Button>
</div>
</div>
<Footer />
</div>
Expand Down
19 changes: 19 additions & 0 deletions apps/react-app/src/pods/template-export/template-export.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,26 @@ export const textarea = css`
color: ${theme.palette.light[700]};
`;

export const buttonContainer = css `
display: flex;
flex-direction: row;
justify-content: center;
gap: ${theme.spacing(4)};
width: 100%;
@media (max-width: 725px) {
flex-direction: column;
justify-content: center;
align-items: center;
}
`;

export const buttonClass = css`
width: 50%;
cursor: pointer;
@media (max-width: 725px) {
width: 100%;
}
`;

0 comments on commit c6475a4

Please sign in to comment.