Improved assets

This commit is contained in:
2026-04-03 16:27:29 +02:00
parent 78ad9ea312
commit e22f24108b
6 changed files with 15 additions and 3 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import {
import { getVersions, type GameVersion } from "./services/LauncherService"; import { getVersions, type GameVersion } from "./services/LauncherService";
import { clsx, type ClassValue } from "clsx"; import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge"; import { twMerge } from "tailwind-merge";
import Logo from "@/assets/logo.png";
// Utility for merging tailwind classes // Utility for merging tailwind classes
function cn(...inputs: ClassValue[]) { function cn(...inputs: ClassValue[]) {
@@ -71,7 +72,7 @@ const App: React.FC = () => {
{/* Sidebar */} {/* Sidebar */}
<aside className="w-16 border-r border-saturn-border flex flex-col items-center py-6 gap-6 bg-saturn-panel/50"> <aside className="w-16 border-r border-saturn-border flex flex-col items-center py-6 gap-6 bg-saturn-panel/50">
<div> <div>
<img src="/logo.png" alt="Saturn Logo" className="w-10 h-10" /> <img src={Logo} alt="Saturn Logo" className="w-10 h-10" />
</div> </div>
<nav className="flex flex-col gap-4 h-full"> <nav className="flex flex-col gap-4 h-full">
View File

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

+2 -1
View File
@@ -1,6 +1,7 @@
import React, { useState } from "react"; import React, { useState } from "react";
import { Play, Loader2 } from "lucide-react"; import { Play, Loader2 } from "lucide-react";
import { launchGame, type GameVersion } from "../services/LauncherService"; import { launchGame, type GameVersion } from "../services/LauncherService";
import Bg from "@/assets/bg.png";
interface PlaySectionProps { interface PlaySectionProps {
version: GameVersion; version: GameVersion;
@@ -35,7 +36,7 @@ const PlaySection: React.FC<PlaySectionProps> = ({ version }) => {
<div className="h-full relative"> <div className="h-full relative">
{/* Background Image */} {/* Background Image */}
<img <img
src="/bg.png" src={Bg}
alt="Background" alt="Background"
className="w-full h-full object-cover rounded-2xl brightness-50" className="w-full h-full object-cover rounded-2xl brightness-50"
/> />
+5 -1
View File
@@ -18,7 +18,11 @@
"strict": true, "strict": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true,
"baseUrl": "./",
"paths": {
"@/*": ["src/*"]
}
}, },
"include": ["src"], "include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }] "references": [{ "path": "./tsconfig.node.json" }]
+6
View File
@@ -30,4 +30,10 @@ export default defineConfig(async () => ({
ignored: ["**/src-tauri/**"], ignored: ["**/src-tauri/**"],
}, },
}, },
resolve: {
alias: {
"@": "/src",
},
},
})); }));