-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'internal/main'
- Loading branch information
Showing
36 changed files
with
812 additions
and
624 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,77 @@ | ||
import { NewTab } from "@carbon/icons-react"; | ||
import { Link } from "@carbon/react"; | ||
import React from "react"; | ||
import "../../index.scss"; | ||
import craigNoBackground from "../../images/craigNoBackground.png"; | ||
import { CraigFormGroup } from "../forms"; | ||
import { contains } from "lazy-z"; | ||
|
||
const InternalLink = (props) => { | ||
return ( | ||
<Link href={props.url} size="lg" style={props.style}> | ||
{props.urlText} | ||
</Link> | ||
); | ||
}; | ||
|
||
const ExternalLink = (props) => { | ||
return ( | ||
<Link | ||
href={props.url} | ||
renderIcon={() => <NewTab data-modal-primary-focus />} | ||
target="_blank" | ||
size="lg" | ||
style={props.style} | ||
> | ||
{props.urlText} | ||
</Link> | ||
); | ||
}; | ||
|
||
const BottomAbout = () => { | ||
let isV2Page = | ||
contains(window.location.pathname, "/v2") || | ||
contains(window.location.search, "v2"); | ||
return ( | ||
<div className="newFooter pointerEventsAuto"> | ||
<div className="newFooterFlexRow marginBottomSmall"> | ||
<div className="newFooterFlexColumn"> | ||
<h1 className="marginBottomSmall">CRAIG</h1> | ||
<InternalLink | ||
url={`/docs/about${isV2Page ? "?v2" : ""}`} | ||
urlText="About" | ||
/> | ||
<InternalLink | ||
url={`/docs/releaseNotes${isV2Page ? "?v2" : ""}`} | ||
urlText="Release Notes" | ||
/> | ||
<InternalLink | ||
url={`/docs/json${isV2Page ? "?v2" : ""}`} | ||
urlText="JSON Documentation" | ||
/> | ||
<InternalLink url="/docs/tutorial" urlText="Tutorial" /> | ||
</div> | ||
<div className="newFooterFlexColumn marginTopSkipRow"> | ||
<ExternalLink url="https://github.com/IBM/CRAIG" urlText="Github" /> | ||
<ExternalLink | ||
url="https://github.com/IBM/CRAIG/blob/main/README.md" | ||
urlText="README" | ||
/> | ||
<ExternalLink | ||
url="https://github.com/IBM/CRAIG/tree/main/.docs" | ||
urlText="Documentation" | ||
/> | ||
</div> | ||
<div className="newFooterLogoColumn"> | ||
<img src={craigNoBackground} width="190" height="190" /> | ||
</div> | ||
</div> | ||
<hr width="99%"></hr> | ||
<p className="newFooterBottomText italic"> | ||
Created by the IBM Cloud Platinum Team | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BottomAbout; |
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.