Skip to content

Commit

Permalink
Customization
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanJTodd committed Jan 2, 2024
1 parent 9f5f1b7 commit 81c3c71
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 18 deletions.
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch index.html",
"type": "firefox",
"request": "launch",
"reAttach": true,
"file": "${workspaceFolder}/index.html",
"host": "127.0.0.1"
}
]
}
230 changes: 230 additions & 0 deletions Bento/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
// ╔╗ ╔═╗╔╗╔╔╦╗╔═╗
// ╠╩╗║╣ ║║║ ║ ║ ║
// ╚═╝╚═╝╝╚╝ ╩ ╚═╝
// ┌─┐┌─┐┌┐┌┌─┐┬┌─┐┬ ┬┬─┐┌─┐┌┬┐┬┌─┐┌┐┌
// │ │ ││││├┤ ││ ┬│ │├┬┘├─┤ │ ││ ││││
// └─┘└─┘┘└┘└ ┴└─┘└─┘┴└─┴ ┴ ┴ ┴└─┘┘└┘

const CONFIG = {
// ┌┐ ┌─┐┌─┐┬┌─┐┌─┐
// ├┴┐├─┤└─┐││ └─┐
// └─┘┴ ┴└─┘┴└─┘└─┘

// General
name: 'Dylan',
imageBackground: false,
openInNewTab: false,
twelveHourFormat: true,

// Greetings
greetingMorning: 'Good morning!',
greetingAfternoon: 'Good afternoon,',
greetingEvening: 'Good evening,',
greetingNight: 'Go to Sleep!',

// Layout
bentoLayout: 'bento', // 'bento', 'lists', 'buttons'

// Weather
weatherKey: 'b6a7453e88c28b3f6ea72116924948e8', // Write here your API Key
weatherIcons: 'OneDark', // 'Onedark', 'Nord', 'Dark', 'White'
weatherUnit: 'C', // 'F', 'C'
language: 'en', // More languages in https://openweathermap.org/current#multi

trackLocation: true, // If false or an error occurs, the app will use the lat/lon below
defaultLatitude: '37.775',
defaultLongitude: '-122.419',

// Autochange
autoChangeTheme: true,

// Autochange by OS
changeThemeByOS: true,

// Autochange by hour options (24hrs format, string must be in: hh:mm)
changeThemeByHour: false,
hourDarkThemeActive: '18:30',
hourDarkThemeInactive: '07:00',

// ┌┐ ┬ ┬┌┬┐┌┬┐┌─┐┌┐┌┌─┐
// ├┴┐│ │ │ │ │ ││││└─┐
// └─┘└─┘ ┴ ┴ └─┘┘└┘└─┘

firstButtonsContainer: [
{
id: '1',
name: 'Github',
icon: 'github',
link: 'https://github.com/DylanJTodd',
},
{
id: '2',
name: 'Mail',
icon: 'mail',
link: 'mailto: Null'
},
{
id: '3',
name: 'D2L',
icon: 'trello',
link: 'https://d2l.laurentian.ca/d2l/home',
},
{
id: '4',
name: 'Calendar',
icon: 'calendar',
link: 'https://my.laurentian.ca/node/20',
},
{
id: '5',
name: 'Chat',
icon: 'glasses',
link: 'https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx',
},
{
id: '6',
name: 'Youtube',
icon: 'youtube',
link: 'https://youtube.com',
},
],

secondButtonsContainer: [
{
id: '1',
name: 'Music',
icon: 'headphones',
link: 'https://open.spotify.com',
},
{
id: '2',
name: 'twitter',
icon: 'twitter',
link: 'https://twitter.com/',
},
{
id: '3',
name: 'bot',
icon: 'bot',
link: 'https://discord.com/app',
},
{
id: '4',
name: 'Amazon',
icon: 'shopping-bag',
link: 'https://amazon.com/',
},
{
id: '5',
name: 'Hashnode',
icon: 'pen-tool',
link: 'https://hashnode.com/',
},
{
id: '6',
name: 'Figma',
icon: 'figma',
link: 'https://figma.com/',
},
],

// ┬ ┬┌─┐┌┬┐┌─┐
// │ │└─┐ │ └─┐
// ┴─┘┴└─┘ ┴ └─┘

// First Links Container
firstlistsContainer: [
{
icon: 'music',
id: '1',
links: [
{
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',
},
],
},
{
icon: 'coffee',
id: '2',
links: [
{
name: 'Linkedin',
link: 'https://www.linkedin.com',
},
{
name: 'Dribbble',
link: 'https://www.dribbble.com',
},
{
name: 'Trello',
link: 'https://www.trello.com',
},
{
name: 'Slack',
link: 'https://www.slack.com',
},
],
},
],

// Second Links Container
secondListsContainer: [
{
icon: 'binary',
id: '1',
links: [
{
name: 'Spotify',
link: 'https://www.spotify.com',
},
{
name: 'Reddit',
link: 'https://www.reddit.com',
},
{
name: 'Hashnode',
link: 'https://www.hashnode.com',
},
{
name: 'Pocket',
link: 'https://www.pocket.com',
},
],
},
{
icon: 'github',
id: '2',
links: [
{
name: 'Front',
link: 'https://www.reddit.com/r/Frontend/',
},
{
name: 'Rust',
link: 'https://www.reddit.com/r/rust/',
},
{
name: 'Go',
link: 'https://www.reddit.com/r/golang/',
},
{
name: 'Repos',
link: 'https://github.com/migueravila',
},
],
},
],
};
34 changes: 17 additions & 17 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const CONFIG = {
// └─┘┴ ┴└─┘┴└─┘└─┘

// General
name: 'John',
name: 'Dylan',
imageBackground: false,
openInNewTab: true,
twelveHourFormat: false,
openInNewTab: false,
twelveHourFormat: true,

// Greetings
greetingMorning: 'Good morning!',
Expand All @@ -26,7 +26,7 @@ const CONFIG = {
bentoLayout: 'bento', // 'bento', 'lists', 'buttons'

// Weather
weatherKey: 'InsertYourAPIKeyHere123456', // Write here your API Key
weatherKey: 'b6a7453e88c28b3f6ea72116924948e8', // Write here your API Key
weatherIcons: 'OneDark', // 'Onedark', 'Nord', 'Dark', 'White'
weatherUnit: 'C', // 'F', 'C'
language: 'en', // More languages in https://openweathermap.org/current#multi
Expand Down Expand Up @@ -55,37 +55,37 @@ const CONFIG = {
id: '1',
name: 'Github',
icon: 'github',
link: 'https://github.com/',
link: 'https://github.com/DylanJTodd',
},
{
id: '2',
name: 'Mail',
icon: 'mail',
link: 'https://mail.protonmail.com/',
link: 'mailto: Null'
},
{
id: '3',
name: 'Todoist',
icon: 'trello',
link: 'https://todoist.com',
link: 'https://d2l.laurentian.ca/d2l/home',
},
{
id: '4',
name: 'Calendar',
icon: 'calendar',
link: 'https://calendar.google.com/calendar/r',
link: 'https://my.laurentian.ca/node/20',
},
{
id: '5',
name: 'Reddit',
name: 'Chat',
icon: 'glasses',
link: 'https://reddit.com',
link: 'https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx',
},
{
id: '6',
name: 'Odysee',
name: 'Youtube',
icon: 'youtube',
link: 'https://odysee.com/',
link: 'https://youtube.com',
},
],

Expand Down Expand Up @@ -139,20 +139,20 @@ const CONFIG = {
id: '1',
links: [
{
name: 'Inspirational',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
name: 'Nostalgia',
link: 'https://www.youtube.com/watch?v=KFjMHMIQjW8',
},
{
name: 'Classic',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
link: 'https://www.youtube.com/watch?v=oFen7IRKzEs',
},
{
name: 'Oldies',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
link: 'https://www.youtube.com/watch?v=wp2Hwi9qM48&list=PLyvfk75Tg9ymTJ5_xKsGA-yavhYrs3yL3',
},
{
name: 'Rock',
link: 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
link: 'https://www.youtube.com/watch?v=lM5L3hO1xnQ',
},
],
},
Expand Down
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
</button>
<div class="container">
<!-- Clock and Greetings -->

<div class="timeBlock">
<div class="clock">
<div id="hour"></div>
Expand Down

0 comments on commit 81c3c71

Please sign in to comment.