-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SLAs: Add Enterprise Premium support information (#689)
* SLAs: Add Enterprise Premium support information
- Loading branch information
Showing
20 changed files
with
473 additions
and
70 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React, { useState } from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import { | ||
ApplicationLauncher, | ||
ApplicationLauncherItem, | ||
DropdownPosition, | ||
PageHeader, | ||
PageHeaderTools, | ||
} from '@patternfly/react-core'; | ||
import { QuestionCircleIcon } from '@patternfly/react-icons'; | ||
import UserInterfaceLogo from '@app/components/UserInterfaceLogo'; | ||
|
||
import './header.css'; | ||
|
||
const PublicHeader: React.FC = () => { | ||
const [isUserHelpDropdownOpen, setUserHelpDropdownOpen] = useState(false); | ||
const navigate = useNavigate(); | ||
|
||
function LogoImg() { | ||
return <UserInterfaceLogo onClick={() => navigate('/')} style={{ width: '278px' }} />; | ||
} | ||
const openSupportCase = (e: { preventDefault: () => void }) => { | ||
e.preventDefault(); | ||
window.open('https://red.ht/open-support', '_blank'); | ||
}; | ||
|
||
const UserHelpDropdownItems = [ | ||
<ApplicationLauncherItem key="open-support" component="button" onClick={openSupportCase} isExternal> | ||
Open Support Case | ||
</ApplicationLauncherItem>, | ||
<ApplicationLauncherItem | ||
key="status-page-link" | ||
href="https://rhpds-demos.statuspage.io/" | ||
target="_blank" | ||
rel="noreferrer nofollow" | ||
isExternal | ||
> | ||
Status Page | ||
</ApplicationLauncherItem>, | ||
]; | ||
|
||
const HeaderTools = ( | ||
<PageHeaderTools> | ||
<ApplicationLauncher | ||
aria-label="Help menu" | ||
onSelect={() => setUserHelpDropdownOpen((prevIsOpen) => !prevIsOpen)} | ||
onToggle={(isOpen: boolean) => setUserHelpDropdownOpen(isOpen)} | ||
isOpen={isUserHelpDropdownOpen} | ||
items={UserHelpDropdownItems} | ||
position={DropdownPosition.right} | ||
toggleIcon={<QuestionCircleIcon />} | ||
/> | ||
</PageHeaderTools> | ||
); | ||
|
||
return <PageHeader logo={<LogoImg />} className="public-header-component" headerTools={HeaderTools} />; | ||
}; | ||
|
||
export default PublicHeader; |
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,12 @@ | ||
import React from 'react'; | ||
|
||
const EnterprisePremiumIcon: React.FC<React.HTMLAttributes<HTMLOrSVGElement> & { fill?: string }> = (props) => ( | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="24.382 16.489 7.258 13.14" {...props}> | ||
<path | ||
d="M31.62 20.11c0-2-1.63-3.62-3.62-3.62-3.13-.07-4.82 3.93-2.62 6.11V29c0 .25.15.48.39.58.23.1.5.04.68-.13l1.56-1.56 1.56 1.56c.18.18.45.23.68.13.23-.1.39-.32.39-.58v-6.4c.62-.65 1-1.52 1-2.49ZM28 17.73c3.13.08 3.13 4.67 0 4.75-3.13-.08-3.13-4.67 0-4.75Zm.44 8.82a.628.628 0 0 0-.88 0l-.93.93v-4.03c.84.36 1.91.36 2.75 0v4.03l-.93-.93Z" | ||
fill={props.fill || '#fff'} | ||
/> | ||
</svg> | ||
); | ||
|
||
export default EnterprisePremiumIcon; |
Oops, something went wrong.