Minor edits.

This commit is contained in:
Derek Taylor 2020-03-25 17:40:47 -05:00
parent d1d8e9db74
commit b2cf9b753d
6 changed files with 506 additions and 0 deletions

151
.surf/html/homepage.html Normal file
View File

@ -0,0 +1,151 @@
<!DOCTYPE html>
<html lang="en">
<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>
<link rel="stylesheet" href="../styles/homepage.css">
<link href="favicon.png" rel="shortcut icon" type="image/x-icon" />
</head>
<body>
<div id="search">
<input id="search-field" type="text" name="search-field"/>
</div>
<div class="container">
<div id="clock"></div>
<div class="weather-container">
<div class="row">
<div id="weather-description"class="inline"></div>
<div class="inline">-</div>
<div id="temp" class="inline"></div>
</div>
</div>
<div class="bookmark-container">
<div class="bookmark-set">
<div class="bookmark-title">Linux News</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://distrotube.com/" target="_blank">DistroTube.com</a>
<a class="bookmark" href="https://www.linuxtoday.com/" target="_blank">LinuxToday</a>
<a class="bookmark" href="https://www.linuxinsider.com/" target="_blank">LinuxInsider</a>
<a class="bookmark" href="https://omgubuntu.co.uk/" target="_blank">OMG Ubuntu</a>
<a class="bookmark" href="https://itsfoss.com/" target="_blank">It's Foss</a>
<a class="bookmark" href="https://phoronix.com/" target="_blank">Phoronix</a>
<a class="bookmark" href="https://www.zdnet.com/topic/linux/" target="_blank">ZDNet</a>
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Arch Linux</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://www.archlinux.org/" target="_blank">Arch Homepage</a>
<a class="bookmark" href="https://wiki.archlinux.org/" target="_blank">Arch Wiki</a>
<a class="bookmark" href="https://www.archlinux.org/packages/" target="_blank">Arch Packages</a>
<a class="bookmark" href="https://aur.archlinux.org/" target="_blank">AUR Home</a>
<a class="bookmark" href="https://bugs.archlinux.org/" target="_blank">Arch Bugs</a>
<a class="bookmark" href="https://bbs.archlinux.org/" target="_blank">Arch Forums</a>
<a class="bookmark" href="https://www.archlinux.org/planet/" target="_blank">Planet Arch</a>
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Suckless</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://git.suckless.org/" target="_blank">Suckless Homepage</a>
<a class="bookmark" href="https://git.suckless.org/" target="_blank">Suckless Source Code</a>
<a class="bookmark" href="https://dwm.suckless.org/" target="_blank">dwm</a>
<a class="bookmark" href="https://st.suckless.org/" target="_blank">st</a>
<a class="bookmark" href="https://tools.suckless.org/dmenu/" target="_blank">dmenu</a>
<a class="bookmark" href="https://surf.suckless.org/" target="_blank">surf</a>
<a class="bookmark" href="https://tools.suckless.org/tabbed/" target="_blank">tabbed</a>
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Social & Video</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://youtube.com/c/DistroTube" target="_blank">Youtube</a>
<a class="bookmark" href="https://lbry.tv/@DistroTube:2" target="_blank">LBRY</a>
<a class="bookmark" href="https://www.patreon.com/distrotube" target="_blank">Patreon</a>
<a class="bookmark" href="https://gitlab.com/dwt1" target="_blank">GitLab</a>
<a class="bookmark" href="https://github.com" target="_blank">GitHub</a>
<a class="bookmark" href="https://mastodon.technology/@distrotube" target="_blank">Mastodon</a>
<a class="bookmark" href="https://diasp.org/stream" target="_blank">Diaspora</a>
<a class="bookmark" href="https://netflix.com" target="_blank">Netflix</a>
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Reddit</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://reddit.com/r/linux" target="_blank">/r/linux</a>
<a class="bookmark" href="https://reddit.com/r/archlinux" target="_blank">/r/archlinux</a>
<a class="bookmark" href="https://reddit.com/r/commandline" target="_blank">/r/commandline</a>
<a class="bookmark" href="https://reddit.com/r/linux4noobs" target="_blank">/r/linux4noobs</a>
<a class="bookmark" href="https://reddit.com/r/linuxquestions" target="_blank">/r/linuxquestions</a>
<a class="bookmark" href="https://reddit.com/r/linuxmemes" target="_blank">/r/linuxmemes</a>
<a class="bookmark" href="https://reddit.com/r/suckless" target="_blank">/r/suckless</a>
<a class="bookmark" href="https://reddit.com/r/unixporn" target="_blank">/r/unixporn</a>
<a class="bookmark" href="https://reddit.com/r/vim" target="_blank">/r/vim</a>
<a class="bookmark" href="https://reddit.com/r/emacs" target="_blank">/r/emacs</a>
</div>
</div>
</div>
</div>
<script>
// Search on enter key event
document.getElementById("search-field").addEventListener("keydown", event => {
if (event.keyCode === 13) {
var val = document.getElementById("search-field").value;
window.open("https://google.com/search?q=" + val);
}
});
// Get current time and format
getTime = () => {
let date = new Date(),
min = date.getMinutes(),
sec = date.getSeconds(),
hour = date.getHours();
return "" +
(hour < 10 ? ("0" + hour) : hour) + ":" +
(min < 10 ? ("0" + min) : min) + ":" +
(sec < 10 ? ("0" + sec) : sec);
}
window.onload = () => {
let xhr = new XMLHttpRequest();
// Request to open weather map
xhr.open('GET', 'http://api.openweathermap.org/data/2.5/weather?id=4737316&units=imperial&appid=e5b292ae2f9dae5f29e11499c2d82ece');
xhr.onload = () => {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
let json = JSON.parse(xhr.responseText);
console.log(json);
document.getElementById("temp").innerHTML = json.main.temp.toFixed(0) + " F";
document.getElementById("weather-description").innerHTML = json.weather[0].description;
} else {
console.log('error msg: ' + xhr.status);
}
}
}
xhr.send();
// Set up the clock
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>
</body>
</html>

