Skip to content

Commit cfc141f

Browse files
committed
web: add header links
1 parent baf9346 commit cfc141f

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

web/src/App.css

-5
This file was deleted.

web/src/App.tsx

+27-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1+
import styled from 'styled-components'
12
import kubeScoreLogo from './assets/logo.svg'
2-
import './App.css'
33
import Run from './Run'
44

55
function App() {
66
return (
7-
<>
8-
<div style={{ display: 'flex', gap: 8, alignItems: "center" }}>
9-
<img src={kubeScoreLogo} style={{ height: 60 }} alt="kube-score logo" />
10-
<h1 style={{ fontSize: 32 }}>kube-score</h1>
7+
<RootContainer>
8+
<div style={{ display: 'flex', gap: 16, alignItems: "center", justifyItems: "center", justifyContent: "space-between", flex: 1, flexShrink: 0, flexWrap: "wrap", width: "100%" }}>
9+
<div style={{ display: 'flex', gap: 8, alignItems: "center", flex: 1, flexShrink: 0, }}>
10+
<img src={kubeScoreLogo} style={{ height: 60 }} alt="kube-score logo" />
11+
<h1 style={{ fontSize: 32, textWrap: "nowrap" }}>kube-score</h1>
12+
</div>
13+
14+
<div style={{ display: 'flex', gap: 16, alignItems: "center", fontSize: 16, flex: 1, flexShrink: 0 }}>
15+
<div style={{ flex: 1 }}></div>
16+
<a href="https://github.com/zegl/kube-score">GitHub</a>
17+
<a href="https://github.com/zegl/kube-score">README</a>
18+
<a href="https://github.com/zegl/kube-score/blob/master/README_CHECKS.md">Docs</a>
19+
</div>
20+
1121
</div>
1222

1323
<div style={{ fontSize: 14 }}>
@@ -28,8 +38,19 @@ function App() {
2838
</div>
2939

3040
<Run />
31-
</>
41+
</RootContainer>
3242
)
3343
}
3444

45+
46+
const RootContainer = styled.div`
47+
margin: 0 auto;
48+
padding: 0.5;
49+
text-align: left;
50+
51+
@media (min-width: 1024px) {
52+
padding: 2rem;
53+
}
54+
`
55+
3556
export default App

0 commit comments

Comments
 (0)