Commit Graph

590 Commits

Author SHA1 Message Date
JulianPrieber a5c81158cf
Added dark mode detection
Added automatic dark mode detection to home.blade.php via a cookie with js.cookie.min.js (see previous commit).

Detecting the dark mode setting is done with JavaScript. The script detects the preferred dark mode setting in the client's browser and saves it with a cookie. If the script detects a change in this setting, it corrects the cookie. 

Loading the appropriate skeleton.css is done via PHP with an if-else statement. If the cookie (saved by the previous script) color scheme equals 'dark' it will load skeleton-dark.css (found in /littlelink/css). 

If dark mode is not detected OR nothing is detected/cookie is getting blocked, the statement defaults to skeleton-light.css (also found in /littlelink/css).

You could change what the if-else statement defaults to (i.e. which color scheme is loaded if the cookie fails to detect) by switching 'skeleton-dark.css' and 'skeleton-light.css' around (see comment in if statement).

Everything added is commented and marked with begin/end.


Credit to 'user1575941' on Stack Overflow who's commented code REALLY helped getting behind all this.
2022-02-18 10:08:24 +01:00
JulianPrieber b67651df04 Revert "Added dark mode detection"
This reverts commit cc71e0d6ca.
2022-02-18 10:06:14 +01:00
JulianPrieber cc71e0d6ca
Added dark mode detection
Added automatic dark mode detection to home.blade.php via a cookie with js.cookie.min.js (see previous commit).

Detecting the dark mode setting is done with JavaScript. The script detects the preferred dark mode setting in the client's browser and saves it with a cookie. If the script detects a change in this setting, it corrects the cookie. 

Loading the appropriate skeleton.css is done via PHP with an if-else statement. If the cookie (saved by the previous script) color scheme equals 'dark' it will load skeleton-dark.css (found in /littlelink/css). 

If dark mode is not detected OR nothing is detected/cookie is getting blocked, the statement defaults to skeleton-light.css (also found in /littlelink/css).

You could change what the if-else statement defaults to (i.e. which color scheme is loaded if the cookie fails to detect) by switching 'skeleton-dark.css' 'skeleton-light.css around' (see comment in if statement).

Everything added is commented and marked with begin/end.


Credit to 'user1575941' on Stack Overflow who's commented code REALLY helped getting behind all this.
2022-02-18 10:02:43 +01:00
JulianPrieber b81190bddc
Added js.cookie.min.js
A simple, lightweight JavaScript API for handling browser cookies. See next commit.

