dotfiles/startpage/main.html

256 lines
10 KiB
HTML
Raw Normal View History

2018-06-18 11:08:45 +02:00
<!DOCTYPE html>
<html lang="en">
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
<title>Home</title>
<style type="text/css">
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
body {
background-color: #4b6855;
margin: 0px;
}
.container {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#clock {
font-family: sans-serif;
2018-06-24 09:28:29 +02:00
font-size: 4.5rem;
2018-06-18 11:08:45 +02:00
font-weight: 600;
font-family: "Roboto Mono";
color: #fff;
margin-bottom: .25em;
}
#search {
width: 100%;
height: 100vh;
background-color: #272727;
display: none;
position: absolute;
box-sizing: border-box;
flex-direction: column;
align-items: center;
justify-content: center;
}
#search-field {
width: 90%;
padding: .75em 1em;
box-sizing: border-box;
background-color: #272727;
border: solid 0px #272727;
font-family: "Roboto Mono";
font-size: 4rem;
color: #f2f2f2;
outline: none;
border-radius: 3px;
margin-bottom: 1em;
text-align: center;
}
.weather-container {
width: 30%;
background-color: #272727;
padding: 1em;
border-radius: 3px;
font-family: "Roboto Mono";
color: #fff;
text-align: center;
}
.inline {
display: inline-block;
}
.bookmark-container {
display: flex;
flex-direction: row;
justify-content: center;
2018-06-22 10:56:38 +02:00
width: 100%;
2018-06-18 11:08:45 +02:00
margin: 1em 0em;
}
2018-06-24 09:28:29 +02:00
@media only screen and (max-width: 1480px) {
2018-06-18 11:08:45 +02:00
.container {
2018-06-22 11:01:01 +02:00
height: auto;
2018-06-18 11:08:45 +02:00
}
#clock {
margin-top: 1em;
}
.container>.bookmark-container {
2018-06-22 10:56:38 +02:00
flex-wrap: wrap;
width: 80%;
2018-06-18 11:08:45 +02:00
}
.bookmark-container>.bookmark-set {
2018-07-16 11:13:17 +02:00
width: auto;
2018-06-22 10:56:38 +02:00
margin: 1em 0.5em;
2018-06-18 11:08:45 +02:00
}
}
.bookmark-set {
padding: 1em;
background-color: #272727;
border-radius: 3px;
font-family: "Roboto Mono";
2018-06-24 09:28:29 +02:00
font-size: 1.35rem;
2018-06-18 11:08:45 +02:00
height: auto;
margin: 0em .5em;
2018-07-05 10:59:10 +02:00
transition:box-shadow 100ms ease-in-out;
}
.bookmark-set:hover {
box-shadow: 0 0 8px rgba(255,255,255,0.9)
2018-06-18 11:08:45 +02:00
}
.bookmark-inner-container {
overflow-y: visible;
overflow-x: visible;
height: 80%;
vertical-align: top;
}
.bookmark-title {
font-size: 1.1rem;
font-weight: 600;
color: #fff;
margin: 0em 0em .35em 0em;
}
.bookmark {
text-decoration: none;
2018-06-24 09:28:29 +02:00
text-align: center;
2018-06-18 11:08:45 +02:00
color: #8c8c8b;
display: block;
margin: .5em 0em;
2018-06-24 09:28:29 +02:00
border: solid #464646 2px;
border-radius: 3px;
2018-06-18 11:08:45 +02:00
}
.bookmark:hover {
color: #fff;
2018-06-24 09:28:29 +02:00
background-color: #444444;
2018-07-20 13:17:15 +02:00
border: solid #444444 2px;
2018-06-18 11:08:45 +02:00
}
2018-07-03 13:02:38 +02:00
.box{
margin: 4px;
color: #aaaaaa;
}
2018-06-18 11:08:45 +02:00
</style>
<link href="favicon.png" rel="shortcut icon" type="image/x-icon" />
</head>
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
<body>
<div id="search">
<input id="search-field" type="text" name="search-field" onkeypress="return search(event)" />
</div>
<div class="container">
<div id="clock"></div>
<div class="bookmark-container">
<div class="bookmark-set">
<div class="bookmark-title">Daily</div>
<div class="bookmark-inner-container">
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://todoist.com/" ><p class="box">Todoist</p></a>
<a class="bookmark" href="https://mail.google.com/" ><p class="box">gMail</p></a>
<a class="bookmark" href="https://drive.google.com/" ><p class="box">gDrive</p></a>
<a class="bookmark" href="https://keep.google.com/" ><p class="box">gKeep</p></a>
2018-07-05 10:59:10 +02:00
<a class="bookmark" href="https://calendar.google.com/" ><p class="box">gCal</p></a>
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://getpocket.com/a/queue/list/" ><p class="box">Pocket</p></a>
2018-06-18 11:08:45 +02:00
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Media</div>
<div class="bookmark-inner-container">
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://youtube.com" ><p class="box">Youtube</p></a>
<a class="bookmark" href="https://play.spotify.com" ><p class="box">Spotify</p></a>
<a class="bookmark" href="https://musicforprogramming.net" ><p class="box">mfp();</p></a>
<a class="bookmark" href="http://yavin:81" ><p class="box">Heimdall</p></a>
2018-06-18 11:08:45 +02:00
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Reddit</div>
<div class="bookmark-inner-container">
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://reddit.com/r/linux" ><p class="box">/r/linux</p></a>
<a class="bookmark" href="https://reddit.com/r/thinkpad" ><p class="box">/r/thinkpad</p></a>
<a class="bookmark" href="https://reddit.com/r/games" ><p class="box">/r/games</p></a>
<a class="bookmark" href="https://reddit.com/r/unixporn" ><p class="box">/r/unixporn</p></a>
<a class="bookmark" href="https://reddit.com/r/worldnews" ><p class="box">/r/worldnews</p></a>
2018-06-18 11:08:45 +02:00
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Social</div>
<div class="bookmark-inner-container">
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://web.whatsapp.com" ><p class="box">Whatsapp</p></a>
2018-07-20 13:17:15 +02:00
<a class="bookmark" href="https://web.telegram.org" ><p class="box">Telegram</p></a>
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://discordapp.com/channels/@me" ><p class="box">discord</p></a>
<a class="bookmark" href="https://chaospott.de/status.html" ><p class="box">foobar&nbsp;Door</p></a>
2018-06-18 11:08:45 +02:00
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Work</div>
<div class="bookmark-inner-container">
2018-07-20 13:17:15 +02:00
<a class="bookmark" href="http://docusuite.de" ><p class="box">ds.de</p></a>
<a class="bookmark" href="http://docusuite.de/administrator" ><p class="box">dsAdmin</p></a>
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://mari.edatasystems.de" ><p class="box">mari</p></a>
<a class="bookmark" href="http://192.168.0.10:83" ><p class="box">docuwiki</p></a>
<a class="bookmark" href="http://hvgese010:8081/tfs" ><p class="box">TFS</p></a>
2018-06-18 11:08:45 +02:00
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">News</div>
<div class="bookmark-inner-container">
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="http://www.heise.de" ><p class="box">heise</p></a>
<a class="bookmark" href="http://www.golem.de" ><p class="box">golem</p></a>
<a class="bookmark" href="https://news.ycombinator.com/" ><p class="box">HackerNews</p></a>
<a class="bookmark" href="https://faz.net/" ><p class="box">FAZ</p></a>
<a class="bookmark" href="https://waz.de/" ><p class="box">WAZ</p></a>
2018-06-18 11:08:45 +02:00
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Programming</div>
<div class="bookmark-inner-container">
2018-07-03 13:02:38 +02:00
<a class="bookmark" href="https://reddit.com/r/learnprogramming" ><p class="box">/r/learnprog.</p></a>
<a class="bookmark" href="https://github.com/" ><p class="box">Github</p></a>
<a class="bookmark" href="https://gist.github.com/" ><p class="box">gisthub</p></a>
2018-07-04 11:59:05 +02:00
<a class="bookmark" href="https://regex101.com/" ><p class="box">regex101</p></a>
2018-07-16 11:13:17 +02:00
<a class="bookmark" href="http://extensionmethod.net/csharp" ><p class="box">extensions</p></a>
2018-06-18 11:08:45 +02:00
</div>
</div>
</div>
</div>
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
<script>
function search(e) {
if (e.keyCode == 13) {
var val = document.getElementById("search-field").value;
2018-06-24 09:28:29 +02:00
window.open(("https://google.com/search?q=" + val), "_self");
2018-06-18 11:08:45 +02:00
}
}
function getTime() {
let date = new Date(),
min = date.getMinutes(),
hour = date.getHours();
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
return "" +
(hour < 10 ? ("0" + hour) : hour) + ":" +
(min < 10 ? ("0" + min) : min);
}
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
window.onload = () => {
document.getElementById("clock").innerHTML = getTime();
setInterval(() => {
document.getElementById("clock").innerHTML = getTime();
}, 100);
}
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
document.addEventListener("keydown", event => {
2018-06-20 10:43:00 +02:00
if (event.keyCode == 32) {
2018-06-18 11:08:45 +02:00
document.getElementById('search').style.display = 'flex';
document.getElementById('search-field').focus();
2018-06-20 10:43:00 +02:00
} else if (event.keyCode == 27) {
2018-06-18 11:08:45 +02:00
document.getElementById('search-field').value = '';
document.getElementById('search-field').blur();
document.getElementById('search').style.display = 'none';
}
});
</script>
</body>
2017-01-16 23:51:03 +01:00
2018-06-18 11:08:45 +02:00
</html>