Skip to content

Commit

Permalink
Minor final fixes in website
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes committed May 16, 2022
1 parent ca99c44 commit 307b857
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
27 changes: 16 additions & 11 deletions website/src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,30 +15,35 @@ const FOOTER_LINKS = [
// {"to": "/privacy", "text": "Privacy"},
];

// External link wrapper
const ExternalLink = props => (
<Link to={props.to} target="_blank" className="has-text-gray-700 has-text-blue-500-hover">
<strong>{props.text}</strong>
</Link>
);

export const Footer = props => {
const items = props.links || FOOTER_LINKS;
const itemClass ="has-text-gray-700 has-text-blue-500-hover is-not-underlined";
return (
<div className="container has-pt-12 has-pb-24">
<hr />
<div className="has-w-full has-mt-6">
<div className="title is-4 has-mb-2">
<i className="icon-siimple has-mr-2" />
<strong className="siimple">siimple.</strong>
<div className="has-w-full has-mt-12">
<div className="has-mb-2">
<i className="icon-siimple has-mr-2 has-size-6" />
</div>
<div className="paragraph has-mb-0 has-text-gray-500">
Designed, built and maintained with a lot of <i className="icon-heart" /> by
<Link to="https://github.com/jmjuanes" target="_blank" className="has-weight-bold"> @jmjuanes</Link>.
Designed, built and maintained with by <ExternalLink to="https://github.com/jmjuanes" text="@jmjuanes" />.
</div>
<div className="paragraph has-mb-0 has-text-gray-500">
Code is licensed under <Link to={LICENSES.mit} target="_blank" className="has-weight-bold">MIT</Link>,
documentation under <Link to={LICENSES.cc} target="_blank" className="has-weight-bold">Creative Commons Attribution 4.0</Link>.
Code is licensed under <ExternalLink to={LICENSES.mit} text="MIT" />,
documentation under <ExternalLink to={LICENSES.cc} text="Creative Commons Attribution 4.0" />.
</div>
{/* Available links */}
<div className="has-pt-4 has-size-0 has-weight-bold">
<div className="is-inline-block has-mr-4">v{process.env.VERSION}</div>
<div className="has-pt-4 has-size-0">
<div className="is-inline-block has-mr-4 has-text-gray-500">v{process.env.VERSION}</div>
{items.map((item, key) => (
<div key={key} className="is-inline-block has-mr-4">
<div key={key} className="is-inline-block has-mr-4 has-weight-bold">
<Link className={itemClass} {...item} />
</div>
))}
Expand Down
7 changes: 4 additions & 3 deletions website/src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import {Icon} from "./Icon.js";
const items = [
{
text: "Getting started",
icon: "rocket",
href: "/getting-started",
},
{
text: "Playground",
icon: "code",
icon: "external-link",
href: process.env.PLAYGROUND_URL,
target: "_blank",
},
Expand All @@ -20,7 +19,9 @@ const items = [
// Navigation link
const NavLink = props => (
<Link to={props.href} target={props.target} className="navlink is-flex has-items-center has-bg-gray-100-hover">
<Icon icon={props.icon} className="has-mr-2 has-size-2" />
{kofi.when(!!props.icon, () => (
<Icon icon={props.icon} className="has-mr-2 has-size-2" />
))}
<div className="has-weight-bold">{props.text}</div>
</Link>
);
Expand Down

0 comments on commit 307b857

Please sign in to comment.