-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { UkIcon } from '@llm/ui'; | ||
import { useI18n } from '~/i18n'; | ||
|
||
export function Footer() { | ||
const t = useI18n().pack.footer; | ||
|
||
return ( | ||
<footer className="py-12 w-full"> | ||
<div className="mx-auto px-4 container"> | ||
<div className="flex flex-col items-center gap-6 text-sm"> | ||
<div className="text-gray-400"> | ||
© | ||
{' '} | ||
{new Date().getFullYear()} | ||
{' '} | ||
DashHub. | ||
{' '} | ||
{t.copyright} | ||
{' '} | ||
• | ||
{' '} | ||
{t.madeWith} | ||
<span className="mx-1">❤️</span> | ||
{t.withAI} | ||
</div> | ||
|
||
<div className="flex items-center gap-8"> | ||
<a | ||
href="https://github.com/DashHub-ai/DashHub" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="flex items-center gap-2 text-gray-400 hover:text-gray-500" | ||
> | ||
<UkIcon icon="github" size={16} /> | ||
{t.github} | ||
</a> | ||
<a | ||
href="https://blog.dashhub.ai" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="flex items-center gap-2 text-gray-400 hover:text-gray-500" | ||
> | ||
<UkIcon icon="newspaper" size={16} /> | ||
{t.blog} | ||
</a> | ||
<a | ||
href="https://docs.dashhub.ai" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="flex items-center gap-2 text-gray-400 hover:text-gray-500" | ||
> | ||
<UkIcon icon="book" size={16} /> | ||
{t.docs} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './footer'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
import type { PropsWithChildren } from 'react'; | ||
|
||
import { Footer } from './footer'; | ||
import { Navigation } from './navigation'; | ||
|
||
export function PageWithNavigationLayout({ children }: PropsWithChildren) { | ||
return ( | ||
<main className="hidden flex-col md:flex min-h-screen bg-gray-50"> | ||
<main className="md:flex flex-col hidden bg-gray-50 min-h-screen"> | ||
<Navigation /> | ||
<div className="flex-1 space-y-8 p-4 pt-6 container mx-auto"> | ||
<div className="flex-1 space-y-8 mx-auto p-4 pt-6 container"> | ||
{children} | ||
</div> | ||
<Footer /> | ||
</main> | ||
); | ||
} |