Skip to content

Commit

Permalink
Layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
relferreira committed Feb 18, 2019
1 parent 44719aa commit bab5455
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
33 changes: 31 additions & 2 deletions ui/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ const Header = styled.div`
padding: 16px;
background: ${props => props.theme.header};
color: white;
box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.1), 0 0.1rem 0.8rem rgba(0, 0, 0, 0.2);
overflow: auto;
`;

const LogoContainer = styled.div`
display: flex;
align-items: center;
width: 204px;
`;

const Image = styled.img`
Expand All @@ -22,9 +30,30 @@ const Title = styled.h1`
font-size: 24px;
`;

const InputContainer = styled.div`
display: flex;
justify-content: flex-start;
flex: 1;
input {
width: 500px;
height: 40px;
padding: 16px;
border: none;
border-radius: 3px;
background: ${props => props.theme.background};
color: #fff;
}
`;

export default props => (
<Header>
<Image src={logo} />
<Title>KubeDev</Title>
<LogoContainer>
<Image src={logo} />
<Title>KubeDev</Title>
</LogoContainer>
{/* <InputContainer>
<input type="text" placeholder="Search" />
</InputContainer> */}
</Header>
);
4 changes: 2 additions & 2 deletions ui/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const lightTheme = {

const darkTheme = {
name: 'dark',
background: darkLight,
header: darkDark,
background: darkDark,
header: darkLight,
sidebarBackground: darkDark,
sidebarFontColor: fontColorWhite,
containerFont: fontColorWhite,
Expand Down
4 changes: 2 additions & 2 deletions ui/util/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const successColor = '#4caf50';
export const errorColor = '#f44336';
export const warningColor = '#ffc107';
export const neutralColor = '#595959';
export const darkLight = '#424242';
export const darkLight = '#2b2c2f';
export const darkDark = '#212121';
export const backgroundLight = '#ffffff';
export const cardBackgroundLight = '#fafafa';
export const cardBackgroundDark = darkDark;
export const cardBackgroundDark = darkLight;
export const tableBorderLight = 'rgba(0, 0, 0, 0.12)';
export const tableBorderDark = 'rgba(206, 205, 205, 0.12)';

0 comments on commit bab5455

Please sign in to comment.