Idk what I'm doing

I just put some files in here I hope I don't break anything
This commit is contained in:
TB-96 2020-04-07 14:55:37 +02:00 committed by GitHub
parent 8faf669bd3
commit 4b8a845e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 562 additions and 0 deletions

BIN
128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

286
assets/css/style.css Normal file
View File

@ -0,0 +1,286 @@
/*
* Evening Startpage
* Inspired by https://github.com/jeroenpardon/sui
* You can find it at https://github.com/TB-96/Evening-Startpage
* Made by TB-96 2020
*
*/
:root {
--color-theme: #2978ad;
--bg-primary: #212121;
--bg-secondary: rgba(21,21,21,.5);
--bg-hover: rgba(41,120,173,.5);
--color-primary: #eee;
--color-secondary: #74a7ca;
--color-success: #66BB6A;
--color-warning: #F57C00;
--color-danger: #DC3545;
--padding: 1rem;
--rounded: 0.25rem;
--shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.12)
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-size: 15px;
transition: opacity .3s;
font-family: "Open Sans";
}
html {
color: var(--color-primary);
background: var(--bg-primary);
}
body {
margin: 0 auto;
padding: 0;
}
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background: #4e4e4e;
}
::-webkit-scrollbar-thumb {
background: var(--bg-secondary);
}
a, a:visited {
color: var(--color-secondary);
text-decoration: none;
}
a:hover, a:focus {
text-decoration: underline;
cursor: pointer;
webkit-text-decoration-color: var(--color-text-acc);
webkit-text-decoration-skip: true;
}
#container {
margin: 1em auto 0;
width: 70%;
}
h1, h2 {
font-weight: 300;
margin: 0;
padding: 0;
}
h3, h4 {
text-transform: uppercase;
text-align: left;
color: var(--color-secondary);
}
h1 {
font-size: 4em;
font-weight: 700;
}
h3 {
font-size: 20px;
font-weight: 900;
padding: var(--padding);
}
h4 {
font-size: 1.1em;
font-weight: 400;
padding-bottom: .5rem;
}
#togglebookmarks {
text-decoration: none!important;
}
button {
background-color: var(--bg-hover);
color: #fff;
border: none;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 4px 2px;
cursor: pointer;
border-radius: 5rem;
text-transform: uppercase;
box-shadow: var(--shadow);
}
button:hover {
background-color: var(--color-theme);
}
/* ANIMATION */
@keyframes fadeseq{
100% {
opacity: 1;
}
}
.fade {
opacity: 0;
}
.fade {
animation: fadeseq .3s forwards;
}
.fade:nth-child(2) {
animation-delay: .4s;
}
/* HEADERS */
#header {
text-align: center;
}
#header-time, #header-date {
cursor: default;
}
#header-time {
font-size: 5em;
}
#header-date {
margin-top: -1rem;
margin-bottom: .5rem;
}
#header-quote {
margin-top: 1rem;
}
/* LINKS */
#apps-container {
display: grid;
grid-column-gap: 0px;
grid-row-gap: 0px;
grid-template-columns: 1fr 1fr 1fr 1fr;
}
#apps-container a {
text-decoration: none;
color: var(--color-primary);
}
.apps-item {
display: flex;
flex-direction: row;
flex-wrap: wrap;
height: 64px;
margin: .5rem;
box-shadow: var(--shadow);
background: var(--bg-secondary);
border-radius: var(--rounded);
-o-transition: background-color .3s;
-ms-transition: background-color .3s;
-moz-transition: background-color .3s;
-webkit-transition: background-color .3s;
/* ...and now for the proper property */
transition: background-color .3s;
}
.apps-item:hover {
background-color: var(--bg-hover)!important;
}
.apps-icon {
height: 64px;
margin: 0 1em;
padding-top: 13px;
}
.icon {
font-size: 2.5em;
}
.apps-text {
text-align: left;
display: flex;
flex-direction: column;
justify-content: center;
}
.apps-text span {
font-size: 1em;
font-weight: 500;
text-transform: uppercase;
text-decoration: none!important;
}
.apps-text span:nth-child(2n) {
color: var(--color-secondary);
font-size: 0.8em;
text-transform: lowercase;
}
/* BOOKMARKS */
#links-container {
display: grid;
flex-wrap: nowrap;
grid-column-gap: 20px;
grid-row-gap: 0px;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: auto;
}
.links-item {
line-height: 1.5rem;
margin-left: 1rem;
margin-bottom: 2em;
webkit-font-smoothing: antialiased;
}
.links-item a {
color: var(--color-primary);
display: block;
line-height: 2;
text-decoration: none;
padding-left: .5em;
-o-transition: padding .3s;
-ms-transition: padding .3s;
-moz-transition: padding .3s;
-webkit-transition: padding .3s;
transition: padding .3s;
}
.links-item a:hover {
color: var(--color-secondary);
padding-left: 1em;
}
/* MOBILE */
@media screen and (max-width: 1100px) {
#container {
width: 90%;
}
}
@media screen and (max-width: 858px) {
#apps-container {
grid-template-columns: 1fr 1fr 1fr;
width: 90vw;
}
#links-container {
grid-template-columns: 1fr 1fr 1fr;
}
}
@media screen and (max-width: 666px) {
#apps-container {
grid-column-gap: 0px;
grid-row-gap: 0px;
grid-template-columns: 1fr 1fr;
width: 90vw;
}
#links-container{
display: grid;
flex-wrap: nowrap;
grid-column-gap: 20px;
grid-row-gap: 0px;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
}
}

