Bento/README.md

229 lines
6.2 KiB
Markdown
Raw Normal View History

![image](assets/img/header.png)
2021-07-21 13:00:15 -05:00
2021-08-18 22:06:42 -05:00
<p style="margin: -20px 0 30px">
<a href="https://www.buymeacoffee.com/migueravila" target="_blank" style='margin-right:0px; margin-top:5px'>
2021-08-20 14:32:43 -05:00
<img align="center" src="https://github.com/migueravila/Bento/blob/master/assets/img/donation.png" alt="donation" height="35px" />
2021-08-18 22:06:42 -05:00
</a>
<a href="https://migueravila.github.io/Bento/" target="_blank" style='margin-right:0px; margin-top:5px'>
2021-08-20 14:32:43 -05:00
<img align="center" src="https://github.com/migueravila/Bento/blob/master/assets/img/live.png" alt="live-preview" height="35px" />
2021-08-18 22:06:42 -05:00
</a>
</p>
2021-01-10 13:47:05 -06:00
2021-07-21 13:00:15 -05:00
<br />
## 👇 Index
- [👇 Index](#-index)
2021-09-11 22:25:24 -05:00
- [✨ Features](#-features)
- [🚀 Usage](#-usage)
- [As Home Page](#as-home-page)
- [As New Tab](#as-new-tab)
2021-07-20 22:31:19 -05:00
- [🎨 Customization](#-customization)
2021-07-20 22:37:04 -05:00
- [👋 General: Name, Image Background and Greetings](#-general-name-image-background-and-greetings)
- [🏷️ Button Links](#-button-links)
- [📑 List Links](#-list-links)
- [⛈️ Weather: Api Key, Icons and Unit](#-weather-api-key-icons-and-unit)
- [💛 Colors](#-colors)
2021-07-20 22:31:19 -05:00
2021-09-11 22:25:24 -05:00
## ✨ Features
2021-07-20 22:31:19 -05:00
- **Easy configuration** file.
2021-01-10 13:47:05 -06:00
- **Dark/Light** mode, you can toggle them and It'll be saved in local storage.
- **Clock and Date** format can be set to 24 hour (default) or 12 hour.
- **Greetings** are easy to modify.
- **Variables** for custom colors and font sizes in the `style.css` code.
2021-01-09 23:56:22 -06:00
- **Icons** all icons are from Feather Icons (Some others I made them with the Feather icons as a base)
2021-01-10 13:47:05 -06:00
- **Modular** javascript files for an easy read.
2020-08-14 13:04:38 -05:00
2021-09-11 22:25:24 -05:00
## 🚀 Usage
2020-08-14 13:04:38 -05:00
2021-09-11 22:25:24 -05:00
#### As Home Page
2020-10-10 20:48:16 -05:00
2020-08-14 13:04:38 -05:00
1. Fork this repo
2. Enable the Github Pages service `Settings > GitHub Pages > Source [master branch] > Save`
3. Set it as Home Page:
2021-01-09 23:56:22 -06:00
- Click the menu button. and select Options. Preferences.
- Click the Home panel.
- Click the menu next to Homepage and new windows and choose to show custom URLs and add your `Github Pages link`
2020-08-26 22:04:36 -05:00
2021-09-11 22:25:24 -05:00
#### As New Tab
2020-10-10 20:48:16 -05:00
2021-01-09 23:56:22 -06:00
You can use different Add-ons/Extensions for it
2020-08-31 23:12:44 -05:00
2021-01-09 23:56:22 -06:00
- If you use Firefox: [Custom New Tab Page](https://addons.mozilla.org/en-US/firefox/addon/custom-new-tab-page/?src=search)
- If you use Chromium (Brave, Vivaldi, Chrome): [Custom New Tab URL](https://chrome.google.com/webstore/detail/custom-new-tab-url/mmjbdbjnoablegbkcklggeknkfcjkjia)
2020-10-10 20:39:56 -05:00
2021-07-20 22:31:19 -05:00
## 🎨 Customization
2020-09-14 22:23:06 -05:00
2021-07-20 22:31:19 -05:00
Almost all customization can be managed in the `config.js` file:
2020-09-14 22:23:06 -05:00
2021-07-20 22:37:04 -05:00
### 👋 General: Name, Image Background and Greetings
2020-10-10 20:48:16 -05:00
2021-07-20 22:31:19 -05:00
To change the default name, the greetings and if you want to have an image background or open your links in new tabs, edit the first configs in the `config.js`.
2020-10-16 20:28:24 -05:00
```js
2021-07-20 22:31:19 -05:00
// General
name: 'John',
imageBackground: false,
openInNewTab: true,
2020-10-16 20:28:24 -05:00
2021-07-20 22:31:19 -05:00
// Greetings
greetingMorning: 'Good morning!',
greetingAfternoon: 'Good afternoon,',
greetingEvening: 'Good evening,',
greetingNight: 'Go to Sleep!',
2020-09-06 18:42:26 -05:00
2021-07-20 22:31:19 -05:00
```
2020-10-10 20:09:25 -05:00
2021-07-20 22:37:04 -05:00
> You cah change the background by substituting the `background.jpg` file in `assets` folder.
2020-09-06 18:42:26 -05:00
2021-07-20 22:31:19 -05:00
![](assets/img/previewbg.png)
2020-09-11 19:23:13 -05:00
2021-07-20 22:37:04 -05:00
### 🏷️ Button Links
2020-10-10 20:48:16 -05:00
2021-07-20 22:31:19 -05:00
To edit the buttons you just need to change the follow list in the `config.js` file by choosing a link, an icon from [Feather icons](https://feathericons.com/) and a name:
2020-09-16 12:27:55 -05:00
```js
2021-07-20 22:31:19 -05:00
cards: [
{
id: '1',
name: 'Github',
icon: 'github',
link: 'https://github.com/',
},
{
id: '2',
name: 'Mail',
icon: 'mail',
link: 'https://mail.protonmail.com/',
},
{
id: '3',
name: 'Todoist',
icon: 'trello',
link: 'https://calendar.google.com/calendar/r',
},
{
id: '4',
name: 'Calendar',
icon: 'calendar',
link: 'https://calendar.google.com/calendar/r',
},
{
id: '5',
name: 'Reddit',
icon: 'bookmark',
link: 'https://reddit.com',
},
{
id: '6',
name: 'Odysee',
icon: 'youtube',
link: 'https://odysee.com/',
},
],
2020-09-16 12:27:55 -05:00
```
2021-07-20 22:37:04 -05:00
### 📑 List Links
2020-09-16 12:27:55 -05:00
2021-07-20 22:31:19 -05:00
The same happens with the list links, you can change the list icon (also using feather icons) and the links:
2021-01-09 23:56:22 -06:00
```js
2021-07-20 22:31:19 -05:00
//Icons
firstListIcon: 'music',
secondListIcon: 'coffee',
// Links
lists: {
firstList: [
{
name: 'Inspirational',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
{
name: 'Classic',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
{
name: 'Oldies',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
{
name: 'Rock',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
],
secondList: [
{
name: 'Linkedin',
link: 'https://linkedin.com/',
},
{
name: 'Figma',
link: 'https://figma.com/',
},
{
name: 'Dribbble',
link: 'https://dribbble.com',
},
{
name: 'Telegram',
link: 'https://webk.telegram.org',
},
],
},
2021-01-09 23:56:22 -06:00
```
2020-10-10 20:09:25 -05:00
2021-07-20 22:37:04 -05:00
### ⛈️ Weather: Api Key, Icons and Unit
2020-10-10 20:09:25 -05:00
2021-07-20 22:31:19 -05:00
For setting up the Weather widget you'll need an API Key from: `https://openweathermap.org/`. Once you have your Key you'll need to set your latitude and longitude, you can use: `https://www.latlong.net/` to get them.
2020-10-10 20:09:25 -05:00
2021-07-20 22:31:19 -05:00
Finally, choose an Icon set:
2020-10-10 20:52:47 -05:00
2021-07-20 22:31:19 -05:00
![](assets/img/icons.png)
2020-10-10 20:09:25 -05:00
2021-01-09 23:56:22 -06:00
- **Nord** Using the Nord Color Scheme and easy-to-eyes colors
- **OneDark** (_Default one_) Using the One Dark Pro color scheme
- **Dark** For White theme only users that want a minimalist look
- **White** For Dark theme only users that want a minimalist look
2020-09-11 19:23:13 -05:00
2021-07-20 22:31:19 -05:00
Finally just add them to the `config.js` file.
2020-10-10 20:09:25 -05:00
2021-07-20 22:31:19 -05:00
```js
// Weather
2021-07-20 22:41:35 -05:00
weatherKey: 'InsertYourAPIKeyHere123456',
2021-07-20 22:31:19 -05:00
weatherIcons: 'OneDark',
weatherUnit: 'C',
weatherLatitude: '37.774929',
weatherLongitude: '-122.419418',
```
2020-10-10 20:09:25 -05:00
2021-07-20 22:37:04 -05:00
### 💛 Colors
2021-01-09 23:56:22 -06:00
2021-07-20 22:31:19 -05:00
In the `app.css` file you can change the variables for both themes (Dark and Light):
2021-01-09 23:56:22 -06:00
2021-07-20 22:31:19 -05:00
```css
/* Light theme */
2020-10-10 20:09:25 -05:00
2021-07-20 22:31:19 -05:00
:root {
--accent: #61b0f1; /* Hover color */
--bg: #f5f5f5; /* Background color */
--sbg: #e4e6e6; /* Cards color */
--fg: #3a3a3a; /* Foreground color */
--sfg: #3a3a3a; /* Sceondary Foreground color */
2020-10-10 20:09:25 -05:00
}
2021-07-20 22:31:19 -05:00
/* Dark theme */
.darktheme {
--accent: #61b0f1; /* Hover color */
--bg: #19171a; /* Background color */
--sbg: #201e21; /* Cards color */
--fg: #d8dee9; /* Foreground color */
--sfg: #3a3a3a; /* Secondary Foreground color */
2020-10-10 20:09:25 -05:00
}
2021-07-20 22:31:19 -05:00
```
![](assets/img/subheader.png)