This commit is contained in:
Yurov Dmitry 2019-05-08 16:28:01 +03:00
parent 6a8843f23e
commit ab7a2457f3
2 changed files with 21 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import { ApiLogo } from '../ApiLogo/ApiLogo';
import { ContentItems } from '../ContentItems/ContentItems';
import { SideMenu } from '../SideMenu/SideMenu';
import { StickyResponsiveSidebar } from '../StickySidebar/StickyResponsiveSidebar';
import { ApiContentWrap, BackgroundStub, RedocWrap } from './styled.elements';
import { ApiContentWrap, BackgroundStub, Copyright, RedocWrap } from './styled.elements';
import { SearchBox } from '../SearchBox/SearchBox';
import { StoreProvider } from '../StoreBuilder';
@ -59,6 +59,11 @@ export class Redoc extends React.Component<RedocProps> {
<ApiInfo store={store} />
<ContentItems items={menu.items as any} />
</ApiContentWrap>
<Copyright>
<a href="https://github.com/Rebilly/ReDoc" target="_blank" title="Swagger-generated API Reference Documentation">
Powered by <b>ReDoc</b>
</a>
</Copyright>
<BackgroundStub />
</RedocWrap>
</OptionsProvider>

View File

@ -37,6 +37,21 @@ export const ApiContentWrap = styled.div`
contain: layout;
`;
export const Copyright = styled.div`
color: #c2c2c2;
position: absolute;
bottom: 14px;
right: 40px;
z-index: 5;
a {
color: #c2c2c2;
b {
font-size: 16px;
}
}
`;
export const BackgroundStub = styled.div`
background: ${({ theme }) => theme.rightPanel.backgroundColor};
position: absolute;