-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from AnglesHQ/default_landing_page
Adding introduction page
- Loading branch information
Showing
13 changed files
with
166 additions
and
16 deletions.
There are no files selected for viewing
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,54 @@ | ||
import React from 'react'; | ||
import { | ||
Panel, | ||
} from 'rsuite'; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
const IntroductionPage = function () { | ||
const getSwaggerUrl = function () { | ||
return `${process.env.REACT_APP_ANGLES_API_URL}/api-docs`; | ||
}; | ||
|
||
return ( | ||
<div> | ||
<Panel | ||
bordered | ||
className="introduction-page-panel" | ||
header={( | ||
<span className="introduction-page-header"> | ||
<FormattedMessage id="page.introduction.header" /> | ||
</span> | ||
)} | ||
> | ||
<div className="introduction-main-div"> | ||
<div> | ||
<FormattedMessage | ||
id="page.introduction.description" | ||
values={{ | ||
apiLink: ( | ||
<a href={getSwaggerUrl()} target="_blank" rel="noopener noreferrer"> | ||
<FormattedMessage id="page.introduction.api-link-text" /> | ||
</a> | ||
), | ||
}} | ||
/> | ||
</div> | ||
<div className="introduction-alternative-description"> | ||
<FormattedMessage | ||
id="page.introduction.description-alternative" | ||
values={{ | ||
githubLink: ( | ||
<a href="https://angleshq.github.io/" target="_blank" rel="noopener noreferrer"> | ||
<FormattedMessage id="page.introduction.github-link-text" /> | ||
</a> | ||
), | ||
}} | ||
/> | ||
</div> | ||
</div> | ||
</Panel> | ||
</div> | ||
); | ||
}; | ||
|
||
export default IntroductionPage; |
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,22 @@ | ||
import React from 'react'; | ||
import { FormattedMessage } from 'react-intl'; | ||
import { Breadcrumb, Panel } from 'rsuite'; | ||
import IntroductionPage from './IntroductionPage'; | ||
|
||
const Page = function () { | ||
return ( | ||
<Panel> | ||
<Breadcrumb> | ||
<Breadcrumb.Item href="/"> | ||
<FormattedMessage id="page.home.bread-crumb" /> | ||
</Breadcrumb.Item> | ||
<Breadcrumb.Item> | ||
<FormattedMessage id="page.introduction.bread-crumb" /> | ||
</Breadcrumb.Item> | ||
</Breadcrumb> | ||
<IntroductionPage /> | ||
</Panel> | ||
); | ||
}; | ||
|
||
export default Page; |
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,28 @@ | ||
|
||
.introduction-page-panel { | ||
background-color: var(--main-panel-background); | ||
color: var(--main-panel-font-color); | ||
border: none; | ||
|
||
.introduction-page-header { | ||
color: var(--main-panel-font-color); | ||
font-weight: bold; | ||
} | ||
|
||
.introduction-page-section { | ||
padding-bottom: 10px; | ||
} | ||
|
||
.introduction-page-section-table { | ||
padding-top: 10px; | ||
} | ||
|
||
.introduction-main-div { | ||
white-space: pre-line; | ||
} | ||
|
||
.introduction-alternative-description { | ||
padding-top: 20px; | ||
} | ||
} | ||
|
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