Skip to content

Commit 717e4c9

Browse files
Fran McDadeFran McDade
authored andcommitted
feat: brc analytics home page hero link text (#85)
1 parent a355572 commit 717e4c9

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

app/components/Home/components/Section/components/SectionHelp/components/Questions/questions.styles.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { elevation01 } from "@databiosphere/findable-ui/lib/theme/common/shadows
88
import styled from "@emotion/styled";
99
import { Accordion as MAccordion } from "@mui/material";
1010
import { sectionGrid } from "../../../../../../../Layout/components/AppLayout/components/Section/section.styles";
11-
import { muiLink } from "../../../../section.styles";
1211

1312
export const Grid = styled.div`
1413
${sectionGrid};
@@ -22,7 +21,6 @@ export const Grid = styled.div`
2221
`;
2322

2423
export const StyledAccordion = styled(MAccordion)`
25-
${muiLink};
2624
box-shadow: ${elevation01} !important;
2725
display: grid;
2826
grid-column: 1 / -1;

app/components/Home/components/Section/components/SectionHelp/sectionHelp.styles.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
sectionLayout,
1010
} from "../../../../../Layout/components/AppLayout/components/Section/section.styles";
1111
import {
12-
muiLink,
1312
SectionHeadline,
1413
SectionSubtitle,
1514
SectionTitle,
@@ -43,6 +42,5 @@ export const StyledSectionTitle = styled(SectionTitle)`
4342
`;
4443

4544
export const StyledSectionSubTitle = styled(SectionSubtitle)`
46-
${muiLink};
4745
line-height: 28px;
4846
`;

app/components/Home/components/Section/section.styles.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
import { inkLight } from "@databiosphere/findable-ui/lib/styles/common/mixins/colors";
22
import { textBodyLarge400 } from "@databiosphere/findable-ui/lib/styles/common/mixins/fonts";
3-
import { css } from "@emotion/react";
43
import styled from "@emotion/styled";
54

6-
export const muiLink = css`
7-
.MuiLink-root {
8-
color: #28285b;
9-
text-decoration: underline;
10-
11-
&:hover {
12-
text-decoration: none;
13-
}
14-
}
15-
`;
16-
175
export const SectionHeadline = styled.div`
186
display: grid;
197
gap: 16px;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
BRC-Analytics is your new destination for analysis of biological
22
data related to pathogens. Building on the legacy of VEuPathDb
33
the platform will provide access and analysis capabilities for
4-
[785](/data/organisms) eukaryotic pathogens, hosts, and vectors. The functionality will
4+
[785 eukaryotic pathogens](/data/organisms), hosts, and vectors. The functionality will
55
be developed and made available incrementally over the [following months](/roadmap).

pages/index.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ export const getStaticProps: GetStaticProps = async () => {
1212
props: {
1313
pageTitle: "BRC Analytics",
1414
themeOptions: {
15+
components: {
16+
MuiLink: {
17+
styleOverrides: {
18+
root: {
19+
color: "#28285b",
20+
textDecoration: "underline",
21+
textDecorationSkipInk: "none",
22+
textUnderlinePosition: "from-font",
23+
// eslint-disable-next-line sort-keys -- disabling key order for readability
24+
"&:hover": {
25+
textDecoration: "none",
26+
},
27+
},
28+
},
29+
},
30+
},
1531
palette: {
1632
background: { default: smokeLightest },
1733
},

0 commit comments

Comments
 (0)