-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fran McDade
authored and
Fran McDade
committed
Oct 2, 2024
1 parent
3d993dc
commit a1c52a9
Showing
23 changed files
with
531 additions
and
144 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
app/components/About/components/Section/components/SectionAbout/sectionAbout.styles.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/components/About/components/Section/components/SectionAbout/sectionAbout.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { inkLight } from "@databiosphere/findable-ui/lib/styles/common/mixins/colors"; | ||
import { | ||
textBodyLarge4002Lines, | ||
textBodyLarge500, | ||
} from "@databiosphere/findable-ui/lib/styles/common/mixins/fonts"; | ||
import { elevation01 } from "@databiosphere/findable-ui/lib/theme/common/shadows"; | ||
import styled from "@emotion/styled"; | ||
import { Accordion as MAccordion } from "@mui/material"; | ||
|
||
export const StyledAccordion = styled(MAccordion)` | ||
box-shadow: ${elevation01} !important; | ||
display: grid; | ||
grid-column: 1 / -1; | ||
padding: 12px 0; | ||
.MuiAccordionSummary-root { | ||
flex-direction: row; | ||
min-height: 0; | ||
padding: 8px 20px; | ||
.MuiAccordionSummary-content { | ||
${textBodyLarge500}; | ||
margin: 0; | ||
} | ||
} | ||
.MuiAccordionDetails-root { | ||
${textBodyLarge4002Lines}; | ||
color: ${inkLight}; | ||
margin: 0; | ||
padding: 0 20px 8px; | ||
} | ||
` as typeof MAccordion; |
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,15 @@ | ||
import { RoundedPaper as DXRoundedPaper } from "@databiosphere/findable-ui/lib/components/common/Paper/paper.styles"; | ||
import { AccordionProps as MAccordionProps } from "@mui/material"; | ||
import { StyledAccordion } from "./accordion.styles"; | ||
|
||
export const Accordion = ({ | ||
children, | ||
component = DXRoundedPaper, | ||
...props | ||
}: MAccordionProps): JSX.Element => { | ||
return ( | ||
<StyledAccordion component={component} {...props}> | ||
{children} | ||
</StyledAccordion> | ||
); | ||
}; |
17 changes: 17 additions & 0 deletions
17
app/components/common/Accordion/components/AccordionSummary/accordionSummary.tsx
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,17 @@ | ||
import { AddIcon as DXAddIcon } from "@databiosphere/findable-ui/lib/components/common/CustomIcon/components/AddIcon/addIcon"; | ||
import { | ||
AccordionSummary as MAccordionSummary, | ||
AccordionSummaryProps as MAccordionSummaryProps, | ||
} from "@mui/material"; | ||
|
||
export const AccordionSummary = ({ | ||
children, | ||
expandIcon = <DXAddIcon color="inkLight" fontSize="small" />, | ||
...props | ||
}: MAccordionSummaryProps): JSX.Element => { | ||
return ( | ||
<MAccordionSummary expandIcon={expandIcon} {...props}> | ||
{children} | ||
</MAccordionSummary> | ||
); | ||
}; |
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,30 @@ | ||
import { mediaTabletUp } from "@databiosphere/findable-ui/lib/styles/common/mixins/breakpoints"; | ||
import { inkLight } from "@databiosphere/findable-ui/lib/styles/common/mixins/colors"; | ||
import { textBodyLarge4002Lines } from "@databiosphere/findable-ui/lib/styles/common/mixins/fonts"; | ||
import styled from "@emotion/styled"; | ||
|
||
interface Props {} | ||
|
||
export const Figure = styled.figure<Props>` | ||
margin: 16px 0; | ||
img { | ||
margin: 0 auto; | ||
width: 100%; | ||
} | ||
figcaption { | ||
${textBodyLarge4002Lines}; | ||
color: ${inkLight}; | ||
display: block; | ||
margin-top: 32px; | ||
text-align: justify; | ||
${mediaTabletUp} { | ||
display: flex; | ||
gap: 0 64px; | ||
margin-top: 52px; | ||
text-align: unset; | ||
} | ||
} | ||
`; |
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,22 @@ | ||
import { | ||
StaticImage, | ||
StaticImageProps, | ||
} from "@databiosphere/findable-ui/lib/components/common/StaticImage/staticImage"; | ||
import { ReactNode } from "react"; | ||
import { Figure as FigureWithCaption } from "./figure.styles"; | ||
|
||
export interface ImageProps extends StaticImageProps { | ||
caption?: ReactNode; | ||
} | ||
|
||
export const Figure = ({ | ||
caption, | ||
...props /* Spread props to allow for StaticImage specific props StaticImageProps e.g. "height". */ | ||
}: ImageProps): JSX.Element => { | ||
return ( | ||
<FigureWithCaption> | ||
<StaticImage {...props} /> | ||
{caption} | ||
</FigureWithCaption> | ||
); | ||
}; |
Oops, something went wrong.