From ab7a2457f3f7317b0395d620122569e774ff014d Mon Sep 17 00:00:00 2001 From: Yurov Dmitry Date: Wed, 8 May 2019 16:28:01 +0300 Subject: [PATCH] add copy --- src/components/Redoc/Redoc.tsx | 7 ++++++- src/components/Redoc/styled.elements.tsx | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/components/Redoc/Redoc.tsx b/src/components/Redoc/Redoc.tsx index 2b43e77d..22395c80 100644 --- a/src/components/Redoc/Redoc.tsx +++ b/src/components/Redoc/Redoc.tsx @@ -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 { + + + Powered by ReDoc + + diff --git a/src/components/Redoc/styled.elements.tsx b/src/components/Redoc/styled.elements.tsx index ebb30df1..733f1c59 100644 --- a/src/components/Redoc/styled.elements.tsx +++ b/src/components/Redoc/styled.elements.tsx @@ -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;