Skip to content

Commit

Permalink
add quick links to help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
thedannywahl committed Feb 23, 2024
1 parent efdb85f commit 3a34912
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 6 deletions.
59 changes: 53 additions & 6 deletions isp-site/src/components/RenderTopNavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Link,
IconDiscussionLine,
Drilldown,
InlineList,
} from "@instructure/ui";

import "utils/toggle";
Expand Down Expand Up @@ -146,7 +147,6 @@ function RenderTopNavBar({ language }) {
>
<Heading level="h3">{s.contact_info}</Heading>
<Text>{s.info_overview}</Text>
<hr />

<View as="div" margin="medium 0 0">
<Text weight="bold">{s.current_customers}</Text>
Expand All @@ -159,13 +159,60 @@ function RenderTopNavBar({ language }) {
<br />
<Text>{s.contact_sales}</Text>
<br />
<Text>
{s.contact_general}{" "}
<Text>{s.contact_general} </Text>
</View>
<View
as="hr"
shadow="topmost"
borderWidth="small"
margin="small none"
padding="none"
borderColor="primary"
/>
<InlineList
delimiter="pipe"
size="small"
textAlign="center"
>
<InlineList.Item>
<Anchor
to={`/links${
l !== "EN"
? `/${l.toLowerCase().split("_")[0]}`
: ""
}`}
>
{s.redirects}
</Anchor>
</InlineList.Item>
<InlineList.Item>
<Anchor
to={`/releases${
l !== "EN"
? `/${l.toLowerCase().split("_")[0]}`
: ""
}`}
>
{s.releases}
</Anchor>
</InlineList.Item>
<InlineList.Item>
<Anchor
to={`/mdui${
l !== "EN"
? `/${l.toLowerCase().split("_")[0]}`
: ""
}`}
>
MDUI
</Anchor>
</InlineList.Item>
<InlineList.Item>
<Link href="mailto:[email protected]">
[email protected]
{s.contact}
</Link>
</Text>
</View>
</InlineList.Item>
</InlineList>
</View>
),
}}
Expand Down
18 changes: 18 additions & 0 deletions isp-site/src/strings/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,23 @@ const strings = {
PT_BR: "Para perguntas gerais, envie um e-mail para",
DE: "Für allgemeine Anfragen senden Sie eine E-Mail an",
},
redirects: {
EN: "Redirects",
ES_LA: "Redirecciones",
PT_BR: "Redirecionamentos",
DE: "Weiterleitungen",
},
releases: {
EN: "Releases",
ES_LA: "Lanzamientos",
PT_BR: "Lançamentos",
DE: "Veröffentlichungen",
},
contact: {
EN: "Contact",
ES_LA: "Contacto",
PT_BR: "Contato",
DE: "Kontakt",
},
};
export default strings;

0 comments on commit 3a34912

Please sign in to comment.