(https://github.com/js-cookie/js-cookie)
2022-02-18 09:20:57 +01:00
JulianPrieber 99dbfafe91
Update LICENSE 2022-02-18 09:17:51 +01:00
JulianPrieber 11d05a558b
Added button entrance animation
Live demo: https://julianprieber.github.io/littlelink-admin-demo/button-entrance.html

Added an entrance animation for buttons on home.blade.php. This animation was made by the Animate.css project (https://github.com/animate-css/animate.css).

Each button entrance animation lasts 100ms. Every button after the first adds 100ms to the value of the previous button i.e. button 1 loads after 100ms, button 2 loads after 200ms,  button 3 after 300ms and so on...

Timings for the buttons can be changed in /littlelink/css/animate.css

I put every button in a separate <div> Tag, so the animation wouldn't in interfere with the existing hover animation.
2022-02-17 22:15:51 +01:00
JulianPrieber 44f57ce954
Added button entrance animation
Live demo: https://julianprieber.github.io/littlelink-admin-demo/button-entrance.html

Added an entrance animation for buttons on littlelink.blade.php. This animation was made by the Animate.css project (https://github.com/animate-css/animate.css).

Each button entrance animation lasts 100ms. Every button after the first adds 100ms to the value of the previous button i.e. button 1 loads after 100ms, button 2 loads after 200ms,  button 3 after 300ms and so on...

Timings for the buttons can be changed in /littlelink/css/animate.css

I put every button in a separate <div> Tag, so the animation wouldn't in interfere with the existing hover animation.

Likewise, I removed all <br> Tags.
2022-02-17 22:09:58 +01:00
JulianPrieber e0cc3e0a26
Added custom animate.css
Added a customized version of Animate, a CSS animation library for new button entrance animation. See next commit.

(https://github.com/animate-css/animate.css)
2022-02-17 21:47:23 +01:00
JulianPrieber 862823154c
Update LICENSE 2022-02-17 21:43:04 +01:00
JulianPrieber c7978ca610
Moved /public
This is the last major public path edit. For simplified usability, I am integrating the public Laravel directory into the root directory. 

All files in /public have been moved into the root directory. This directory is no longer necessary and therefore has been removed.
2022-02-14 13:56:51 +01:00
JulianPrieber f940106897
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

hover-min.css has been moved!
2022-02-14 13:53:16 +01:00
JulianPrieber 37c73f6cd9
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

Added hover-min.css (button animations)
2022-02-14 13:51:40 +01:00
JulianPrieber 02a4ae7e0c
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

Changed path /public to root directory.

!!!NEEDS TO BE TESTED!!!
2022-02-14 13:28:19 +01:00
JulianPrieber 506cecbdac
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

Changed path /public to root directory.

!!!NEEDS TO BE TESTED!!!
2022-02-14 13:26:42 +01:00
JulianPrieber 38f5cfa521
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:19:20 +01:00
JulianPrieber eda7882770
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:18:13 +01:00
JulianPrieber 5ffbf7393d
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:17:47 +01:00
JulianPrieber 425e0ab981
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:15:29 +01:00
JulianPrieber 08b5a040ca
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:13:49 +01:00
JulianPrieber a9dad0a0be
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:12:46 +01:00
JulianPrieber cf4f3e7c07
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:12:20 +01:00
JulianPrieber 85569ce06c
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:10:59 +01:00
JulianPrieber 4cd99d333d
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:10:09 +01:00
JulianPrieber ba963c96e2
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:09:33 +01:00
JulianPrieber de6b36e7a4
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:08:37 +01:00
JulianPrieber 697f72be94
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:07:38 +01:00
JulianPrieber f7d7076ddd
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

This edit is part of moving everything from root/public to root.
2022-02-14 13:06:58 +01:00
JulianPrieber b2ef9378f2
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

Fixed path (removed '/..' ). Index.php will be moved to into the root directory.
2022-02-14 13:02:46 +01:00
JulianPrieber 514e779025
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:56:50 +01:00
JulianPrieber c097c0ae09
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:56:03 +01:00
JulianPrieber 14c324734f
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:54:51 +01:00
JulianPrieber 1c7f71e56f
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:53:07 +01:00
JulianPrieber dc4ab42663
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:52:24 +01:00
JulianPrieber ca328898f0
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:49:05 +01:00
JulianPrieber a025edfeb1
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:48:34 +01:00
JulianPrieber 872f720bb0
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:47:57 +01:00
JulianPrieber cb349a2280
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:47:27 +01:00
JulianPrieber 660caf0f12
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:46:24 +01:00
JulianPrieber fe110cc45f
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:44:29 +01:00
JulianPrieber 249ad51d0b
Update README.md
Added feature button hover animation + demo (https://julianprieber.github.io/littlelink-admin-demo)
2022-02-12 19:42:16 +01:00
JulianPrieber 8f1f66ab69
Update README.md
Added partner button animations (https://github.com/IanLunn/Hover)
2022-02-12 19:39:11 +01:00
JulianPrieber c5657f778c
Added button animation home
Added hover button animation to home.blade.php.

  -  Included hover-min.css for animation
  -  Added class 'button hvr-grow' to all buttons
  -  Added class 'hvr-icon-wobble-vertical' to all buttons (for icon animation)
  -  Added class 'hvr-icon' to all icons (to indicate icon to hover-min.css)

Read more on how to use and change animations here: https://github.com/IanLunn/Hover/blob/master/README.md
Try a demo of the added animations here: https://julianprieber.github.io/littlelink-admin-demo/
2022-02-12 19:25:37 +01:00
JulianPrieber a58f412cc5
Added button animation littlelink
Added hover button animation to littlelink.blade.php.

  -  Included hover-min.css for animation
  -  Added class 'button hvr-grow' to all buttons
  -  Added class 'hvr-icon-wobble-vertical' to all buttons (for icon animation)
  -  Added class 'hvr-icon' to all icons (to indicate icon to hover-min.css)

Read more on how to use and change animations here: https://github.com/IanLunn/Hover/blob/master/README.md
Try a demo of the added animations here: https://julianprieber.github.io/littlelink-admin-demo/
2022-02-12 19:24:01 +01:00
JulianPrieber 5e2a3fbbe8 Revert "Added button animation littlelink"
This reverts commit 84bfe583a6.
2022-02-12 19:21:04 +01:00
JulianPrieber 84bfe583a6
Added button animation littlelink
Added button animation to littlelink.blade.php.

  -  Included hover-min.css for animation
  -  Added class 'button hvr-grow' to all buttons
  -  Added class 'hvr-icon-wobble-vertical' to all buttons (for icon animation)
  -  Added class 'hvr-icon' to all icons (to indicate icon to hover-min.css)

Read more on how to use and change animations here: https://github.com/IanLunn/Hover/blob/master/README.md
Try a demo of the added animations here: https://julianprieber.github.io/littlelink-admin-demo/
2022-02-12 19:17:00 +01:00
JulianPrieber 8f19cf71de
Edit LICENSE
Added license for the use of Hover.css by Ian Lunn (https://store.ianlunn.co.uk/licenses/personal).

See: 0bb11a1e66
2022-02-12 18:55:59 +01:00
JulianPrieber 0bb11a1e66
Added Hover.css
Added hover-min.css by Ian Lunn (https://github.com/IanLunn/Hover) to allow use of animations with buttons and icons.
2022-02-12 18:52:27 +01:00
JulianPrieber c74c78179d
Update README.md 2022-02-12 15:26:00 +01:00
JulianPrieber af979d709d
Update README.md 2022-02-12 15:23:28 +01:00
JulianPrieber 0750e48830
Added support for social media preview
This shows a preview for Name, Bio and avatar image of users profiles if shared on social sites like Facebook,  Twitter, Facebook Messenger, WhatsApp, Discord, Pinterest and many more.
2022-02-12 14:59:07 +01:00