BIN
assets/img/fav.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

13
assets/js/iconify.js Normal file

File diff suppressed because one or more lines are too long

2
assets/js/jquery.js vendored Normal file

File diff suppressed because one or more lines are too long

56
assets/js/script.js Normal file
View File

@ -0,0 +1,56 @@
/*
* Evening Startpage
* Inspired by https://github.com/jeroenpardon/sui
* You can find it at https://github.com/TB-96/Evening-Startpage
* Made by TB-96 2020
*
*/
function startTime() {
var currentDate = new Date();
var hr = parseInt(currentDate.getHours());
var min = parseInt(currentDate.getMinutes());
//Add a zero in front of numbers<10
if (min < 10) {
min = "0" + min;
}
document.getElementById("header-time").innerHTML = hr + ":" + min;
var dateOptions = {
weekday: "long",
year: "numeric",
month: "long",
day: "numeric"
}
var date = currentDate.toLocaleDateString("en-GB", dateOptions);
document.getElementById("header-date").innerHTML = date;
var time = setTimeout(function(){ startTime() }, 60000);
}
const quotes = [
'Hello, world...',
'yeet',
'fuq'
];
document.getElementById("header-quote").innerText = quotes[
Math.floor(Math.random() * quotes.length)
];
$(document).ready(function(){
$("#togglebookmarks").click(function(){
$("#hiddenbookmarks").toggle();
});
});
document.addEventListener('click', function (event) {
// If the clicked element doesn't have the right selector, bail
if (!event.target.matches('#link')) return;
// Otherwise, run your code...
document.body.style.opacity = 0;
}, false);
document.getElementById("container").addEventListener("DOMContentLoaded", startTime());

205
index.html Normal file
View File