0
.surf/script.js Normal file
View File

155
.surf/styles/archlinux.css Normal file
View File

@ -0,0 +1,155 @@
body {
font-size: 13px !important;
background: #282a36 !important;
color: #d0d0d0 !important;
}
a {
color: #9cc4ff !important;
}
#archnavbar {
min-height: 40px !important;
padding: 10px 15px !important;
background: #282a36 !important;
border-bottom: 0px !important;
}
.article-content p, h4 a {
font-size: 1.3em !important;
}
h4, h4 a, li a {
font-size: 1.3em !important;
}
h4 a, li a, #content h1, #content h2, #content h3 {
color: #82aaff !important;
}
#news h3 a {
font-size: 1.3em !important;
background: #82aaff !important;
color: #282a36 !important;
}
h3 span.arrow {
display: none !important;
}
#pkgsearch {
background: #9cc4ff !important;
}
label {
color: #282a36 !important;
}
.box {
font-size: 1.3em;
background: #000000 !important;
color: #d0d0d0 !important;
border: 1px solid #555 !important;
}
pre {
background: #9cc4ff !important;
margin: 1em 0px !important;
border: 1px solid #666666 !important;
}
code {
color: #282a36 !important;
background: #9cc4ff !important;
}
p code {
color: #000 !important;
font-size: 12px !important;
background: #ff8b92 !important;
}
dl dt{
color: #ff8b92 !important;
font-size: 1.2em;
}
dd a{
color: #82aaff !important;
font-size: 1.2em;
}
/* ARCH WIKI */
#mw-panel .portal .body li {
font-size: 0.9em !important;
}
#mw-panel .portal h3 {
color: #ff8b92 !important;
font-size: 0.9em !important;
}
#content {
background: #282a36 !important;
border: none !important;
}
#toc, .toc, .mw-warning, .toccolours {
background-color: #000000 !important;
border: 1px solid #d7dfe3 !important;
color: #d0d0d0 !important;
}
.tocnumber, .toctogglelabel {
color: #d0d0d0 !important;
}
.mw-body-content p {
color: #d0d0d0 !important;
}
div#mw-head {
top: 38px !important;
}
div.vectorTabs li.selected {
border: 1px solid #666666 !important;
border-bottom-color: #000000 !important;
background-color: #000000 !important;
padding-bottom: 20px !important;
}
.vectorTabs span {
background: none !important;
}
.catlinks {
border: 1px solid #666666 !important;
background-color: #000000 !important;
}
/* AUR */
.results th {
background-color: #282a36 !important;
}
.results tr:nth-child(2n+1), #article-list tr:nth-child(2n+1) {
background: #282a36 !important;
}
.results tr:nth-child(2n), #article-list tr:nth-child(2n) {
background: #1f212a !important;
}
/* ARCH FORUMS */
#brdmenu, #brdmenu a {
background: #000000 !important;
border-color: #444444 !important;
}
#brdmenu.inbox {
margin-left: 30px !important;
}
.pun, .punwrap {
background: #282a36 !important;
border: none !important;
}
.pun .blocktable th {
background: #000000 !important;
border-color: #000 !important;
color: #ff8b92 !important;
}
#punindex .blocktable h2 {
font-size: 1.2em !important;
color: #ff8b92 !important;
}
tr.rowodd {
background: #282a36 !important;
}
tr.roweven {
background: #282a36 !important;
}
.pun .blocktable td {
border-color: #444444 !important;
}

