Skip to content

Commit

Permalink
Add built by Thesis footer element
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowfiend committed Aug 19, 2024
1 parent 43948bf commit a662d9f
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 21 deletions.
30 changes: 19 additions & 11 deletions src/components/lib/Footer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import React from "react"
import { StaticQuery, graphql } from "gatsby"
import PropTypes from "prop-types"

import Image from "./Image"
import Link from "../LocaleLink"
import TBTCLogo from '../svgs/TBTCLogo'

import TBTCLogo from "../svgs/TBTCLogo"
import ThesisLogo from "../svgs/thesis-logo"

const FooterTemplate = ({
nav_columns: navColumns,
Expand All @@ -23,7 +23,10 @@ const FooterTemplate = ({
<ul key={`nav-column-${i}`}>
{col.items.map((item, j) => (
<li key={`nav-item-${j}`}>
<Link to={item.url} className={item.icon ? "icon-link" : ""}>
<Link
to={item.url}
className={item.icon ? "icon-link" : ""}
>
{item.icon ? <Image imageData={item.icon} /> : ""}
{item.label}
</Link>
Expand All @@ -33,8 +36,12 @@ const FooterTemplate = ({
))}
</nav>
</div>
<div className="copyright col-sm-12 col-lg-10">
{copyright}
<div className="copyright col-sm-6 col-lg-5">{copyright}</div>
<div className="built-by col-sm-6 col-lg-5">
Built by{" "}
<a href="https://thesis.co">
<ThesisLogo />
</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -75,16 +82,17 @@ export const query = graphql`
const Footer = ({ locale = "en" }) => (
<StaticQuery
query={query}
render={data => {
const match = data.allMarkdownRemark.edges
.find(e => e.node.fields.locale === locale)
render={(data) => {
const match = data.allMarkdownRemark.edges.find(
(e) => e.node.fields.locale === locale
)
return <FooterTemplate {...match.node.frontmatter} locale={locale} />
}}
/>
)

Footer.propTypes = {
locale: PropTypes.string
locale: PropTypes.string,
}

export default Footer
28 changes: 26 additions & 2 deletions src/css/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,31 @@ footer {
}
}

.copyright {
.built-by {
text-align: right;

a {
color: white;

&:after {
display: none;
}

> svg {
// Simulate an underline that shows up on hover.
border-bottom: 1px solid black;
padding-bottom: 3px;
height: 24px;
margin-bottom: -5px;
}

&:hover > svg {
border-bottom-color: white;
}
}
}

.copyright, .built-by {
margin: calc(2 * var(--baseline-grid-height-2x)) 0 0;
@extend %p2;
}
Expand Down Expand Up @@ -119,7 +143,7 @@ footer {
}
}

.copyright {
.copyright, .built-by {
margin: var(--baseline-grid-height-2x) 0 0;
}
}
Expand Down
16 changes: 8 additions & 8 deletions src/pages/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ supporters:
name: Threshold Network
url: 'https://threshold.network'
- description: >-
Keep was a privacy layer for Ethereum created by
[Thesis](https://thesis.co). A “keep” is an off-chain container for
private data. Keeps help contracts harness the full power of the public
blockchain — enabling deep interactivity with private data. The Keep
network, powered by KEEP tokens, handled custodianship for tBTC v1. It
has been operationally superseded by the Threshold Network for tBTC v2,
an upgraded, more scalable, and more efficient version of tBTC built by
Thesis and operated by Threshold since 2022.
Keep was a privacy layer for Ethereum created by Thesis. A “keep” is an
off-chain container for private data. Keeps help contracts harness the
full power of the public blockchain — enabling deep interactivity with
private data. The Keep network, powered by KEEP tokens, handled
custodianship for tBTC v1. It has been operationally superseded by the
Threshold Network for tBTC v2, an upgraded, more scalable, and more
efficient version of tBTC built by Thesis and operated by Threshold since
2022.
name: Keep
url: 'https://keep.network/'
---
Expand Down

0 comments on commit a662d9f

Please sign in to comment.