Skip to content

Commit

Permalink
docs: style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
francisco-guilherme committed Nov 4, 2024
1 parent 220a38b commit 9a59500
Show file tree
Hide file tree
Showing 44 changed files with 473 additions and 597 deletions.
131 changes: 0 additions & 131 deletions apps/docs/src/components/Classes.tsx

This file was deleted.

113 changes: 0 additions & 113 deletions apps/docs/src/components/Description.tsx

This file was deleted.

71 changes: 71 additions & 0 deletions apps/docs/src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { UIKitLogo } from "@docs/components/logo/uikit";

const footerLinks = [
{
title: "Project",
links: [
{ label: "Get Started", href: "/documentation/get-started" },
{ label: "Contribute", href: "/documentation/contribute/" },
{ label: "Changelog", href: "/documentation/changelog/" },
{ label: "Releases", href: "https://github.com/lumada-design/hv-uikit-react/releases" },
],
},
{
title: "Documentation",
links: [
{ label: "Docs", href: "/documentation/" },
{ label: "Components", href: "/components" },
{ label: "Charts", href: "/charts" },
{ label: "Examples", href: "/examples" },
],
},
{
title: "Community",
links: [
{ label: "Team", href: "/" },
{ label: "Slack", href: "https://hitachivantara-eng.slack.com/archives/CFY74GK6G" },
{ label: "GitHub", href: "https://github.com/lumada-design/hv-uikit-react" },
{ label: "License", href: "/" },
],
},
];

export const Footer = () => {
return (
<footer className="py-6 border-t border-[var(--uikit-colors-atmo2)]">
<div className="max-w-[44rem] mx-auto px-4">
<div className="flex flex-col md:flex-row md:justify-between space-y-4 md:space-y-0">

{/* Logo Section with More Space */}
<div className="flex flex-col items-center md:items-start mb-4 md:mb-0 flex-grow">
<a aria-label="UIKit" href="/" className="flex items-center space-x-2">
<UIKitLogo />
</a>
<p className="text-sm mt-2">by Hitachi Vantara © 2024</p>
</div>

{/* Link Groups Right-Aligned */}
<div className="grid grid-cols-3 gap-4 text-left">
{footerLinks.map((group) => (
<div
key={group.title}
className="flex flex-col min-w-[150px] ml-5"
>
<p className="font-semibold text-[var(--uikit-colors-primary)] mb-1">{group.title}</p>
{group.links.map((link) => (
<a
key={link.label}
href={link.href}
className="hover:text-[var(--uikit-colors-primary)] pb-1"
>
{link.label}
</a>
))}
</div>
))}
</div>
</div>
</div>
</footer>
);
};
6 changes: 5 additions & 1 deletion apps/docs/src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { useTheme } from "nextra-theme-docs";
import { ds5, HvProvider, pentahoPlus } from "@hitachivantara/uikit-react-core";
import { HvVizProvider } from "@hitachivantara/uikit-react-viz";

import { Footer } from "./Footer";

export const Main = ({ children }: { children: React.ReactNode }) => {
const { resolvedTheme } = useTheme();

Expand All @@ -11,7 +13,9 @@ export const Main = ({ children }: { children: React.ReactNode }) => {
theme="pentahoPlus"
colorMode={resolvedTheme === "dark" ? "wicked" : "dawn"}
>
<HvVizProvider>{children}</HvVizProvider>
<HvVizProvider>
{children}
</HvVizProvider>
</HvProvider>
);
};
Loading

0 comments on commit 9a59500

Please sign in to comment.