From 780c6b7e90dd76427156ef9d92ebe22f2e196de5 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 8 Apr 2021 17:13:15 +0200 Subject: [PATCH] news --- .../src/components/Icons/ArrowUpCircle.svg | 2 +- packages/website/src/pages/about.js | 27 ++++++++------- packages/website/src/pages/developers.js | 2 +- packages/website/src/templates/news-post.js | 34 +++++++++++++++++-- 4 files changed, 49 insertions(+), 16 deletions(-) diff --git a/packages/website/src/components/Icons/ArrowUpCircle.svg b/packages/website/src/components/Icons/ArrowUpCircle.svg index 96b076f7..07422061 100644 --- a/packages/website/src/components/Icons/ArrowUpCircle.svg +++ b/packages/website/src/components/Icons/ArrowUpCircle.svg @@ -1,3 +1,3 @@ - + diff --git a/packages/website/src/pages/about.js b/packages/website/src/pages/about.js index 7929d721..45fd4449 100644 --- a/packages/website/src/pages/about.js +++ b/packages/website/src/pages/about.js @@ -61,6 +61,7 @@ const aboutCards = [ }, ]; +const showCareersCTA = false; // change to true to display the careers CTA section const careers = { href: "https://jobs.lever.co/nebulous", target: "_blank", rel: "noopener noreferrer" }; const paginate = (array, size) => @@ -253,18 +254,20 @@ const AboutPage = ({ ...props }) => { -
- - - -

- Join us! We're looking for talented & passionate individuals to join our team. Check out our job - postings today. -

- - - -
+ {showCareersCTA && ( +
+ + + +

+ Join us! We're looking for talented & passionate individuals to join our team. Check out our job + postings today. +

+ + + +
+ )} diff --git a/packages/website/src/pages/developers.js b/packages/website/src/pages/developers.js index 93425d8c..924f4001 100644 --- a/packages/website/src/pages/developers.js +++ b/packages/website/src/pages/developers.js @@ -151,7 +151,7 @@ const DevelopersPage = () => (
Join a community of builders already using Skynet -
+
diff --git a/packages/website/src/templates/news-post.js b/packages/website/src/templates/news-post.js index 37b00e2d..6df9c9c3 100644 --- a/packages/website/src/templates/news-post.js +++ b/packages/website/src/templates/news-post.js @@ -1,10 +1,11 @@ import * as React from "react"; import { graphql } from "gatsby"; -import { Section, SectionTitle } from "../components/Layout"; +import { Section, SectionTitle, Label } from "../components/Layout"; import { NewsSummary } from "../components/News"; import Seo from "../components/seo"; +import Link from "../components/Link"; import { TwitterShareButton, LinkedinShareButton, FacebookShareButton } from "react-share"; -import { TwitterSmall, LinkedinSmall, FacebookSmall } from "../components/Icons"; +import { TwitterSmall, LinkedinSmall, FacebookSmall, ArrowUpCircle } from "../components/Icons"; const BlogPostTemplate = ({ data, location }) => { const post = data.markdownRemark; @@ -17,7 +18,25 @@ const BlogPostTemplate = ({ data, location }) => { <>
+ + + + Go back + + +
+ {post.frontmatter.categories && ( +
+ {post.frontmatter.categories.map((category) => ( + + ))} +
+ )} + {post.frontmatter.title} @@ -59,6 +78,16 @@ const BlogPostTemplate = ({ data, location }) => {
+ + + + + Go back + +
); @@ -81,6 +110,7 @@ export const pageQuery = graphql` title date(formatString: "MMMM DD, YYYY") description + categories author avatar { childImageSharp {