Skip to content

Commit 95cf1ac

Browse files
Fran McDadeFran McDade
authored andcommitted
feat: added sub header section (#6)
1 parent 64ef13d commit 95cf1ac

File tree

5 files changed

+74
-0
lines changed

5 files changed

+74
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import { white } from "@databiosphere/findable-ui/lib/styles/common/mixins/colors";
2+
import { textBodySmall500 } from "@databiosphere/findable-ui/lib/styles/common/mixins/fonts";
3+
import styled from "@emotion/styled";
4+
import { Chip as MChip } from "@mui/material";
5+
import {
6+
Section,
7+
sectionGrid,
8+
SectionLayout as DefaultLayout,
9+
} from "../../section.styles";
10+
11+
export const StyledSection = styled(Section)`
12+
background-color: ${white};
13+
`;
14+
15+
export const SectionLayout = styled(DefaultLayout)`
16+
${sectionGrid};
17+
grid-template-columns: 1fr;
18+
justify-items: center;
19+
padding: 96px 16px 102px;
20+
`;
21+
22+
export const StyledChip = styled(MChip)`
23+
min-width: 0;
24+
25+
.MuiChip-label {
26+
${textBodySmall500};
27+
padding: 0 10px;
28+
}
29+
`;
30+
31+
export const Subhead = styled.h2`
32+
font-size: 32px;
33+
font-weight: 400;
34+
line-height: 48px;
35+
margin: 0;
36+
text-align: center;
37+
`;
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {
2+
SectionLayout,
3+
StyledChip,
4+
StyledSection as Section,
5+
Subhead,
6+
} from "./sectionSubHero.styles";
7+
8+
export const SectionSubHero = (): JSX.Element => {
9+
return (
10+
<Section>
11+
<SectionLayout>
12+
<StyledChip
13+
color="default"
14+
label="The NIAID Bioinformatics Resource Analytics Center"
15+
variant="filled"
16+
/>
17+
<Subhead>
18+
BRC-Analytics is your new destination for comprehensive analysis of
19+
biological data related to pathogens. Building on the legacy of
20+
VeuPathDb, our platform currently supports analyses for 785 eukaryotic
21+
pathogens and vectors, providing researchers with the tools they need
22+
to advance their work.
23+
</Subhead>
24+
</SectionLayout>
25+
</Section>
26+
);
27+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { Main as DXMain } from "@databiosphere/findable-ui/lib/components/Layout/components/Main/main";
2+
import styled from "@emotion/styled";
3+
4+
export const StyledMain = styled(DXMain)`
5+
flex-direction: column;
6+
`;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { Fragment } from "react";
22
import { SectionHero } from "../../components/Home/components/Section/components/SectionHero/sectionHero";
3+
import { SectionSubHero } from "../../components/Home/components/Section/components/SectionSubHero/sectionSubHero";
34

45
export const HomeView = (): JSX.Element => {
56
return (
67
<Fragment>
78
<SectionHero />
9+
<SectionSubHero />
810
</Fragment>
911
);
1012
};

website/pages/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { StyledAppLayout } from "../app/components/Layout/components/AppLayout/appLayout.styles";
2+
import { StyledMain } from "../app/components/Layout/components/Main/main.styles";
23
import { HomeView } from "../app/views/HomeView/homeView";
34

45
export const Home = (): JSX.Element => {
@@ -8,3 +9,4 @@ export const Home = (): JSX.Element => {
89
export default Home;
910

1011
Home.AppLayout = StyledAppLayout;
12+
Home.Main = StyledMain;

0 commit comments

Comments
 (0)