Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Updated footer links to artwork #87

Merged
merged 1 commit into from
Oct 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions site/src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const PostItem = ({title, image, url, excerpt}) => {
const { postItemImages } = getPostImages();

const postImage = postItemImages.edges.find(({node}) => {
if (node.relativePath == image) return node;
if (node.relativePath === image) return node;
});

return (
Expand Down Expand Up @@ -156,6 +156,14 @@ const Footer = ({slug}) => {
}
}

art: file(relativePath: { eq: "posts/edge_of_collapse_725914.png" }) {
childImageSharp {
fluid {
...GatsbyImageSharpFluid
}
}
}

featuredPosts: allMarkdownRemark(filter: {frontmatter: {featured: {eq: true}}},
sort: {fields: frontmatter___date, order: DESC})
{
Expand Down Expand Up @@ -204,27 +212,27 @@ const Footer = ({slug}) => {
imagePosition={featured.listimage_position} />
</section>
<section>
<Title>Latest talk</Title>
<Title>Artworks</Title>
<FooterImageLink>
<OutboundLink href="https://www.youtube.com/watch?v=3C3lHuRToQs">
<OutboundLink href="https://www.voice.com/ajfisher">
<Img
fluid={data.jsFoo.childImageSharp.fluid}
alt="YouTube - JSFoo, India"
fluid={data.art.childImageSharp.fluid}
alt="Generative artwork - At the Edge of Collapse"
/>
</OutboundLink>
</FooterImageLink>
<p>
<OutboundLink href="https://www.youtube.com/watch?v=3C3lHuRToQs">
Droids, JavaScript and Web Connected Hardware, JSFoo, India
<OutboundLink href="https://www.voice.com/ajfisher">
Generative artworks available for purchase as NFTs from Voice
</OutboundLink>
</p>
<p>
Dive into the world of JS hardware and see the sorts of things
people are doing with it with some demos along the way.
Dive into the world of NFTs using an environmentally sustainable
platform.
</p>
</section>
<section>
<Title>My books</Title>
<Title>My Books</Title>
<FooterImageLink position="50% 100%">
<OutboundLink href="https://www.amazon.com/JavaScript-Robotics-Johnny-Five-Raspberry-BeagleBone/dp/1457186950/">
<Img
Expand Down
Binary file added site/src/img/posts/edge_of_collapse_725914.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.