Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/components/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ export const EditorScreen = () => {
)}
>
<img
src="https://cdn.casbin.org/img/casbin_logo_1024x256.png"
alt="Casbin Logo"
className="h-8 w-auto"
src="/favicon.png"
alt="Casbin"
className="h-8 w-8 rounded-md"
/>
<span className={clsx('text-xl font-semibold', textClass)}>{t('Policy Editor')}</span>
<a
Expand Down
2 changes: 1 addition & 1 deletion app/components/editor/panels/SidePanelChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const SidePanelChat = forwardRef<any, { onOpenChange?: (open: boolean) => void;
<div className={isOpen ? 'block h-full' : 'hidden'}>
<div className="flex items-center justify-between p-4 border-b">
<a href="https://casdoor.com" target="_blank" rel="noreferrer" className="inline-flex items-center">
<img src="https://casbin.org/img/casbin.svg" alt="help" className="h-5 w-5 mr-2" />
<img src="/favicon.png" alt="Casbin" className="h-5 w-5 mr-2 rounded-sm" />
<div>AI Assistant</div>
</a>
<button onClick={toggleDrawer} className="text-gray-500 hover:text-gray-700">
Expand Down
17 changes: 9 additions & 8 deletions app/gallery/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export default function GalleryPage() {
<ArrowLeft className="w-6 h-6" />
</button>
<img
src="https://cdn.casbin.org/img/casbin_logo_1024x256.png"
alt="Casbin Logo"
className="h-8 w-auto"
src="/favicon.png"
alt="Casbin"
className="h-8 w-8 rounded-md"
/>
<h1 className={clsx('text-3xl font-bold', textClass)}>
{t('Model Gallery')}
Expand Down Expand Up @@ -313,12 +313,13 @@ export default function GalleryPage() {
target="_blank"
rel="noopener noreferrer"
href="https://github.com/casbin/casbin-editor"
className="transition-transform hover:scale-105 rounded-lg overflow-hidden shadow-md hover:shadow-xl"
className={clsx(
'inline-flex items-center gap-2 rounded-lg px-4 py-2 shadow-md transition-all hover:scale-105 hover:shadow-xl',
'bg-white/10 text-slate-100 hover:bg-white/15',
)}
>
<img
alt="GitHub stars"
src="https://img.shields.io/github/stars/casbin/casbin-editor?style=social"
/>
<img src="/github.svg" alt="" aria-hidden="true" className="h-5 w-5 invert" />
<span className="text-sm font-medium">GitHub</span>
</a>
<span className="text-slate-300 text-sm font-medium">
{t('Copyright').replace('{year}', new Date().getFullYear().toString())}
Expand Down
14 changes: 9 additions & 5 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { clsx } from 'clsx';
import { useLang } from '@/app/context/LangContext';

export default function Home() {
const { theme } = useLang();
const { theme, t } = useLang();
return (
<main
className={clsx(
Expand All @@ -41,20 +41,24 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
href="https://github.com/casbin/casbin-editor"
className="transition-transform hover:scale-105 rounded-lg overflow-hidden shadow-md hover:shadow-xl"
className={clsx(
'inline-flex items-center gap-2 rounded-lg px-4 py-2 shadow-md transition-all hover:scale-105 hover:shadow-xl',
'bg-white/10 text-slate-100 hover:bg-white/15',
)}
>
<img alt="GitHub stars" src="https://img.shields.io/github/stars/casbin/casbin-editor?style=social" />
<img src="/github.svg" alt="" aria-hidden="true" className="h-5 w-5 invert" />
<span className="text-sm font-medium">GitHub</span>
</a>
<span className="text-slate-300 text-sm font-medium">
Copyright © {new Date().getFullYear()} Casbin contributors.
{t('Copyright').replace('{year}', new Date().getFullYear().toString())}
</span>
<a
target="_blank"
rel="noopener noreferrer"
href="https://discord.gg/S5UjpzGZjN"
className="flex items-center gap-2 text-slate-300 hover:text-white transition-colors duration-200"
>
<img src="/discord.svg" alt="Discord" className="w-5 h-5 invert-[0.8]" />
<img src="/discord.svg" alt="" aria-hidden="true" className="w-5 h-5 invert-[0.8]" />
<span className="text-sm font-medium">Casbin Discord</span>
</a>
</div>
Expand Down