Skip to content
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

feat: brc analytics home page hero link text (#85) #86

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { elevation01 } from "@databiosphere/findable-ui/lib/theme/common/shadows
import styled from "@emotion/styled";
import { Accordion as MAccordion } from "@mui/material";
import { sectionGrid } from "../../../../../../../Layout/components/AppLayout/components/Section/section.styles";
import { muiLink } from "../../../../section.styles";

export const Grid = styled.div`
${sectionGrid};
Expand All @@ -22,7 +21,6 @@ export const Grid = styled.div`
`;

export const StyledAccordion = styled(MAccordion)`
${muiLink};
box-shadow: ${elevation01} !important;
display: grid;
grid-column: 1 / -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
sectionLayout,
} from "../../../../../Layout/components/AppLayout/components/Section/section.styles";
import {
muiLink,
SectionHeadline,
SectionSubtitle,
SectionTitle,
Expand Down Expand Up @@ -43,6 +42,5 @@ export const StyledSectionTitle = styled(SectionTitle)`
`;

export const StyledSectionSubTitle = styled(SectionSubtitle)`
${muiLink};
line-height: 28px;
`;
12 changes: 0 additions & 12 deletions app/components/Home/components/Section/section.styles.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
import { inkLight } from "@databiosphere/findable-ui/lib/styles/common/mixins/colors";
import { textBodyLarge400 } from "@databiosphere/findable-ui/lib/styles/common/mixins/fonts";
import { css } from "@emotion/react";
import styled from "@emotion/styled";

export const muiLink = css`
.MuiLink-root {
color: #28285b;
text-decoration: underline;

&:hover {
text-decoration: none;
}
}
`;

export const SectionHeadline = styled.div`
display: grid;
gap: 16px;
Expand Down
2 changes: 1 addition & 1 deletion app/components/Home/content/sectionSubHero.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BRC-Analytics is your new destination for analysis of biological
data related to pathogens. Building on the legacy of VEuPathDb
the platform will provide access and analysis capabilities for
[785](/data/organisms) eukaryotic pathogens, hosts, and vectors. The functionality will
[785 eukaryotic pathogens](/data/organisms), hosts, and vectors. The functionality will
be developed and made available incrementally over the [following months](/roadmap).
16 changes: 16 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ export const getStaticProps: GetStaticProps = async () => {
props: {
pageTitle: "BRC Analytics",
themeOptions: {
components: {
MuiLink: {
styleOverrides: {
root: {
color: "#28285b",
textDecoration: "underline",
textDecorationSkipInk: "none",
textUnderlinePosition: "from-font",
// eslint-disable-next-line sort-keys -- disabling key order for readability
"&:hover": {
textDecoration: "none",
},
},
},
},
},
palette: {
background: { default: smokeLightest },
},
Expand Down
Loading