File tree Expand file tree Collapse file tree 5 files changed +74
-0
lines changed
Home/components/Section/components/SectionSubHero Expand file tree Collapse file tree 5 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
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
+ ` ;
Original file line number Diff line number Diff line change
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
+ } ;
Original file line number Diff line number Diff line change
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
+ ` ;
Original file line number Diff line number Diff line change 1
1
import { Fragment } from "react" ;
2
2
import { SectionHero } from "../../components/Home/components/Section/components/SectionHero/sectionHero" ;
3
+ import { SectionSubHero } from "../../components/Home/components/Section/components/SectionSubHero/sectionSubHero" ;
3
4
4
5
export const HomeView = ( ) : JSX . Element => {
5
6
return (
6
7
< Fragment >
7
8
< SectionHero />
9
+ < SectionSubHero />
8
10
</ Fragment >
9
11
) ;
10
12
} ;
Original file line number Diff line number Diff line change 1
1
import { StyledAppLayout } from "../app/components/Layout/components/AppLayout/appLayout.styles" ;
2
+ import { StyledMain } from "../app/components/Layout/components/Main/main.styles" ;
2
3
import { HomeView } from "../app/views/HomeView/homeView" ;
3
4
4
5
export const Home = ( ) : JSX . Element => {
@@ -8,3 +9,4 @@ export const Home = (): JSX.Element => {
8
9
export default Home ;
9
10
10
11
Home . AppLayout = StyledAppLayout ;
12
+ Home . Main = StyledMain ;
You can’t perform that action at this time.
0 commit comments