web app - basic theme

This commit is contained in:
Jan Prochazka
2019-12-26 22:25:28 +01:00
parent a91853d0cd
commit 43bc6a719c
9 changed files with 225 additions and 244 deletions

25
web/src/FilesTabsPanel.js Normal file
View File

@@ -0,0 +1,25 @@
import React from "react";
import styled from "styled-components";
const files = [
{ name: "app.js" },
{ name: "BranchCategory", type: "table", selected: true },
{ name: "ApplicationList" }
];
const FileTabItem = styled.div`
border-right: 1px solid white;
padding-left: 15px;
padding-right: 15px;
display: flex;
align-items: center;
cursor: pointer;
&:hover {
color: #338;
}
background-color: ${props => (props.selected ? "#eee" : "inherit")};
`;
export default function FilesTabsPanel() {
return files.map(file => <FileTabItem {...file}>{file.name}</FileTabItem>);
}