-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support forum link to PS landing page and dashboard (#848)
* Add icons and link for support forum * Remove support forum item from sidebar * Add component for support link * Show support forum link conditionally * Handle dark mode
- Loading branch information
Showing
7 changed files
with
82 additions
and
15 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
48 changes: 48 additions & 0 deletions
48
packages/design-system/src/components/landingPage/supportLink.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,48 @@ | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/** | ||
* External dependencies. | ||
*/ | ||
import React from 'react'; | ||
|
||
/** | ||
* Internal dependencies. | ||
*/ | ||
import { SupportIcon, ExternalLinkBlack } from '../../icons'; | ||
|
||
const SupportLink = () => { | ||
return ( | ||
<a | ||
className="group dark:text-bright-gray flex items-center hover:text-blue-500 hover:dark:text-blue-400" | ||
target="_blank" | ||
href="https://github.com/GoogleChromeLabs/ps-analysis-tool/discussions/categories/support-forum" | ||
rel="noreferrer" | ||
> | ||
<span className="mt-[1px] mr-1"> | ||
<SupportIcon className="fill-current text-black dark:text-bright-gray group-hover:text-blue-500" /> | ||
</span> | ||
<span>Support Forum</span> | ||
<span className="ml-[2px] inline-block"> | ||
<ExternalLinkBlack | ||
className="fill-current text-black dark:text-bright-gray group-hover:text-blue-500" | ||
width="14" | ||
/> | ||
</span> | ||
</a> | ||
); | ||
}; | ||
|
||
export default SupportLink; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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