mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2025-12-20 15:59:33 +05:30
feat: added color scheme options and bumped up to shadcn 3.5
This commit is contained in:
@@ -2,20 +2,20 @@ import { useLocation } from "react-router-dom";
|
||||
import { isActive } from "@/utils";
|
||||
import { config } from "@/config";
|
||||
import { useSettingsPageStatesStore } from "@/services/store";
|
||||
import { Github, Globe } from "lucide-react";
|
||||
import { Github, Globe, Heart } from "lucide-react";
|
||||
|
||||
export default function Footer() {
|
||||
const location = useLocation();
|
||||
const isSettingsPage = isActive("/settings", location.pathname, true);
|
||||
const appVersion = useSettingsPageStatesStore(state => state.appVersion);
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{isSettingsPage ? (
|
||||
<div className="flex items-center justify-between p-4 border-t border-border">
|
||||
<div className="flex flex-col gap-1">
|
||||
<span className="text-sm">{config.appName} v{appVersion} - © {new Date().getFullYear()} | <a href={'https://github.com/' + config.appRepo + '/blob/main/LICENSE'} target="_blank">MIT License</a></span>
|
||||
<span className="text-xs text-muted-foreground">Made with ❤️ by <a href={config.appAuthorUrl} target="_blank">{config.appAuthor}</a></span>
|
||||
<span className="text-xs text-muted-foreground">Made with <Heart className="inline size-3 mb-0.5 fill-primary stroke-primary"/> by <a href={config.appAuthorUrl} target="_blank">{config.appAuthor}</a></span>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<a href={config.appHomepage} target="_blank" className="text-sm text-muted-foreground hover:text-foreground" title="Homepage">
|
||||
|
||||
Reference in New Issue
Block a user