-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add organism selector to ga2 landing page #863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import styled from "@emotion/styled"; | ||
| import { sectionLayout } from "../../../../../../Layout/components/AppLayout/components/Section/section.styles"; | ||
| import { SectionHeadline } from "../../../section.styles"; | ||
| import { PALETTE } from "@databiosphere/findable-ui/lib/styles/common/constants/palette"; | ||
|
|
||
| export const Section = styled.section` | ||
| background-color: ${PALETTE.SMOKE_LIGHTEST}; | ||
| border-top: 1px solid ${PALETTE.SMOKE_MAIN}; | ||
| overflow: hidden; | ||
| width: 100%; | ||
| `; | ||
|
|
||
| export const SectionLayout = styled.div` | ||
| ${sectionLayout}; | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 48px 16px; | ||
| padding: 64px 16px; | ||
| `; | ||
|
|
||
| export const Headline = styled(SectionHeadline)` | ||
| align-self: center; | ||
| grid-column: 1 / -1; | ||
| max-width: 560px; | ||
| text-align: center; | ||
| `; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import { SectionSubtitle, SectionTitle } from "../../../section.styles"; | ||
| import { SectionViz as Sunburst } from "../../SectionViz/sunburst"; | ||
| import { Headline, Section, SectionLayout } from "./sectionAssemblies.styles"; | ||
|
|
||
| export const SectionAssemblies = (): JSX.Element => { | ||
| return ( | ||
| <Section> | ||
| <SectionLayout> | ||
| <Headline> | ||
| <SectionTitle>Browse Assemblies</SectionTitle> | ||
| <SectionSubtitle> | ||
| Browse assemblies by taxonomic lineage. | ||
| </SectionSubtitle> | ||
| </Headline> | ||
| <Sunburst logoPath="/logo/genomeark2.svg" startingNode="Metazoa" /> | ||
| </SectionLayout> | ||
| </Section> | ||
| ); | ||
| }; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -15,6 +15,8 @@ import { socialMenuItems, socialMedia } from "./socialMedia"; | |||||
| import { FILTER_SORT } from "@databiosphere/findable-ui/lib/common/filters/sort/config/types"; | ||||||
| import { AppSiteConfig } from "../../common/entities"; | ||||||
| import { APP_KEYS } from "../../common/constants"; | ||||||
| import data from "catalog/output/ncbi-taxa-tree.json"; | ||||||
|
||||||
| import data from "catalog/output/ncbi-taxa-tree.json"; | |
| import data from "../../../catalog/output/ncbi-taxa-tree.json"; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,6 +10,8 @@ import { | |||||
| } from "../../../app/apis/catalog/ga2/entities"; | ||||||
| import { AppSiteConfig } from "../../common/entities"; | ||||||
| import { APP_KEYS } from "../../common/constants"; | ||||||
| import data from "catalog/ga2/output/ncbi-taxa-tree.json"; | ||||||
frano-m marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
| import data from "catalog/ga2/output/ncbi-taxa-tree.json"; | |
| import data from "../../../catalog/ga2/output/ncbi-taxa-tree.json"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded fallback object should be extracted to a constant to improve maintainability and ensure consistency if this fallback is needed elsewhere.