-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install page enhancement: move content to Release information section (…
…#2236) * Created a new Release information section * Moved changelog, note, official release channels and, for Enterprise install pages, terms of use to a new release information section on the install page * Created a new component, <CardWithLink /> for changelog and official releases cards under Release Information, and in future PRs. * Removed OfficialReleases as that information is now in the Release information section
- Loading branch information
1 parent
b7fbe03
commit c798016
Showing
10 changed files
with
294 additions
and
266 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/views/product-downloads-view/components/card-with-link/card-with-link.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* * | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
|
||
.root { | ||
display: flex; | ||
padding: 16px; | ||
margin-bottom: 24px; | ||
justify-content: space-between; | ||
} | ||
|
||
.contentHeading { | ||
margin-bottom: 4px; | ||
} |
45 changes: 45 additions & 0 deletions
45
src/views/product-downloads-view/components/card-with-link/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
|
||
// Third-party imports | ||
import { ReactNode } from 'react' | ||
|
||
// Global imports | ||
import Card from 'components/card' | ||
import Text from 'components/text' | ||
|
||
// Local imports | ||
import s from './card-with-link.module.css' | ||
|
||
interface CardWithLinkProps { | ||
heading: string | ||
subheading: string | ReactNode | ||
icon?: ReactNode | ||
link?: ReactNode | ||
} | ||
|
||
const CardWithLink = ({ | ||
heading, | ||
subheading, | ||
icon, | ||
link, | ||
}: CardWithLinkProps) => { | ||
return ( | ||
<Card className={s.root} elevation="base"> | ||
{typeof icon !== undefined ? icon : null} | ||
<div className={s.contentContainer}> | ||
<Text className={s.contentHeading} size={200} weight="semibold"> | ||
{heading} | ||
</Text> | ||
<Text className={s.contentSubheading} size={200} weight="regular"> | ||
{subheading} | ||
</Text> | ||
</div> | ||
{typeof link !== undefined ? link : null} | ||
</Card> | ||
) | ||
} | ||
|
||
export default CardWithLink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c798016
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
dev-portal – ./
dev-portal-git-main-hashicorp.vercel.app
dev-portal-hashicorp.vercel.app
docs.hashicorp.com
developer.hashicorp.com