Commit Graph

1173 Commits

Author SHA1 Message Date
JulianPrieber c1604ff9d5 Updated Name and description
Updated the name and description on the website.

Updated: App name, admin message in home (seeder), footer, and footer studio-sidebar.
2022-02-22 10:31:23 +01:00
JulianPrieber c1110d4ced
Fixed dark mode for login/register...
This fixed the issue of dark mode not displaying on the register, login, forgot password and a few other pages.

This one took me a while to fix, and I still don't really know what is going on here.
The aforementioned pages already implemented a dark mode, but it didn't seem to work for me. After some testing, I discovered that the dark mode preset doesn't load on chromium based browsers. 

I have absolutely no idea why that is, if someone could help me with this that would be amazing. I might make an issue out of this later on.

As I still wanted to fix this, I finally achieved my goal by doing the caveman approach:

I first added the usual dark mode detection. The same used on the home and little link pages (see previous commits if you're interested).
Then I wrote and if statement that loads the newly added app-dark.css (see previous commit) that changes text and background color on the pages in question, if the browser type is chromium and dark mode is selected in the browser settings.

"@if(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome' !== false) and $color_scheme == 'dark')"

This doesn't look optimal, and I would rather just have the same dark mode as on Firefox, but this is the best I can currently do with my available time.
2022-02-21 23:34:07 +01:00
JulianPrieber c24863f7cc
Added dark mode for app.css
Added dark mode for app.css that will be used together with said file.

The CSS file only changes background and text color.
2022-02-21 23:18:38 +01:00
JulianPrieber 51c16a2d00
Fixed bug
Fixed social preview image displaying on littlelink page
2022-02-21 20:33:55 +01:00
JulianPrieber 50f838f555
Removed rounded-circle class
Removed 'rounded-circle' class, as this cuts off corners of some custom logos.
2022-02-21 20:22:21 +01:00
JulianPrieber 93eb23ded3
Added SQLite database
Added empty SQLite database for future use as main database for Laravel. As mentioned in previous commits, I'm switching to SQLite due to the easier setup process for the inexperienced user.
2022-02-21 20:11:25 +01:00
JulianPrieber 4af729687e
Fixed SQLite compatibility
Removed 'DB::statement("ALTER TABLE `buttons` AUTO_INCREMENT=0;");' due to incompatibility with SQLite.
2022-02-21 19:58:55 +01:00
JulianPrieber 4753ceaa63
Added default config => switch to SQLite
Added default '.env' config file. I'm keeping the '.env.example' in the repository, but an easier setup process a default configuration will from now on be included in the repository.

I'm switching from MySQL to SQLite for the same reason mentioned above. By adding the MySQL database setting from '.env.example' to the '.env' config, MySQL can still be used as the database.
2022-02-21 19:56:34 +01:00
JulianPrieber edc1204c8b
Enabled dark mode for studio pages
Enabled dark mode for all studio pages

See last commit (e6729f5485)
2022-02-20 22:56:09 +01:00
JulianPrieber e6729f5485
Added dark mode files for studio
Added dark mode CSS files for all studio pages.

Now, this one's a bit janky. The studio CSS files 'bootstrap.min' and 'style-dashboard' already had settings for dark mode in them. 

The problem is that the PHP files for the studio sites:
app.blade.php, footer.blade.php, guest.blade.php, sidebar.blade.php and a few others specify the light classes in the PHP directly. 

As I didn't want to create separate PHP pages for dark and light mode, I simply replaced the light mode values in the CSS files with the dark mode ones. This means in the files the classes are still labeled as light mode but are in fact for the dark mode.

Selection for the dark mode will be handled the same as on the other pages, with JavaScript and a cookie (see next commit).
2022-02-20 22:43:11 +01:00
JulianPrieber c29b9a03fd
Added custom scrollbar
Added custom scrollbar to all sites that use light mode

Credit to Stephen Paton @ https://codepen.io/stephenpaton-tech/full/JjRvGmY
2022-02-20 19:19:05 +01:00
JulianPrieber 77954d9e3d
Added custom scrollbar
Added custom scrollbar to all sites that use dark mode

Credit to Stephen Paton @ https://codepen.io/stephenpaton-tech/full/JjRvGmY
2022-02-20 19:18:15 +01:00
JulianPrieber b0fe2395d4 Chnaged rounded logo on landing page
Removed the rounded-avatar class of the custom logo on the landing page.
2022-02-20 18:24:27 +01:00
JulianPrieber ac741d42e6
custom logo hotfix
Just a quick fix, the logo wasn't displaying correctly I probably should do this with a separate CSS file for all images, but I just did this quick and dirty with a style attribute
2022-02-20 18:15:54 +01:00
JulianPrieber aa759a8d3b
custom logo hotfix
Just a quick fix, the logo wasn't displaying correctly I probably should do this with a separate CSS file for all images, but I just did this quick and dirty with a style attribute
2022-02-20 18:14:33 +01:00
JulianPrieber 70e01db070
Fixed login/register logo
Fixed the if-else statement responsible for loading the correct login/register image. The SVG wouldn't work, so I just used the new avatar@2x.png, so I guess that one is staying for now. 

If it works it works, I could load the vector image by changing the logo to the SVG in:
confirm-password.blade.php, forgot-password.blade.php, login.blade.php, register.blade.php, reset-password.blade.php and verify-email.blade.php.

This works good enough, so imma leave it how it is now.
2022-02-20 16:57:47 +01:00
JulianPrieber c8696ca5d5 Fixed elseif
Fixed new elseif statements by changing:
"if
if"
to
"if
elseif"
2022-02-20 15:42:45 +01:00
JulianPrieber 95769b43bd Merge branch 'main' of https://github.com/JulianPrieber/littlelink-custom 2022-02-20 15:24:30 +01:00
JulianPrieber c22ca8f27b Revert "Revert "Merge branch 'main' of https://github.com/JulianPrieber/littlelink-custom""
This reverts commit f5ffdc18b1.
2022-02-20 15:24:27 +01:00
JulianPrieber 324db451e9
Fixed menu icon
Fixed issue of the menu hamburger icon not displaying
2022-02-20 15:20:57 +01:00
JulianPrieber 0d55159b07
fixed logo.svg 2022-02-20 14:45:34 +01:00
JulianPrieber 96604bb7c9
fixed logo.svg 2022-02-20 14:19:38 +01:00
JulianPrieber f5ffdc18b1 Revert "Merge branch 'main' of https://github.com/JulianPrieber/littlelink-custom"
This reverts commit 30ec6bea98, reversing
changes made to 69fc08668c.
2022-02-20 14:10:40 +01:00
JulianPrieber 30ec6bea98 Merge branch 'main' of https://github.com/JulianPrieber/littlelink-custom 2022-02-20 14:09:11 +01:00
JulianPrieber 69fc08668c fixed logo.svg 2022-02-20 14:09:08 +01:00
JulianPrieber 696d2f0d82
Fixed spelling
Changed button to buttons
2022-02-20 13:56:19 +01:00
JulianPrieber a3013082f6
Added animation
Added animation for new logo and element fade in
2022-02-20 13:39:53 +01:00
JulianPrieber 61dac5f754
Uploaded the logo vector graphics
The new logo vectors have been added (https://github.com/JulianPrieber/littlelink-custom/milestone/1).
2022-02-20 13:27:46 +01:00
JulianPrieber e7cae13055
Changed avatar@2x.png to new logo
avatar@2x.png is not really getting used anymore besides the srcset behind src in some versions of the logo.

I might remove this later on.
2022-02-20 13:26:03 +01:00
JulianPrieber abb81711fb
Removed avatar.png
I removed avatar.png as it is no longer being used and has been replaced with logo.svg.

If an admin uploads a custom logo, this will take the place of avatar.png and will be used as the new logo.
2022-02-20 13:22:39 +01:00
JulianPrieber 8243d7c977 fixed logo.svg 2022-02-20 13:20:21 +01:00
JulianPrieber 96cfd5b4c1 Changed logo
As part of the new logo (https://github.com/JulianPrieber/littlelink-custom/milestone/1) I'm now using the new 'logo.svg' vector logo.

For this, I added an if-else statement in most cases, which first check for a custom logo uploaded by the admin or the avatar of an individual user. If the image doesn't exist, the default logo (logo.svg) is used.
2022-02-20 13:12:25 +01:00
JulianPrieber 5db777053e
Added dark mode detection
Added automatic dark mode detection to littlelink.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:10:13 +01:00
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