Implement footer

This commit is contained in:
Pedro Piñera 2020-12-30 13:54:27 +01:00
parent 083bd54093
commit cae81e7ce9
2 changed files with 108 additions and 18 deletions

View File

@ -2,6 +2,7 @@ import React from 'react'
import tw from 'twin.macro' import tw from 'twin.macro'
import useSiteLinks from '../hooks/useSiteLinks' import useSiteLinks from '../hooks/useSiteLinks'
import logo from '../images/logo.svg' import logo from '../images/logo.svg'
import blogIcon from './images/blog_icon.svg'
const Footer = () => { const Footer = () => {
const links = useSiteLinks() const links = useSiteLinks()
@ -10,7 +11,7 @@ const Footer = () => {
<footer css={[tw`font-tuist flex flex-col items-center py-20`]}> <footer css={[tw`font-tuist flex flex-col items-center py-20`]}>
<div <div
css={[ css={[
tw`mx-10 md:mx-auto md:max-w-2xl flex flex-col items-center space-y-6`, tw`mx-10 md:mx-auto md:max-w-2xl flex flex-col items-center space-y-5`,
]} ]}
> >
<div css={[tw`flex flex-row space-x-2 items-center`]}> <div css={[tw`flex flex-row space-x-2 items-center`]}>
@ -18,34 +19,117 @@ const Footer = () => {
<div css={[tw`text-2xl font-normal`]}>tuist</div> <div css={[tw`text-2xl font-normal`]}>tuist</div>
</div> </div>
<div <div
css={[tw`flex flex-row flex-wrap space-x-3 justify-center text-lg`]} css={[
tw`text-lg flex flex-col items-center space-y-2 md:flex-row md:flex-wrap md:space-x-3 md:justify-center`,
]}
>
<a
target="__blank"
css={css}
aria-label="Learn how to get started with Tuist"
> >
<a target="__blank" css={css}>
Get started Get started
</a> </a>
<a target="__blank" css={css}> <a
target="__blank"
css={css}
aria-label="Read more about the APIs to define your projects"
>
Manifest specification Manifest specification
</a> </a>
<a target="__blank" css={css}> <a
target="__blank"
css={css}
aria-label="Learn about how to declare dependencies in your Tuist projects."
>
Dependencies Dependencies
</a> </a>
<a target="__blank" css={css}> <a
target="__blank"
css={css}
aria-label="Check out the list of contributors that make Tuist possible."
>
Contributors Contributors
</a> </a>
<a href={links.slack} target="__blank" css={css}> </div>
<div
css={[
tw`text-lg flex flex-col items-center space-y-2 md:flex-row md:flex-wrap md:space-x-3 md:justify-center`,
]}
>
<div css={[tw`flex flex-row space-x-1 items-center`]}>
<svg
css={[tw`w-5 h-5 fill-current text-gray-400`]}
aria-hidden="true"
role="img"
viewBox="0 0 448 512"
>
<path
fill="currentColor"
d="M94.12 315.1c0 25.9-21.16 47.06-47.06 47.06S0 341 0 315.1c0-25.9 21.16-47.06 47.06-47.06h47.06v47.06zm23.72 0c0-25.9 21.16-47.06 47.06-47.06s47.06 21.16 47.06 47.06v117.84c0 25.9-21.16 47.06-47.06 47.06s-47.06-21.16-47.06-47.06V315.1zm47.06-188.98c-25.9 0-47.06-21.16-47.06-47.06S139 32 164.9 32s47.06 21.16 47.06 47.06v47.06H164.9zm0 23.72c25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06H47.06C21.16 243.96 0 222.8 0 196.9s21.16-47.06 47.06-47.06H164.9zm188.98 47.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06s-21.16 47.06-47.06 47.06h-47.06V196.9zm-23.72 0c0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06V79.06c0-25.9 21.16-47.06 47.06-47.06 25.9 0 47.06 21.16 47.06 47.06V196.9zM283.1 385.88c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06-25.9 0-47.06-21.16-47.06-47.06v-47.06h47.06zm0-23.72c-25.9 0-47.06-21.16-47.06-47.06 0-25.9 21.16-47.06 47.06-47.06h117.84c25.9 0 47.06 21.16 47.06 47.06 0 25.9-21.16 47.06-47.06 47.06H283.1z"
/>
</svg>
<a
href={links.slack}
target="__blank"
css={css}
aria-label="Join the Slack group of Tuist's community."
>
Slack Slack
</a> </a>
<a href={links.githubOrganization} target="__blank" css={css}> </div>
<div css={[tw`flex flex-row space-x-1 items-center`]}>
<svg
css={[tw`w-5 h-5 fill-current text-gray-400`]}
aria-hidden="true"
role="img"
viewBox="0 0 448 512"
>
<path
fill="currentColor"
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
/>
</svg>
<a
href={links.githubOrganization}
target="__blank"
css={css}
aria-label="Open the organization on GitHub."
>
GitHub GitHub
</a> </a>
<a target="__blank" css={css}> </div>
<div css={[tw`flex flex-row space-x-1 items-center`]}>
<img src={blogIcon} />
<a target="__blank" css={css} aria-label="Read Tuist's blog">
Blog Blog
</a> </a>
<a href={links.releases} target="__blank" css={css}> </div>
<div css={[tw`flex flex-row space-x-1 items-center`]}>
<svg
css={[tw`w-5 h-5 fill-current text-gray-400`]}
aria-hidden="true"
role="img"
viewBox="0 0 448 512"
>
<path
fill="currentColor"
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
/>
</svg>
<a
href={links.releases}
target="__blank"
css={css}
aria-label="Check out Tuist releases."
>
Releases Releases
</a> </a>
</div> </div>
</div> </div>
</div>
</footer> </footer>
) )
} }

View File

@ -0,0 +1,6 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="format_color_text_24px">
<path id="Shape" d="M0 15.4165H20V18.7498H0V15.4165Z" fill="black" fill-opacity="0.25"/>
<path id="Subtract" fill-rule="evenodd" clip-rule="evenodd" d="M4.58325 12.9167L9.16659 1.25H10.8333L15.4083 12.9167H13.5333L12.5999 10.4167H7.39159L6.45825 12.9167H4.58325ZM9.99989 3.47503L8.01656 8.75003H11.9832L9.99989 3.47503Z" fill="black" fill-opacity="0.25"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 496 B