6 Commits

Author SHA1 Message Date
a80945bf0b Merge pull request 'Update page title to use application name from configuration' (#8) from feature/configure-app-name into main
All checks were successful
Tests / Laravel tests (push) Successful in 12m28s
Reviewed-on: #8
2026-06-04 00:10:56 +02:00
03b06632f9 Update page title to use application name from configuration
All checks were successful
Tests / Laravel tests (pull_request) Successful in 11m54s
2026-06-04 00:10:18 +02:00
f7c867e13c Merge pull request 'bugfixes/fix-cursor-on-production' (#7) from bugfixes/fix-cursor-on-production into main
All checks were successful
Tests / Laravel tests (push) Successful in 12m0s
Reviewed-on: #7
2026-06-03 23:54:43 +02:00
2f2b7866c6 Refactor visitor ID creation function for improved readability
All checks were successful
Tests / Laravel tests (pull_request) Successful in 11m55s
2026-06-03 23:51:30 +02:00
f85b596a66 Fix cursor movement functionality on page load 2026-06-03 23:47:36 +02:00
9b8c273c21 Merge pull request 'Add page visit Telegram notifications' (#6) from feature/page-visit-notifications into main
Some checks failed
Tests / Laravel tests (push) Failing after 7m34s
Reviewed-on: #6
2026-06-03 23:27:26 +02:00
2 changed files with 17 additions and 9 deletions

View File

@@ -15,14 +15,21 @@ document.addEventListener('DOMContentLoaded', () => {
});
});
const cursor = document.getElementById('custom-cursor');
window.addEventListener('load', () => {
const cursor = document.getElementById('custom-cursor');
const gsapInstance = window.gsap;
document.addEventListener('mousemove', (e) => {
gsap.to(cursor, {
if (!cursor || !gsapInstance) {
return;
}
document.addEventListener('mousemove', (e) => {
gsapInstance.to(cursor, {
duration: 0.2,
x: e.clientX + 20,
y: e.clientY - 15,
ease: 'power2.out'
});
});
});

View File

@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Laravel</title>
<title>{{ config('app.name') }}</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
@@ -179,7 +179,8 @@
}
const visitorKey = 'cv_visitor_id';
const createVisitorId = () => window.crypto?.randomUUID?.() ?? `${Date.now()}-${Math.random().toString(36).slice(2)}`;
const createVisitorId = () => window.crypto?.randomUUID?.() ??
`${Date.now()}-${Math.random().toString(36).slice(2)}`;
let visitorId = createVisitorId();
try {