Skip to content

Commit

Permalink
Review updates (#652)
Browse files Browse the repository at this point in the history
# Changes
- Open data usage links in a new tab
- Open Hub in a new tab
- Allow specifying banner images for the development and about pages
  • Loading branch information
danielfdsilva authored Sep 13, 2023
2 parents 5b70832 + 68f9a36 commit c88145f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/scripts/components/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function About() {
description={
aboutContent?.data.description || 'This is the default description'
}
coverSrc={aboutContent?.data.media?.src}
coverAlt={aboutContent?.data.media?.alt}
attributionAuthor={aboutContent?.data.media?.author?.name}
attributionUrl={aboutContent?.data.media?.author?.url}
/>
<ContentOverride with='aboutContent'>
<FoldProse>
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/components/common/google-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function GoogleForm() {
onClick={show}
style={{ color: 'white' }}
>
Feedback
Contact Us
</ButtonAsNavLink>
<Modal
id='modal'
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/components/common/notebook-connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function NotebookConnectModal(props: {
<DatasetUsages>
{datasetUsagesWithIcon.map((datasetUsage) => (
<li key={datasetUsage.url}>
<DatasetUsageLink href={datasetUsage.url}>
<DatasetUsageLink href={datasetUsage.url} target='_blank' rel='noopener'>
{IconByType[datasetUsage.type]}
<DatasetUsageLabel>
<h4>{datasetUsage.title}</h4>
Expand Down
5 changes: 3 additions & 2 deletions app/scripts/components/common/page-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ function PageHeader() {
to={ANALYSIS_PATH}
onClick={closeNavOnClick}
>
Analysis
Data Analysis
</GlobalMenuLink>
</li>
<li>
Expand All @@ -426,14 +426,15 @@ function PageHeader() {
<li>
<GlobalMenuLink
as='a'
target='_blank'
rel='noopener'
href={process.env.HUB_URL}
onClick={closeNavOnClick}
>
{process.env.HUB_NAME}
</GlobalMenuLink>
</li>
)}

</GlobalMenu>
</SectionsNavBlock>
<SectionsNavBlock>
Expand Down
4 changes: 4 additions & 0 deletions app/scripts/components/development/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ function Development() {
developmentContent?.data.description ||
'Visualization, Exploration, and Data Analysis (VEDA): Scalable and Interactive System for Science Data.'
}
coverSrc={developmentContent?.data.media?.src}
coverAlt={developmentContent?.data.media?.alt}
attributionAuthor={developmentContent?.data.media?.author?.name}
attributionUrl={developmentContent?.data.media?.author?.url}
/>

<ContentOverride with='developmentContent'>
Expand Down

0 comments on commit c88145f

Please sign in to comment.