@ -0,0 +1,205 @@
<!doctype html>
<!--
*
* Evening Startpage
* Inspired by https://github.com/jeroenpardon/sui
* You can find it at https://github.com/TB-96/Evening-Startpage
* Made by TB-96 2020
*
-->
<html>
<head>
<title>New Tab</title>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="./assets/img/fav.png"/>
<link type="text/css" rel="stylesheet" href="./assets/css/style.css" media="screen, projection"/>
<script src="./assets/js/iconify.js" type="text/javascript"></script>
<script src="./assets/js/jquery.js" type="text/javascript"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</head>
<body>
<main id="container" class="fade">
<section id="header">
<h1 id="header-time">00:00</h1>
<h2 id="header-date">Date</h2>
<div id="header-quote">Thinking</div>
<div class="randompic"> </div>
</section>
<section id="apps">
<h3>> Frequent Websites</h3>
<div id="apps-container">
<a id="link" class="apps-item" href="https://facebook.com/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-facebook"></span>
</div>
<div class="apps-text">
<span>Facebook</span>
<span>facebook.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://www.instagram.com/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-instagram"></span>
</div>
<div class="apps-text">
<span>Instagram</span>
<span>instagram.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://twitter.com/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-twitter"></span>
</div>
<div class="apps-text">
<span>Twitter</span>
<span>twitter.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://www.youtube.com/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-youtube"></span>
</div>
<div class="apps-text">
<span>Youtube</span>
<span>youtube.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://www.twitch.tv/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-twitch"></span>
</div>
<div class="apps-text">
<span>Twitch</span>
<span>twitch.tv</span>
</div>
</a>
<a id="link" class="apps-item" href="https://mail.google.com/mail/u/0/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-google"></span>
</div>
<div class="apps-text">
<span>Gmail</span>
<span>gmail.com</span>
</div>
</a>
<a class="apps-item" onclick="location.href='https://discordapp.com/channels/@me';">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-discord"></span>
</div>
<div class="apps-text">
<span>Discord</span>
<span>discordapp.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://github.com/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-github"></span>
</div>
<div class="apps-text">
<span>Github</span>
<span>github.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://www.spotify.com">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-spotify"></span>
</div>
<div class="apps-text">
<span>Spotify</span>
<span>spotify.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://protonmail.com/login">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-at"></span>
</div>
<div class="apps-text">
<span>Protonmail</span>
<span>protonmail.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://www.netflix.com/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-netflix"></span>
</div>
<div class="apps-text">
<span>Netflix</span>
<span>netflix.com</span>
</div>
</a>
<a id="link" class="apps-item" href="https://stackoverflow.com/">
<div class="apps-icon">
<span class="iconify icon" data-icon="mdi-stackoverflow"></span>
</div>
<div class="apps-text">
<span>overflow</span>
<span>stackoverflow.com</span>
</div>
</a>
</div>
</section>
<section id="links">
<a id="togglebookmarks"><h3>> Bookmarks</h3></a>
<div id="links-container">
<div class="links-item">
<h4>University</h4>
<a id="link" href="https://">Moodle</a>
<a id="link" href="https://">Timetable</a>
<a id="link" href="https://">Teams</a>
</div>
<div class="links-item">
<h4>Chitchat</h4>
<a id="link" href="https://telegram.com/">Telegram</a>
<a id="link" href="https://www.whatsapp.com/">WhatsApp</a>
<a id="link" href="https://www.messenger.com/">Messenger</a>
</div>
<div class="links-item">
<h4>4chan</h4>
<a id="link" href="https://boards.4channel.org/wsg/">/wsg/ - Worksafe GIF</a>
<a id="link" href="https://boards.4channel.org/lit/">/lit/ - Literature</a>
<a id="link" href="https://boards.4channel.org/g/">/g/ - Technology</a>
</div>
<div class="links-item">
<h4>Reddit</h4>
<a id="link" href="https://www.reddit.com/r/wallpapers">r/wallpapers</a>
<a id="link" href="https://www.reddit.com/r/startpages">r/startpages</a>
<a id="link" href="https://www.reddit.com/r/unixporn">r/unixporn</a>
</div>
<div class="links-item">
<h4>Art</h4>
<a id="link" href="https://">DeviantArt</a>
<a id="link" href="https://">Artsy</a>
<a id="link" href="https://">Patreon</a>
</div>
<div class="links-item">
<h4>Finance</h4>
<a id="link" href="https://">Bank</a>
<a id="link" href="https://paypal.com/">PayPal</a>
</div>
<div class="links-item">
<h4>Web Hosting</h4>
<a id="link" href="https://">Website</a>
<a id="link" href="https://">VPS</a>
<a id="link" href="https://www.namecheap.com/">NameCheap</a>
</div>
<div class="links-item">
<h4>Other</h4>
<a id="link" href="https://imgur.com/">Imgur</a>
<a id="link" href="https://www.color-hex.com/">Color-Hex</a>
<a id="link" href="https://"></a>
</div>
<div id="hiddenbookmarks" style="display: none;">
<div class="links-item">
<h4>Forums</h4>
<a id="link" href="https://">AlternativeTo</a>
<a id="link" href="https://">Imdb</a>
<a id="link" href="https://linustechtips.com/main/">LTT</a>
</div>
</div>
</div>
</section>
</main>
<script src="./assets/js/script.js" type="text/javascript"></script>
</body>
</html>