Skip to content

Commit

Permalink
feat: added discourse header/footer button (#88) (#180)
Browse files Browse the repository at this point in the history
* feat: added discourse header button (#88)

* content: added discourse link to footer (#88)

* fix: navlinks open in new tab (#88)
  • Loading branch information
jpaten authored Nov 21, 2024
1 parent 4d80b82 commit c12414e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { Alert } from "@databiosphere/findable-ui/lib/components/common/Alert/alert";
export { Breadcrumbs } from "@databiosphere/findable-ui/lib/components/common/Breadcrumbs/breadcrumbs";
export { DiscourseIcon } from "@databiosphere/findable-ui/lib/components/common/CustomIcon/components/DiscourseIcon/discourseIcon";
export { Grid } from "@databiosphere/findable-ui/lib/components/common/Grid/grid";
export { KeyElType } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/components/KeyElType/keyElType";
export { KeyValueElType } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/components/KeyValueElType/keyValueElType";
Expand Down
6 changes: 6 additions & 0 deletions site-config/brc-analytics/local/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { ANCHOR_TARGET } from "@databiosphere/findable-ui/lib/components/Links/common/entities";
import { SiteConfig } from "@databiosphere/findable-ui/lib/config/entities";
import { EntityConfig } from "@databiosphere/findable-ui/src/config/entities";
import { BRCDataCatalogGenome } from "../../../app/apis/catalog/brc-analytics-catalog/common/entities";
import * as C from "../../../app/components";
import { ROUTES } from "../../../routes/constants";
import { floating } from "./floating/floating";
import { genomeEntityConfig } from "./index/genomeEntityConfig";
import { socialMedia } from "./socialMedia";

const LOCALHOST = "http://localhost:3000";
const APP_TITLE = "BRC Analytics";
Expand Down Expand Up @@ -43,13 +45,16 @@ export function makeConfig(browserUrl: string, gitHubUrl: string): SiteConfig {
navLinks: [
{
label: "BV-BRC",
target: ANCHOR_TARGET.BLANK,
url: "https://www.bv-brc.org/",
},
{
label: "Pathogen Data Network",
target: ANCHOR_TARGET.BLANK,
url: "https://pathogendatanetwork.org/",
},
],
socials: socialMedia.socials,
versionInfo: true,
},
header: {
Expand All @@ -68,6 +73,7 @@ export function makeConfig(browserUrl: string, gitHubUrl: string): SiteConfig {
],
undefined,
],
socialMedia: socialMedia,
},
},
redirectRootToPath: "/",
Expand Down
18 changes: 18 additions & 0 deletions site-config/brc-analytics/local/socialMedia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { SocialMedia } from "@databiosphere/findable-ui/lib/components/Layout/components/Header/common/entities";
import * as C from "../../../app/components";

export const SOCIALS = {
DISCOURSE: {
label: "Discourse",
url: "https://help.brc-analytics.org/",
},
};

export const socialMedia: SocialMedia = {
socials: [
{
...SOCIALS.DISCOURSE,
Icon: C.DiscourseIcon,
},
],
};

0 comments on commit c12414e

Please sign in to comment.