diff --git a/.env.default b/.env.default index 9088aad..e286ae5 100644 --- a/.env.default +++ b/.env.default @@ -3,4 +3,5 @@ PUBLIC_URL=https://example.com # Publicly accessible website root, used for rewr USE_SUBDOMAINS=true # Whether backend allows for use of subdomains in URL generation. DEBUG=false # Frontend specific - \ No newline at end of file + +VITE_API_TARGET=kitkat.example.com # Target backend for API requests. \ No newline at end of file diff --git a/kittyurl-frontend/src/components/FlappyCat.tsx b/kittyurl-frontend/src/components/FlappyCat.tsx index bf2851c..914a746 100644 --- a/kittyurl-frontend/src/components/FlappyCat.tsx +++ b/kittyurl-frontend/src/components/FlappyCat.tsx @@ -218,9 +218,7 @@ export const FlappyCat: React.FC<{ onBack: () => void }> = ({ onBack }) => { )} -

- Physics: {isPlaying ? "Frame-Independent" : "Ready"} -

+ ); }; \ No newline at end of file diff --git a/kittyurl-frontend/src/components/Generator.tsx b/kittyurl-frontend/src/components/Generator.tsx index b21aedc..771c823 100644 --- a/kittyurl-frontend/src/components/Generator.tsx +++ b/kittyurl-frontend/src/components/Generator.tsx @@ -8,41 +8,52 @@ interface GeneratorProps { } export const Generator: React.FC = ({ url, setUrl, onGenerate }) => ( -
-
-

- KittyURL +
+ {/* Header - Skalowanie tekstu i ikony */} +
+

+ KittyURL

-

Shorten your links with a purr!

+

+ Shorten your links with a purr! +

-
+ {/* Główna karta - mniejsze paddingi i zaokrąglenia na mobile */} +
- +
setUrl(e.target.value)} /> - +
-
-
- -

No links generated yet. Feed me a URL! 🐾

+ {/* Sekcja "No links yet" - Skalowanie paddingu i ikony */} +
+
+ +

+ No links generated yet. Feed me a URL! 🐾 +

diff --git a/kittyurl-frontend/src/components/HistoryView.tsx b/kittyurl-frontend/src/components/HistoryView.tsx index 2567c43..1e46f4d 100644 --- a/kittyurl-frontend/src/components/HistoryView.tsx +++ b/kittyurl-frontend/src/components/HistoryView.tsx @@ -1,15 +1,23 @@ - -import { PawPrint, ExternalLink } from 'lucide-react'; +import { PawPrint, ExternalLink } from 'lucide-react'; export const HistoryView = ({ onBack }: { onBack: () => void }) => ( -
- -
-

Recent Paws 🐾

+ +
+

+ Recent Paws 🐾 +

+
- + {/* Widok Tabeli (widoczny od ekranów 'sm') */} +
@@ -18,11 +26,34 @@ export const HistoryView = ({ onBack }: { onBack: () => void }) => ( - - + +
Long URL
https://very-long-link.com/catskitty.url/meow + https://very-long-link.com/cats/are/the/best/animals/in/the/world + + + kitty.url/meow + +
+ + {/* Widok Mobilny (Lista kart zamiast tabeli - widoczny tylko na małych ekranach) */} +
+
+
Long URL
+
+ https://very-long-link.com/cats/are/the/best/animals/in/the/world +
+
+
Kitty URL
+ + kitty.url/meow + +
+
+ {/* Tutaj możesz mapować kolejne wpisy historii tak samo jak wyżej */} +
diff --git a/kittyurl-frontend/src/components/KittyGame.tsx b/kittyurl-frontend/src/components/KittyGame.tsx index 5ca323e..b96f215 100644 --- a/kittyurl-frontend/src/components/KittyGame.tsx +++ b/kittyurl-frontend/src/components/KittyGame.tsx @@ -243,10 +243,7 @@ export const KittyGame: React.FC<{ onBack: () => void }> = ({ onBack }) => {
)}
-
- Speed: {Math.round(INITIAL_SPEED + score * SPEED_INCREMENT)} px/s - Physics: Delta-Time Based -
+
); }; \ No newline at end of file diff --git a/kittyurl-frontend/src/components/Navbar.tsx b/kittyurl-frontend/src/components/Navbar.tsx index abd27ec..874c730 100644 --- a/kittyurl-frontend/src/components/Navbar.tsx +++ b/kittyurl-frontend/src/components/Navbar.tsx @@ -1,5 +1,4 @@ -import { History as HistoryIcon, LogIn, LogOut, Gamepad2, Wind } from 'lucide-react'; -// Używamy 'import type' dla zadowolenia verbatimModuleSyntax +import { History as HistoryIcon, LogIn, LogOut, Gamepad2, Wind, Cat } from 'lucide-react'; import type { View } from '../App'; interface NavbarProps { @@ -9,49 +8,66 @@ interface NavbarProps { } export const Navbar = ({ onNavigate, isAuthenticated, onLogout }: NavbarProps) => ( -