Skip to content

Commit

Permalink
web: add header links
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Jul 12, 2024
1 parent baf9346 commit cfc141f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
5 changes: 0 additions & 5 deletions web/src/App.css

This file was deleted.

33 changes: 27 additions & 6 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
import styled from 'styled-components'
import kubeScoreLogo from './assets/logo.svg'
import './App.css'
import Run from './Run'

function App() {
return (
<>
<div style={{ display: 'flex', gap: 8, alignItems: "center" }}>
<img src={kubeScoreLogo} style={{ height: 60 }} alt="kube-score logo" />
<h1 style={{ fontSize: 32 }}>kube-score</h1>
<RootContainer>
<div style={{ display: 'flex', gap: 16, alignItems: "center", justifyItems: "center", justifyContent: "space-between", flex: 1, flexShrink: 0, flexWrap: "wrap", width: "100%" }}>
<div style={{ display: 'flex', gap: 8, alignItems: "center", flex: 1, flexShrink: 0, }}>
<img src={kubeScoreLogo} style={{ height: 60 }} alt="kube-score logo" />
<h1 style={{ fontSize: 32, textWrap: "nowrap" }}>kube-score</h1>
</div>

<div style={{ display: 'flex', gap: 16, alignItems: "center", fontSize: 16, flex: 1, flexShrink: 0 }}>
<div style={{ flex: 1 }}></div>
<a href="https://github.com/zegl/kube-score">GitHub</a>
<a href="https://github.com/zegl/kube-score">README</a>
<a href="https://github.com/zegl/kube-score/blob/master/README_CHECKS.md">Docs</a>
</div>

</div>

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

<Run />
</>
</RootContainer>
)
}


const RootContainer = styled.div`
margin: 0 auto;
padding: 0.5;
text-align: left;
@media (min-width: 1024px) {
padding: 2rem;
}
`

export default App

0 comments on commit cfc141f

Please sign in to comment.