-
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.
feat: add standalone "analyze" section to top nav (#65)
- Loading branch information
Fran McDade
authored and
Fran McDade
committed
Sep 19, 2024
1 parent
a355572
commit bda7dd2
Showing
36 changed files
with
283 additions
and
714 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...ction/components/SectionAnalysisMethod/components/AnalysisMethod/analysisMethod.styles.ts
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,45 @@ | ||
import { ButtonPrimary } from "@databiosphere/findable-ui/lib/components/common/Button/components/ButtonPrimary/buttonPrimary"; | ||
import { | ||
CardContent as DXCardContent, | ||
CardSection as DXCardSection, | ||
} from "@databiosphere/findable-ui/lib/components/common/Card/card.styles"; | ||
import { mediaTabletUp } from "@databiosphere/findable-ui/lib/styles/common/mixins/breakpoints"; | ||
import { css } from "@emotion/react"; | ||
import styled from "@emotion/styled"; | ||
|
||
const boxShadow = css` | ||
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.08), 0 -1px 0 0 rgba(0, 0, 0, 0.2) inset; | ||
`; | ||
|
||
export const StyledCardSection = styled(DXCardSection)` | ||
padding: 16px; | ||
${mediaTabletUp} { | ||
padding: 16px; | ||
} | ||
`; | ||
|
||
export const StyledCardContent = styled(DXCardContent)` | ||
gap: 4px; | ||
`; | ||
|
||
export const StyledButtonPrimary = styled(ButtonPrimary)` | ||
background-color: #1f1f47; | ||
${boxShadow}; | ||
justify-self: flex-start; | ||
&:hover { | ||
background-color: #1f1f47; | ||
${boxShadow}; | ||
} | ||
&:active { | ||
background-color: #1f1f47; | ||
box-shadow: none; | ||
} | ||
&.Mui-disabled { | ||
background-color: #1f1f47; | ||
${boxShadow}; | ||
} | ||
`; |
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
53 changes: 53 additions & 0 deletions
53
...alyze/components/Section/components/SectionAnalysisMethod/sectionAnalysisMethod.styles.ts
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,53 @@ | ||
import { mediaDesktopSmallUp } from "@databiosphere/findable-ui/lib/styles/common/mixins/breakpoints"; | ||
import styled from "@emotion/styled"; | ||
import { | ||
sectionGrid, | ||
sectionLayout, | ||
} from "../../../../../Layout/components/AppLayout/components/Section/section.styles"; | ||
|
||
export const SectionLayout = styled.div` | ||
${sectionLayout}; | ||
${sectionGrid}; | ||
gap: 64px 16px; | ||
padding: 64px 16px; | ||
`; | ||
|
||
export const VideoContainer = styled.div` | ||
grid-column: 1 / -1; | ||
iframe { | ||
aspect-ratio: 16 / 9; | ||
} | ||
${mediaDesktopSmallUp} { | ||
grid-column: 1 / span 7; | ||
} | ||
`; | ||
|
||
export const SubHeadline = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
grid-column: 1 / -1; | ||
grid-row: 1; | ||
${mediaDesktopSmallUp} { | ||
grid-column: 8 / -1; | ||
margin-left: 48px; | ||
} | ||
`; | ||
|
||
export const Subhead = styled.h2` | ||
font-family: "Inter Tight", sans-serif; | ||
font-size: 32px; | ||
font-weight: 500; | ||
line-height: 40px; | ||
margin: 0; | ||
`; | ||
|
||
export const SectionContent = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
grid-column: 1 / -1; | ||
`; |
63 changes: 63 additions & 0 deletions
63
...nts/Analyze/components/Section/components/SectionAnalysisMethod/sectionAnalysisMethod.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,63 @@ | ||
import { TEXT_BODY_LARGE_400_2_LINES } from "@databiosphere/findable-ui/lib/theme/common/typography"; | ||
import { Typography } from "@mui/material"; | ||
import { Video } from "../../../../../common/Video/video"; | ||
import { | ||
Assembly, | ||
GenomeComparisons, | ||
ProteinFolding, | ||
Regulation, | ||
SubHeadText, | ||
Transcriptomics, | ||
VariantCalling, | ||
} from "../../../../content"; | ||
import { Section } from "../../section.styles"; | ||
import { AnalysisMethod } from "./components/AnalysisMethod/analysisMethod"; | ||
import { | ||
SectionContent, | ||
SectionLayout, | ||
Subhead, | ||
SubHeadline, | ||
VideoContainer, | ||
} from "./sectionAnalysisMethod.styles"; | ||
|
||
export const SectionAnalysisMethod = (): JSX.Element => { | ||
return ( | ||
<Section> | ||
<SectionLayout> | ||
<VideoContainer> | ||
<Video url="https://youtu.be/k6fTVIR4GME" /> | ||
</VideoContainer> | ||
<SubHeadline> | ||
<Subhead>How to run the workflows</Subhead> | ||
<Typography color="ink.light" variant={TEXT_BODY_LARGE_400_2_LINES}> | ||
<SubHeadText /> | ||
</Typography> | ||
</SubHeadline> | ||
<SectionContent> | ||
<AnalysisMethod | ||
text={<VariantCalling />} | ||
title="Variant calling" | ||
url="" | ||
/> | ||
<AnalysisMethod | ||
text={<Transcriptomics />} | ||
title="Transcriptomics" | ||
url="" | ||
/> | ||
<AnalysisMethod text={<Regulation />} title="Regulation" url="" /> | ||
<AnalysisMethod text={<Assembly />} title="Assembly" url="" /> | ||
<AnalysisMethod | ||
text={<GenomeComparisons />} | ||
title="Genome comparisons" | ||
url="" | ||
/> | ||
<AnalysisMethod | ||
text={<ProteinFolding />} | ||
title="Protein folding" | ||
url="" | ||
/> | ||
</SectionContent> | ||
</SectionLayout> | ||
</Section> | ||
); | ||
}; |
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 @@ | ||
import styled from "@emotion/styled"; | ||
import { sectionSubHero } from "../../../Layout/components/AppLayout/components/Section/section.styles"; | ||
|
||
export const Section = styled.section` | ||
${sectionSubHero}; | ||
`; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
app/components/Analyze/content/AnalysisMethod/subheadText.mdx
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,7 @@ | ||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean | ||
commodo ligula eget dolor. Aenean massa. Cum sociis natoque | ||
penatibus et magnis dis parturient montes, nascetur ridiculus mus. | ||
|
||
Donec quam felis, ultricies nec, pellentesque eu, pretium quis, | ||
sem. Nulla consequat massa quis enim. Donec pede justo, fringilla | ||
vel, aliquet nec, vulputate eget, arcu. |
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
export { default as Assembly } from "./AnalysisMethod/assembly.mdx"; | ||
export { default as GenomeComparisons } from "./AnalysisMethod/genomeComparisons.mdx"; | ||
export { default as ProteinFolding } from "./AnalysisMethod/proteinFolding.mdx"; | ||
export { default as Regulation } from "./AnalysisMethod/regulation.mdx"; | ||
export { default as SubHeadText } from "./AnalysisMethod/subheadText.mdx"; | ||
export { default as Transcriptomics } from "./AnalysisMethod/transcriptomics.mdx"; | ||
export { default as VariantCalling } from "./AnalysisMethod/variantCalling.mdx"; |
13 changes: 0 additions & 13 deletions
13
app/components/Entity/components/AnalysisMethod/analysisMethod.styles.ts
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
app/components/Entity/components/AnalysisMethod/content/index.tsx
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
app/components/Entity/components/AnalysisPortals/analysisPortals.styles.ts
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
app/components/Entity/components/AnalysisPortals/analysisPortals.tsx
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
app/components/Table/components/TableCell/components/AnalyzeGenome/analyzeGenome.styles.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.