feat/0.2:add theme setting and about page setting and support use email and password login

This commit is contained in:
lethe committed 2025-07-24 10:28:42 +08:00
1 parent 58292b0e6e
commit ca2b732952
85 files changed
+5797 -816

No files matched your search

@@ -0,0 +1,55 @@
"use client";
import React from "react";
import { Button } from "@nextui-org/react";
import { useTranslation } from "react-i18next";
import { DynamicLogo } from "@/shared/components/DynamicLogo";
import { useAuth } from "@/shared/lib/useAuth";
import Link from "next/link";
import { NavigationItem } from "@/shared/components/Navigation";
interface NavigationProps {
items?: NavigationItem[];
}
export const Navigation: React.FC<NavigationProps> = ({ items }) => {
const { t } = useTranslation();
const { handleLogin } = useAuth();
return (
<div className="fixed top-0 left-0 right-0 z-50">
{/* Classic Header */}
<div className="bg-slate-800 text-white px-4 py-2 ">
<div className="flex items-center justify-between max-w-7xl mx-auto">
<div className="flex items-center space-x-2">
<DynamicLogo alt="Platform Logo" className="h-[20px] text-white" />
</div>
<div className="flex space-x-2">
<Button
color="primary"
className="bg-red-600 hover:bg-red-700 text-white text-sm px-4 py-1 rounded-sm font-medium"
size="sm"
onPress={handleLogin}
>
{t("Get Started")}
</Button>
</div>
</div>
</div>
{/* Classic Navigation */}
<div className="bg-gray-100 border-b border-gray-300 px-4 py-2">
<div className="flex items-center justify-between max-w-7xl mx-auto">
<div className="flex space-x-6">
{items?.map((item) => (
<Link href={item.href} className="text-sm text-gray-500">
{t(item.label)}
</Link>
))}
</div>
</div>
</div>
</div>
);
};