Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Some Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
GDamaso committed Jun 20, 2024
1 parent e04aeea commit 1c0c6e5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 70 deletions.
74 changes: 12 additions & 62 deletions frontend/src/Views/Export/ExportPage.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ import styled from '@emotion/styled';
import * as tokens from '@bcgov/design-tokens/js';
import screenSizes from '@Constants/ScreenSize';

const StyledLandingContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin-top: auto;
gap: 40px;
`;

const StyledContent = styled.div`
display: flex;
flex-direction: column;
Expand All @@ -13,6 +23,7 @@ const StyledContent = styled.div`
gap: 10px;
padding: 0 0 20px 0;
border: 1px solid ${tokens.themeGray40};
#dataFileHeader {
display: flex;
text-align: center;
Expand Down Expand Up @@ -54,65 +65,4 @@ const StyledContent = styled.div`
}
`;

const StyledButtonGroup = styled.div`
display: flex;
max-width: 375px;
max-height: 149px;
width: 100%;
flex-direction: column;
align-items: center;
label {
display: flex;
justify-content: center;
width: 100%;
}
@media (min-width: ${screenSizes.tablet}) {
top: 15vh;
}
@media (min-width: ${screenSizes.desktop}) {
max-width: 531px;
max-height: 197px;
top: 15vh;
}
`;

const StyledDivider = styled.div`
font-size: 18px;
font-weight: 400;
line-height: 30.61px;
display: flex;
align-items: center;
text-align: center;
color: ${tokens.typographyColorPlaceholder};
&::before,
&::after {
flex: 1;
content: '';
padding: 1px;
background-color: ${tokens.typographyColorPlaceholder};
width: 130px;
margin: 5px;
}
@media (min-width: ${screenSizes.desktop}) {
&::before,
&::after {
width: 200px;
}
}
`;

const StyledLandingContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
margin-top: auto;
gap: 40px;
`;

export { StyledContent, StyledButtonGroup, StyledDivider, StyledLandingContainer };
export { StyledContent, StyledLandingContainer };
14 changes: 6 additions & 8 deletions frontend/src/Views/Export/ExportPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from '@Commons/Button/Button.tsx';
import MainPageHeader from '@Commons/MainPageHeader/MainPageHeader.tsx';
import MainPageFooter from '@Commons/MainPageFooter/MainPageFooter.tsx';
import { FC } from 'react';
import { StyledContent, StyledButtonGroup, StyledLandingContainer } from './ExportPage.styles.ts';
import { StyledContent, StyledLandingContainer } from './ExportPage.styles.ts';

const ExportPage: FC = () => {
const downloadFile = () => {
Expand All @@ -33,13 +33,11 @@ const ExportPage: FC = () => {
handleClick={downloadFile}
/>
</StyledContent>
<StyledButtonGroup>
<Button
size="lg"
text="Return to Calculation"
path="/main"
/>
</StyledButtonGroup>
<Button
size="lg"
text="Return to Calculation"
path="/main"
/>
<MainPageFooter />
</StyledLandingContainer>
);
Expand Down

0 comments on commit 1c0c6e5

Please sign in to comment.