View File

@ -0,0 +1,27 @@
body {
font-size: 13px;
background-color: #282a36 !important;
color: #d0d0d0 !important;
}
#main-header {
background-color: #282a36 !important;
margin: 0;
}
#et-navigation > ul > li > a {
color: #c3e88d !important;
}
.widget_text .textwidget {
background-color: #434758 !important;
}
h4.widgettitle {
color: #d0d0d0 !important;
background-color: #434758 !important;
}
.textwidget p {
color: #d0d0d0 !important;
}

View File

@ -0,0 +1,48 @@
body {
font-size: 13px;
background-color: #282a36 !important;
background-image: none !important;
color: #d0d0d0 !important;
}
h1 {
color: #e1acff !important;
}
.above {
border: 0px !important;
background: #282a36 !important;
}
.backhead {
background: #282a36 !important;
border: 0px !important;
box-shadow: inset 0px -1px 0 #282a36 !important;
}
.headerbar {
background: #282a36 !important;
}
.site-description p {
color: #c3e88d !important;
}
div#content {
background: #282a36 !important;
}
div.forabg {
background: #22232e !important;
}
dl.row-item {
color: #d0d0d0;
text-shadow: none;
}
ul.topiclist {
background: # !important;
}
li.row {
background-color: #282a36 !important;
padding: 4px;
text-shadow: none;
}
a.forumtitle {
color: #e1acff !important;
text-shadow: none;
}

125
.surf/styles/homepage.css Normal file
View File

@ -0,0 +1,125 @@
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Anton');
body {
background-color: #282a36;
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: 4.0rem;
font-weight: 600;
font-family: "Anton";
color: #fff;
margin-bottom: .25em;
}
#search {
width: 100%;
height: 100vh;
background-color: #000000;
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: #000000;
border: solid 0px #000000;
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: #000000;
padding: 1em;
border-radius: 3px;
font-family: "Roboto Mono";
font-size: 1.2rem;
color: #fff;
text-align: center;
}
.inline {
display: inline-block;
}
.bookmark-container {
display: flex;
flex-direction: row;
justify-content: center;
width: 60%;
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: #000000;
border-radius: 3px;
font-family: "Roboto Mono";
font-size: .85rem;
width: 25%;
height: 16em;
margin: 0em .5em;
}
.bookmark-inner-container {
overflow-y: scroll;
height: 80%;
vertical-align: top;
}
.bookmark-title {
font-family: "Roboto";
font-size: 1.2rem;
font-weight: 600;
color: #ededed;
margin: 0em 0em .35em 0em;
}
.bookmark {
text-decoration: none;
color: #8c8c8b;
display:block;
margin: .4em 0em;
}
.bookmark:hover {
color: #fff;
}