update startpage extensively
This commit is contained in:
parent
c581d02119
commit
f04468a961
4
startpage/README.md
Normal file
4
startpage/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# [Homepage](https://danggoodcode.com/startpage)
|
||||||
|
Homepage avaliable for use now at danggoodcode.com/startpage
|
||||||
|
|
||||||
|
![homepage](https://i.redd.it/cbnzq36zj3601.gif)
|
BIN
startpage/favicon.png
Normal file
BIN
startpage/favicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -1,142 +1,237 @@
|
|||||||
<html>
|
<!DOCTYPE html>
|
||||||
<head>
|
<html lang="en">
|
||||||
<title>main</title>
|
|
||||||
|
<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">
|
||||||
|
|
||||||
|
<title>Home</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {background: #001;font-family: 'Hack', sans-serif;font-style: normal;color:#00a492;margin: 0px;}
|
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
|
||||||
|
|
||||||
/*.keepcentered {position: relative;center: 100%;top: 30%;width: 25%;height: 5%;margin-left: 30%; margin-top: 5%;font-weight: 100;}*/
|
body {
|
||||||
.keepcentered{position: absolute; top: 10%; left: 10%; right: 10%}
|
background-color: #4b6855;
|
||||||
|
margin: 0px;
|
||||||
td, tr {width: 25%;text-align: left; font-size: 30px}
|
}
|
||||||
|
.container {
|
||||||
a {font-family: 'Hack', sans-serif;font-weight: 100;color : #999;}
|
width: 100%;
|
||||||
a:hover{color: #eee;}
|
height: 100vh;
|
||||||
a:link {text-decoration : none;text-shadow: 0px 0px 0px #000;}
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
#titles {font-size: 40px;color:#00a492}
|
justify-content: center;
|
||||||
#time {font-size: 70px;color:#00a492}
|
flex-direction: column;
|
||||||
|
}
|
||||||
.event {width: 155px;height:130px;float:left;border: 1px solid #4d6774;padding: 0px 5px;}
|
#clock {
|
||||||
.event h5 {font-size:13px;padding: 8px 3px;margin:3px 0;color:#756f7b;}
|
font-family: sans-serif;
|
||||||
.event p {font-family: 'Roboto', sans-serif;font-weight: 100;color : #999;font-size: 13px;}
|
font-size: 3.5rem;
|
||||||
|
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;
|
||||||
|
width: 50%;
|
||||||
|
margin: 1em 0em;
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 960px) {
|
||||||
|
.container {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
#clock {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
.container>.bookmark-container {
|
||||||
|
flex-direction: column;
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
.bookmark-container>.bookmark-set {
|
||||||
|
width: auto;
|
||||||
|
margin: 1em 0em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.bookmark-set {
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #272727;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-family: "Roboto Mono";
|
||||||
|
font-size: 1.25rem;
|
||||||
|
height: auto;
|
||||||
|
margin: 0em .5em;
|
||||||
|
}
|
||||||
|
.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;
|
||||||
|
color: #8c8c8b;
|
||||||
|
display: block;
|
||||||
|
margin: .5em 0em;
|
||||||
|
}
|
||||||
|
.bookmark:hover {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
<link href="favicon.png" rel="shortcut icon" type="image/x-icon" />
|
||||||
|
</head>
|
||||||
|
|
||||||
<body onload="updateClock();">
|
<body>
|
||||||
<div class="keepcentered">
|
<div id="search">
|
||||||
<center><div id="time"></div></center>
|
<input id="search-field" type="text" name="search-field" onkeypress="return search(event)" />
|
||||||
<p>
|
</div>
|
||||||
<center>
|
<div class="container">
|
||||||
<table width ="100%" border="0px">
|
<div id="clock"></div>
|
||||||
<tr>
|
<div class="bookmark-container">
|
||||||
<td id="titles">Faves</td>
|
<div class="bookmark-set">
|
||||||
<td id="titles">Google</td>
|
<div class="bookmark-title">Daily</div>
|
||||||
<td id="titles">Coding</td>
|
<div class="bookmark-inner-container">
|
||||||
<td id="titles">News</td>
|
<a class="bookmark" href="https://todoist.com/" target="_blank">Todoist</a>
|
||||||
</tr>
|
<a class="bookmark" href="https://mail.google.com/" target="_blank">gMail</a>
|
||||||
<tr>
|
<a class="bookmark" href="https://drive.google.com/" target="_blank">gDrive</a>
|
||||||
<td><a href="https://de.todoist.com/app">Todoist</a></td>
|
<a class="bookmark" href="https://keep.google.com/" target="_blank">gKeep</a>
|
||||||
<td><a href="http://www.gmail.com">gMail</a></td>
|
</div>
|
||||||
<td><a href="http://programarcadegames.com/">Pygame</a></td>
|
</div>
|
||||||
<td><a href="http://www.faz.net">Faz</a></td>
|
<div class="bookmark-set">
|
||||||
</tr>
|
<div class="bookmark-title">Media</div>
|
||||||
<tr>
|
<div class="bookmark-inner-container">
|
||||||
<td><a href="http://www.youtube.com/feed/subscriptions">YouTube</a></td>
|
<a class="bookmark" href="https://youtube.com" target="_blank">Youtube</a>
|
||||||
<td><a href="http://drive.google.com">gDrive</a></td>
|
<a class="bookmark" href="https://play.spotify.com" target="_blank">Spotify</a>
|
||||||
<td><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript">JS</a></td>
|
<a class="bookmark" href="https://musicforprogramming.net" target="_blank">mfp();</a>
|
||||||
<td><a href="http://www.golem.de">golem</td>
|
<a class="bookmark" href="https://youtube.com" target="_blank">Youtube</a>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
</div>
|
||||||
<td><a href="http://www.reddit.com/r/unixporn">r/unixporn</a></td>
|
<div class="bookmark-set">
|
||||||
<td><a href="https://www.google.com/calendar/">gCal</a></td>
|
<div class="bookmark-title">Reddit</div>
|
||||||
<td><a href="https://msdn.microsoft.com/de-de/library/618ayhy6.aspx">C#</a></td>
|
<div class="bookmark-inner-container">
|
||||||
<td><a href="http://news.ycombinator.com">HN</a></td>
|
<a class="bookmark" href="https://reddit.com/r/linux" target="_blank">/r/linux</a>
|
||||||
</tr>
|
<a class="bookmark" href="https://reddit.com/r/thinkpad" target="_blank">/r/thinkpad</a>
|
||||||
<tr>
|
<a class="bookmark" href="https://reddit.com/r/games" target="_blank">/r/games</a>
|
||||||
<td><a href="http://www.reddit.com/r/linux">r/linux</a></td>
|
<a class="bookmark" href="https://reddit.com/r/unixporn" target="_blank">/r/unixporn</a>
|
||||||
<td><a href="http://www.keep.google.com">gKeep</td>
|
<a class="bookmark" href="https://reddit.com/r/worldnews" target="_blank">/r/worldnews</a>
|
||||||
<td><a href="https://gist.github.com/">GistHub</a></td>
|
</div>
|
||||||
<td><a href="http://www.heise.de">heise</a></td>
|
</div>
|
||||||
</tr>
|
<div class="bookmark-set">
|
||||||
<tr>
|
<div class="bookmark-title">Social</div>
|
||||||
<td><a href="http://reddit.com/r/mechanicalkeyboards">r/MK</a></td>
|
<div class="bookmark-inner-container">
|
||||||
<td><!-- --></td>
|
<a class="bookmark" href="https://web.whatsapp.com" target="_blank">Whatsapp</a>
|
||||||
<td><a href="https://github.com/">Github</a></td>
|
<a class="bookmark" href="https://discordapp.com/channels/@me" target="_blank">discord</a>
|
||||||
<td><a href="http://theregister.co.uk">Register</a></td>
|
<a class="bookmark" href="https://chaospott.de/status.html" target="_blank">foobar Door</a>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
</div>
|
||||||
<td><!-- --></td>
|
<div class="bookmark-set">
|
||||||
<td><!-- --></td>
|
<div class="bookmark-title">Work</div>
|
||||||
<td><a href="http://trello.com">Trello</a></td>
|
<div class="bookmark-inner-container">
|
||||||
<td><a href="http://www.facebook.com">Facebook</a></td>
|
<a class="bookmark" href="https://mari.edatasystems.de" target="_blank">mari</a>
|
||||||
</tr>
|
<a class="bookmark" href="http://192.168.0.10:83" target="_blank">docuwiki</a>
|
||||||
</table>
|
<a class="bookmark" href="http://hvgese010:8081/tfs" target="_blank">TFS</a>
|
||||||
</center>
|
</div>
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div class="bookmark-set">
|
||||||
<center>
|
<div class="bookmark-title">News</div>
|
||||||
<table width="100%" border="0px">
|
<div class="bookmark-inner-container">
|
||||||
<tr>
|
<a class="bookmark" href="http://www.heise.de" target="_blank">heise</a>
|
||||||
<td id="titles">Work</td>
|
<a class="bookmark" href="http://www.golem.de" target="_blank">golem</a>
|
||||||
<td id="titles">various</td>
|
<a class="bookmark" href="https://news.ycombinator.com/" target="_blank">HackerNews</a>
|
||||||
<td id="titles">Communication</td>
|
</div>
|
||||||
</tr>
|
</div>
|
||||||
<tr>
|
<div class="bookmark-set">
|
||||||
<td><a href="http://hvgese010:8081/tfs/VS2015/Docusuite/_dashboards">Dash</a></td>
|
<div class="bookmark-title">Programming</div>
|
||||||
<td><a href="https://open.spotify.com/browse">Spotify</a></td>
|
<div class="bookmark-inner-container">
|
||||||
<td><a href="https://web.whatsapp.com/">WhatsApp</a></td>
|
<a class="bookmark" href="https://reddit.com/r/learnprogramming" target="_blank">/r/learnprog.</a>
|
||||||
</tr>
|
<a class="bookmark" href="https://github.com/" target="_blank">Github</a>
|
||||||
<tr>
|
<a class="bookmark" href="https://gist.github.com/" target="_blank">gisthub</a>
|
||||||
<td><a href="http://mari.edatasystems.de">mari</a></td>
|
</div>
|
||||||
<td><a href="http://my.jdownloader.org">My jd2</a></td>
|
</div>
|
||||||
<td><a href="https://discordapp.com/channels/@me">discord</a></td>
|
</div>
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><a href="http://127.0.0.1:8384">syncthing</a></td>
|
|
||||||
<td><a href="http://musicforprogramming.net/">mfp();</a></td>
|
|
||||||
<td><a href="http://flagshipgaming.com">Flagship</a> <a href="https://flagshipgaming.com/events/">cal</a></td>
|
|
||||||
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><a href="https://mese.webuntis.com/WebUntis/index.do;jsessionid=05330733B40F3C0F68FE76AC9BA06BD9#main">nixdorf_bk_essen</a></td>
|
|
||||||
<td><a href="https://getpocket.com/a/queue">pocket</a></td>
|
|
||||||
<td><a href="https://chaospott.de/status.html">Door Status</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td></td>
|
|
||||||
<td><a href="http://yavin:9090"/>Cockpit</td>
|
|
||||||
<td></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</center>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
|
||||||
<script>
|
<script>
|
||||||
/*
|
// Search on enter key event
|
||||||
Update the clock on a regular interval
|
function search(e) {
|
||||||
*/
|
if (e.keyCode == 13) {
|
||||||
function updateClock() {
|
var val = document.getElementById("search-field").value;
|
||||||
Date.getMinutesTwoDigits = function()
|
window.open("https://google.com/search?q=" + val);
|
||||||
{
|
|
||||||
var retval = now.getMinutes();
|
|
||||||
if (retval < 10) return ("0" + retval.toString());
|
|
||||||
else return retval.toString();
|
|
||||||
}
|
}
|
||||||
Date.getHoursModTwelve = function()
|
|
||||||
{
|
|
||||||
return now.getHours();
|
|
||||||
}
|
}
|
||||||
var ampm;
|
// Get current time and format
|
||||||
var now = new Date(),
|
function getTime() {
|
||||||
time = Date.getHoursModTwelve() + ':' + Date.getMinutesTwoDigits();
|
let date = new Date(),
|
||||||
document.getElementById('time').innerHTML = ["", time].join('');
|
min = date.getMinutes(),
|
||||||
setTimeout(updateClock, 1000);
|
hour = date.getHours();
|
||||||
|
|
||||||
|
return "" +
|
||||||
|
(hour < 10 ? ("0" + hour) : hour) + ":" +
|
||||||
|
(min < 10 ? ("0" + min) : min);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.onload = () => {
|
||||||
|
document.getElementById("clock").innerHTML = getTime();
|
||||||
|
// Set clock interval to tick clock
|
||||||
|
setInterval(() => {
|
||||||
|
document.getElementById("clock").innerHTML = getTime();
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener("keydown", event => {
|
||||||
|
if (event.keyCode == 32) { // Spacebar code to open search
|
||||||
|
document.getElementById('search').style.display = 'flex';
|
||||||
|
document.getElementById('search-field').focus();
|
||||||
|
} else if (event.keyCode == 27) { // Esc to close search
|
||||||
|
document.getElementById('search-field').value = '';
|
||||||
|
document.getElementById('search-field').blur();
|
||||||
|
document.getElementById('search').style.display = 'none';
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
120
startpage/styles.css
Normal file
120
startpage/styles.css
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
|
||||||
|
|
||||||
|
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;
|
||||||
|
font-size: 3.5rem;
|
||||||
|
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;
|
||||||
|
width: 50%;
|
||||||
|
margin: 1em 0em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 960px) {
|
||||||
|
.container {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
#clock {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
.container > .bookmark-container {
|
||||||
|
flex-direction: column;
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
.bookmark-container > .bookmark-set {
|
||||||
|
width: auto;
|
||||||
|
margin: 1em 0em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bookmark-set{
|
||||||
|
padding: 1em;
|
||||||
|
background-color: #272727;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-family: "Roboto Mono";
|
||||||
|
font-size: 1.25rem;
|
||||||
|
height: auto;
|
||||||
|
margin: 0em .5em;
|
||||||
|
}
|
||||||
|
.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;
|
||||||
|
color: #8c8c8b;
|
||||||
|
display:block;
|
||||||
|
margin: .5em 0em;
|
||||||
|
}
|
||||||
|
.bookmark:hover {
|
||||||
|
color: #fff;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user