Skip to content

Commit 2f058f6

Browse files
authored
feat: update ga2 footer (#931)
1 parent 8f64df9 commit 2f058f6

File tree

5 files changed

+65
-1
lines changed

5 files changed

+65
-1
lines changed

app/components/Layout/components/Footer/components/Branding/branding.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,29 @@ export const Branding = (): JSX.Element => {
5757
</Brands>
5858
);
5959
};
60+
61+
export const GA2Branding = (): JSX.Element => {
62+
return (
63+
<Brands>
64+
<SmallBrand>
65+
<Logo
66+
alt="NSF"
67+
height={32}
68+
link="https://www.nsf.gov/"
69+
src="/footer/nsf.png"
70+
target={ANCHOR_TARGET.BLANK}
71+
/>
72+
</SmallBrand>
73+
<FooterText
74+
color={TYPOGRAPHY_PROPS.COLOR.INK_LIGHT}
75+
variant={TYPOGRAPHY_PROPS.VARIANT.BODY_SMALL_400}
76+
>
77+
U.S National Science Foundation Award
78+
<Link
79+
label=" #2419522"
80+
url="https://www.nsf.gov/awardsearch/showAward?AWD_ID=2419522&HistoricalAwards=false"
81+
/>
82+
</FooterText>
83+
</Brands>
84+
);
85+
};

app/components/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export { AnalysisMethodsCatalog } from "./Entity/components/AnalysisMethodsCatal
3434
export { AnalysisMethodsTitle } from "./Entity/components/AnalysisMethodsTitle/analysisMethodsTitle";
3535
export { AnalysisPortals } from "./Entity/components/AnalysisPortals/analysisPortals";
3636
export { GridPaperSection } from "./Layout/components/Detail/components/Section/section.styles";
37-
export { Branding } from "./Layout/components/Footer/components/Branding/branding";
37+
export {
38+
Branding,
39+
GA2Branding,
40+
} from "./Layout/components/Footer/components/Branding/branding";
3841
export { AnalyzeGenome } from "./Table/components/TableCell/components/AnalyzeGenome/analyzeGenome";
3942
export { TypographyWordBreak } from "@databiosphere/findable-ui/lib/components/common/Typography/TypographyWordBreak/TypographyWordBreak";
4043
export { MDXSection } from "./Entity/components/Section/MDXSection/mdxSection";

public/footer/nsf.png

776 KB
Loading

site-config/ga2/local/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { AppSiteConfig } from "../../common/entities";
1111
import { APP_KEYS } from "../../common/constants";
1212
import data from "catalog/ga2/output/ncbi-taxa-tree.json";
13+
import { socialMedia } from "./socialMedia";
1314
import { TaxonomyNode } from "../../../app/components/Home/components/Section/components/SectionViz/data";
1415
import { THEME_OPTIONS } from "./theme/constants";
1516

@@ -60,6 +61,8 @@ export function makeConfig(
6061
gitHubUrl,
6162
layout: {
6263
footer: {
64+
Branding: C.GA2Branding(),
65+
socials: socialMedia.socials,
6366
versionInfo: true,
6467
},
6568
header: {
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { SocialMedia } from "@databiosphere/findable-ui/lib/components/Layout/components/Header/common/entities";
2+
import * as C from "../../../app/components";
3+
import {
4+
REL_ATTRIBUTE,
5+
ANCHOR_TARGET,
6+
} from "@databiosphere/findable-ui/lib/components/Links/common/entities";
7+
import { MenuItem } from "@databiosphere/findable-ui/lib/components/Layout/components/Header/components/Content/components/Navigation/components/NavigationMenuItems/navigationMenuItems";
8+
9+
export const SOCIALS = {
10+
GITHUB: {
11+
label: "GitHub",
12+
rel: REL_ATTRIBUTE.NO_OPENER_NO_REFERRER,
13+
target: ANCHOR_TARGET.BLANK,
14+
url: "https://github.com/galaxyproject/brc-analytics",
15+
},
16+
};
17+
18+
export const socialMenuItems: MenuItem[] = [
19+
{
20+
...SOCIALS.GITHUB,
21+
icon: C.GitHubIcon({ fontSize: "small" }),
22+
},
23+
];
24+
25+
export const socialMedia: SocialMedia = {
26+
socials: [
27+
{
28+
...SOCIALS.GITHUB,
29+
Icon: C.GitHubIcon,
30+
},
31+
],
32+
};

0 commit comments

Comments
 (0)