➖ Removed dependencies and unused code
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
node_modules
|
|
@ -1,4 +1,4 @@
|
|||||||
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap");
|
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');
|
||||||
|
|
||||||
/* V A R I A B L E S */
|
/* V A R I A B L E S */
|
||||||
|
|
||||||
@ -49,7 +49,7 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: "Open Sans", sans-serif;
|
font-family: 'Open Sans', sans-serif;
|
||||||
transition: 0.2s ease-in-out;
|
transition: 0.2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Before Width: | Height: | Size: 670 KiB After Width: | Height: | Size: 670 KiB |
Before Width: | Height: | Size: 239 KiB After Width: | Height: | Size: 239 KiB |
Before Width: | Height: | Size: 269 KiB After Width: | Height: | Size: 269 KiB |
Before Width: | Height: | Size: 804 KiB After Width: | Height: | Size: 804 KiB |
Before Width: | Height: | Size: 950 KiB After Width: | Height: | Size: 950 KiB |
Before Width: | Height: | Size: 233 KiB |
100
config.js
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
// ╔╗ ╔═╗╔╗╔╔╦╗╔═╗
|
||||||
|
// ╠╩╗║╣ ║║║ ║ ║ ║
|
||||||
|
// ╚═╝╚═╝╝╚╝ ╩ ╚═╝
|
||||||
|
// ┌─┐┌─┐┌┐┌┌─┐┬┌─┐┬ ┬┬─┐┌─┐┌┬┐┬┌─┐┌┐┌
|
||||||
|
// │ │ ││││├┤ ││ ┬│ │├┬┘├─┤ │ ││ ││││
|
||||||
|
// └─┘└─┘┘└┘└ ┴└─┘└─┘┴└─┴ ┴ ┴ ┴└─┘┘└┘
|
||||||
|
|
||||||
|
const CONFIG = {
|
||||||
|
// ┌┐ ┌─┐┌─┐┬┌─┐┌─┐
|
||||||
|
// ├┴┐├─┤└─┐││ └─┐
|
||||||
|
// └─┘┴ ┴└─┘┴└─┘└─┘
|
||||||
|
|
||||||
|
name: 'John',
|
||||||
|
|
||||||
|
layout: 'bento',
|
||||||
|
|
||||||
|
imageBackground: false,
|
||||||
|
weatherIcons: 'dark',
|
||||||
|
openInNewTab: true,
|
||||||
|
|
||||||
|
// ┌─┐┌─┐┬─┐┌┬┐┌─┐
|
||||||
|
// │ ├─┤├┬┘ ││└─┐
|
||||||
|
// └─┘┴ ┴┴└──┴┘└─┘
|
||||||
|
|
||||||
|
cards: [
|
||||||
|
{
|
||||||
|
name: 'Github',
|
||||||
|
icon: 'github',
|
||||||
|
link: 'https://github.com/',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Mail',
|
||||||
|
icon: 'mail',
|
||||||
|
link: 'https://mail.protonmail.com/',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Calendar',
|
||||||
|
icon: 'calendar',
|
||||||
|
link: 'https://calendar.google.com/calendar/r',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Reddit',
|
||||||
|
icon: 'bookmark',
|
||||||
|
link: 'https://reddit.com',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Odysee',
|
||||||
|
icon: 'youtube',
|
||||||
|
link: 'https://odysee.com/',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
// ┬ ┬┌─┐┌┬┐┌─┐
|
||||||
|
// │ │└─┐ │ └─┐
|
||||||
|
// ┴─┘┴└─┘ ┴ └─┘
|
||||||
|
|
||||||
|
firstListIcon: 'music',
|
||||||
|
secondListIcon: 'coffee',
|
||||||
|
|
||||||
|
lists: {
|
||||||
|
firstList: [
|
||||||
|
{
|
||||||
|
name: 'Github',
|
||||||
|
link: 'https://github.com/',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Mail',
|
||||||
|
link: 'https://mail.protonmail.com/',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Calendar',
|
||||||
|
link: 'https://calendar.google.com/calendar/r',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Reddit',
|
||||||
|
link: 'https://reddit.com',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
secondList: [
|
||||||
|
{
|
||||||
|
name: 'Github',
|
||||||
|
link: 'https://github.com/',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Mail',
|
||||||
|
link: 'https://mail.protonmail.com/',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Calendar',
|
||||||
|
link: 'https://calendar.google.com/calendar/r',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Reddit',
|
||||||
|
link: 'https://reddit.com',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default CONFIG;
|
4124
package-lock.json
generated
24
package.json
@ -1,23 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "bento",
|
"name": "Bento",
|
||||||
"version": "1.3.0",
|
"version": "2.0.0",
|
||||||
"description": "A Simple Startpage",
|
"description": "🍱 Minimalist, elegant and hackable startpage inspired by the Bento box!",
|
||||||
"main": "index.js",
|
|
||||||
"scripts": {
|
|
||||||
"watch:sass": "node-sass sass/main.scss css/style.css -w",
|
|
||||||
"start": "npm-run-all --parallel watch:sass",
|
|
||||||
"compile:sass": "node-sass sass/main.scss css/style.comp.css",
|
|
||||||
"prefix:css": "postcss --use autoprefixer -b 'last 10 versions' css/style.comp.css -o css/style.prefix.css",
|
|
||||||
"compress:css": "node-sass css/style.prefix.css css/style.css --output-style compressed",
|
|
||||||
"build:css": "npm-run-all compile:sass prefix:css compress:css"
|
|
||||||
},
|
|
||||||
"author": "Miguel R. Ávila",
|
"author": "Miguel R. Ávila",
|
||||||
"license": "ISC",
|
"license": "ISC"
|
||||||
"devDependencies": {
|
|
||||||
"autoprefixer": "^7.1.4",
|
|
||||||
"concat": "^1.0.3",
|
|
||||||
"node-sass": "^4.5.3",
|
|
||||||
"npm-run-all": "^4.1.1",
|
|
||||||
"postcss-cli": "^4.1.1"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
330
sass/main.scss
@ -1,330 +0,0 @@
|
|||||||
// ___ _
|
|
||||||
// | _ ) ___ _ _| |_ ___
|
|
||||||
// | _ \/ -_) ' \ _/ _ \
|
|
||||||
// |___/\___|_||_\__\___/
|
|
||||||
//
|
|
||||||
// - Miguel R. Ávila
|
|
||||||
|
|
||||||
// This file is only for development
|
|
||||||
|
|
||||||
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');
|
|
||||||
// Responsive
|
|
||||||
$bp-largest: 75em;
|
|
||||||
$bp-large: 68.75em;
|
|
||||||
$bp-medium: 56.25em;
|
|
||||||
$bp-small: 37.5em;
|
|
||||||
$bp-smallest: 31.25em;
|
|
||||||
|
|
||||||
:root {
|
|
||||||
// Fonts
|
|
||||||
--fsg: 150px;
|
|
||||||
--fsm: 85px;
|
|
||||||
--fss: 30px;
|
|
||||||
--fses: 18px;
|
|
||||||
|
|
||||||
--accent: #186efdaa;
|
|
||||||
|
|
||||||
--bg: #f5f5f5;
|
|
||||||
--sbg: #e4e6e6;
|
|
||||||
--fg: #3a3a3a;
|
|
||||||
|
|
||||||
--imgbg: url(/img/wal.jpg);
|
|
||||||
|
|
||||||
--imgcol: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7));
|
|
||||||
|
|
||||||
@media only screen and (max-width: $bp-large) {
|
|
||||||
--fsg: 100px;
|
|
||||||
--fsm: 65px;
|
|
||||||
--fss: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.darktheme {
|
|
||||||
--accent: #186efd60;
|
|
||||||
|
|
||||||
--bg: #1e1f21;
|
|
||||||
--sbg: #2c2d31;
|
|
||||||
--fg: #d8dee9;
|
|
||||||
|
|
||||||
--imgcol: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-family: 'Open Sans', sans-serif;
|
|
||||||
font-size: 13.5px;
|
|
||||||
|
|
||||||
transition: 0.2s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
background-color: var(--bg);
|
|
||||||
|
|
||||||
background-image: var(--imgcol), var(--imgbg);
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#themeButton {
|
|
||||||
position: absolute;
|
|
||||||
margin: 2em 2em 0 0;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
|
|
||||||
color: var(--fg);
|
|
||||||
|
|
||||||
border: none;
|
|
||||||
border-radius: 5px;
|
|
||||||
|
|
||||||
padding: 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
background-color: #00000000;
|
|
||||||
|
|
||||||
-webkit-appearance: none;
|
|
||||||
-moz-appearance: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bicon {
|
|
||||||
width: 26px;
|
|
||||||
height: 26px;
|
|
||||||
}
|
|
||||||
.container {
|
|
||||||
width: 150vh;
|
|
||||||
height: 85vh;
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(4, 1fr);
|
|
||||||
grid-template-rows: repeat(4, 1fr);
|
|
||||||
|
|
||||||
grid-gap: 30px;
|
|
||||||
padding: 20px;
|
|
||||||
|
|
||||||
@media only screen and (max-width: $bp-large) {
|
|
||||||
grid-gap: 20px;
|
|
||||||
padding: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
& > * {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
box-shadow: 0 5px 7px rgba(#000000, 0.35);
|
|
||||||
border-radius: 5px;
|
|
||||||
background-color: var(--sbg);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
transform: translateY(-0.2rem);
|
|
||||||
box-shadow: 0 10px 10px rgba(#000000, 0.35);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.fblock {
|
|
||||||
grid-row: 1 / span 2;
|
|
||||||
grid-column: 1 / span 2;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
@media only screen and (max-width: $bp-large) {
|
|
||||||
grid-row: 1 / span 2;
|
|
||||||
grid-column: 1 / span 4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.sblock {
|
|
||||||
grid-column: 3 / span 2;
|
|
||||||
grid-row: 1 / span 2;
|
|
||||||
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
|
|
||||||
&__date {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
margin-top: 30px;
|
|
||||||
}
|
|
||||||
&__weather {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: $bp-large) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.clock {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#hour,
|
|
||||||
#separator,
|
|
||||||
#minutes {
|
|
||||||
font-size: var(--fsg);
|
|
||||||
font-weight: bolder;
|
|
||||||
color: var(--fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
#month,
|
|
||||||
#day {
|
|
||||||
font-size: var(--fsm);
|
|
||||||
font-weight: bold;
|
|
||||||
color: var(--fg);
|
|
||||||
}
|
|
||||||
#day {
|
|
||||||
margin-left: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#greetings {
|
|
||||||
font-size: var(--fses);
|
|
||||||
color: var(--fg);
|
|
||||||
|
|
||||||
@media only screen and (max-width: $bp-large) {
|
|
||||||
font-size: var(--fss);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.weather-icon img {
|
|
||||||
width: 80px;
|
|
||||||
height: 80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.temperature {
|
|
||||||
&-value p {
|
|
||||||
font-size: var(--fss);
|
|
||||||
font-weight: bolder;
|
|
||||||
margin-left: 15px;
|
|
||||||
color: var(--fg);
|
|
||||||
}
|
|
||||||
&-description p {
|
|
||||||
font-size: var(--fss);
|
|
||||||
margin-left: 15px;
|
|
||||||
color: var(--fg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.qlink {
|
|
||||||
grid-row: 3 / span 2;
|
|
||||||
grid-column: 1 / span 2;
|
|
||||||
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(3, 1fr);
|
|
||||||
grid-template-rows: repeat(2, 1fr);
|
|
||||||
|
|
||||||
grid-gap: 30px;
|
|
||||||
padding: 30px;
|
|
||||||
|
|
||||||
@media only screen and (max-width: $bp-large) {
|
|
||||||
grid-row: 3 / span 2;
|
|
||||||
grid-column: 1 / span 4;
|
|
||||||
|
|
||||||
grid-gap: 40px;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__icon {
|
|
||||||
width: 26px;
|
|
||||||
height: 26px;
|
|
||||||
color: var(--fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
&__link {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
background-color: var(--sbg);
|
|
||||||
width: 100%;
|
|
||||||
box-shadow: 0 5px 7px rgba(#000000, 0.35);
|
|
||||||
border-radius: 5px;
|
|
||||||
&-1 {
|
|
||||||
grid-row: 1;
|
|
||||||
grid-column: 1;
|
|
||||||
}
|
|
||||||
&-2 {
|
|
||||||
grid-row: 1;
|
|
||||||
grid-column: 2;
|
|
||||||
}
|
|
||||||
&-3 {
|
|
||||||
grid-row: 2;
|
|
||||||
grid-column: 1;
|
|
||||||
}
|
|
||||||
&-4 {
|
|
||||||
grid-row: 2;
|
|
||||||
grid-column: 2;
|
|
||||||
}
|
|
||||||
&-5 {
|
|
||||||
grid-row: 1;
|
|
||||||
grid-column: 3;
|
|
||||||
}
|
|
||||||
&-6 {
|
|
||||||
grid-row: 2;
|
|
||||||
grid-column: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: var(--accent);
|
|
||||||
transform: translateY(-0.2rem);
|
|
||||||
|
|
||||||
box-shadow: 0 10px 10px rgba(#000000, 0.35);
|
|
||||||
|
|
||||||
& svg {
|
|
||||||
stroke: var(--fg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.qlist {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
@media only screen and (max-width: $bp-large) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__1 {
|
|
||||||
grid-column: 3;
|
|
||||||
grid-row: 3 / span 2;
|
|
||||||
}
|
|
||||||
&__2 {
|
|
||||||
grid-column: 4;
|
|
||||||
grid-row: 3 / span 2;
|
|
||||||
}
|
|
||||||
&__head {
|
|
||||||
margin-top: 30px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
width: 30px;
|
|
||||||
color: var(--fg);
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
&__link {
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: var(--fses);
|
|
||||||
color: var(--fg);
|
|
||||||
margin-top: 1px;
|
|
||||||
padding: 6px 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
font-weight: bold;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background-color: var(--accent);
|
|
||||||
color: var(--fg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|