-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a1017c
commit 3c41858
Showing
6 changed files
with
143 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<footer> | ||
<div class="content"> | ||
© {new Date().getFullYear()}, Simon Stefan Barth | <a href='https://github.com/Data5tream' target='_blank' rel='noreferrer'>Github</a> | ||
</div> | ||
</footer> | ||
|
||
<style> | ||
footer { | ||
width: 100%; | ||
padding: 16px 0 8px; | ||
background: var(--c-black); | ||
color: var(--c-white); | ||
} | ||
.content { | ||
max-width: 1400px; | ||
margin: 0 auto; | ||
font-family: monospace; | ||
font-size: 16px; | ||
} | ||
a, a:visited { | ||
color: var(--c-white); | ||
} | ||
a:hover, a:active { | ||
background: var(--c-white); | ||
color: var(--c-black); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script lang="ts"> | ||
let iconClass = ''; | ||
export let status; | ||
const getStatusClass = (status: number): string => { | ||
let classString = ''; | ||
if (status === 200) { | ||
classString += ' green'; | ||
} else if (status >= 201 && status < 400) { | ||
classString += ' yellow'; | ||
} else if (status >= 400) { | ||
classString += ' red'; | ||
} | ||
return classString; | ||
}; | ||
$: if (status) iconClass = getStatusClass(status); | ||
</script> | ||
|
||
<span class={iconClass} /> | ||
|
||
<style> | ||
span { | ||
display: inline-block; | ||
height: 0.8em; | ||
width: 0.8em; | ||
border-radius: 50%; | ||
background: var(--c-gray); | ||
} | ||
.green { | ||
background: var(--c-green); | ||
} | ||
.yellow { | ||
background: var(--c-yellow); | ||
} | ||
.red { | ||
background: var(--c-red); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
:root { | ||
--c-white: #ddd; | ||
--c-black: #333; | ||
--c-gray: #666; | ||
--c-green: #4caf50; | ||
--c-yellow: #ffeb3b; | ||
--c-red: #f44336; | ||
} | ||
|
||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
.app { | ||
display: grid; | ||
min-height: 100vh; | ||
grid-template-rows: 1fr auto; | ||
} | ||
|
||
@keyframes blink { | ||
0% { | ||
opacity: 1; | ||
} | ||
50% { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters