Skip to content

Commit

Permalink
Merge pull request #333 from aversini/docs-simpler-footer-and-better-…
Browse files Browse the repository at this point in the history
…background-color-on-small-devices

docs: simpler footer and better background color on small devices
  • Loading branch information
aversini authored Feb 20, 2024
2 parents 6a2d683 + 352eca9 commit 426499c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
37 changes: 13 additions & 24 deletions packages/documentation/.ladle/components.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import "./styles.css";

import {
ButtonIcon,
Flexgrid,
FlexgridItem,
Footer,
IconGitHub,
} from "@versini/ui-components";
import { ButtonIcon, Footer, IconGitHub } from "@versini/ui-components";

import type { GlobalProvider } from "@ladle/react";
import clsx from "clsx";
Expand Down Expand Up @@ -58,26 +52,21 @@ export const Provider: GlobalProvider = ({
<Footer
kind="light"
row1={
<Flexgrid alignHorizontal="center" alignVertical="center">
<FlexgridItem className="text-copy-lighter">
UI Components v{import.meta.env.BUILDVERSION} -
</FlexgridItem>
<FlexgridItem>
<ButtonIcon
noBorder
size="small"
kind="light"
label="link to UI Components GitHub repository"
onClick={handleOnClickGitHub}
>
<IconGitHub decorative />
</ButtonIcon>
</FlexgridItem>
</Flexgrid>
<ButtonIcon
noBorder
size="small"
kind="light"
spacing={{ b: 2 }}
label="link to UI Components GitHub repository"
onClick={handleOnClickGitHub}
>
<IconGitHub decorative />
</ButtonIcon>
}
row2={
<div className="text-copy-lighter">
&copy; {new Date().getFullYear()} {import.meta.env.OWNER}
UI Components v{import.meta.env.BUILDVERSION} - &copy;{" "}
{new Date().getFullYear()} {import.meta.env.OWNER}
</div>
}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/.ladle/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
"Form-components*",
],
appendToHead: `
<style>.ladle-background {background-color:rgb(100 116 139)}</style>
<style>html, body, .ladle-background {background-color:rgb(100 116 139)}</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
Expand Down

0 comments on commit 426499c

Please sign in to comment.