From f57d34874366e535b720a3d1ef6324a238ebaa33 Mon Sep 17 00:00:00 2001 From: Andy Tudhope <13001517+andytudhope@users.noreply.github.com> Date: Thu, 6 Nov 2025 12:31:28 -0300 Subject: [PATCH] Re-cycling --- content/en/learn/module-2/index.mdx | 8 -------- content/en/learn/module-3/index.mdx | 16 ---------------- content/en/learn/module-4/index.mdx | 24 ++++++++---------------- content/en/learn/module-5/index.mdx | 16 ---------------- content/en/learn/module-6/index.mdx | 16 ---------------- content/en/learn/module-7/index.mdx | 16 ---------------- gatsby-config.js | 17 ----------------- package.json | 3 +-- src/modules/flashcard/flash.js | 4 ++-- src/modules/layouts/global.css | 5 +++-- src/modules/testimonials/Card.js | 20 ++++++++++---------- src/modules/ui/Button.js | 8 ++++---- src/modules/ui/FlipCard.js | 18 +++++++++++++----- src/modules/utility/seo.js | 8 ++++++-- src/pages/en/blog.js | 12 ++++++------ 15 files changed, 53 insertions(+), 138 deletions(-) diff --git a/content/en/learn/module-2/index.mdx b/content/en/learn/module-2/index.mdx index 542cf2481b..2df5775947 100644 --- a/content/en/learn/module-2/index.mdx +++ b/content/en/learn/module-2/index.mdx @@ -62,12 +62,4 @@ speech - into the very belly of the beast. Buckle up friends: it's gonna be a bu - - -**Kevin Owocki - July 23, 2020** - - - \ No newline at end of file diff --git a/content/en/learn/module-3/index.mdx b/content/en/learn/module-3/index.mdx index 0b46da9100..87560dca30 100644 --- a/content/en/learn/module-3/index.mdx +++ b/content/en/learn/module-3/index.mdx @@ -64,22 +64,6 @@ While the first two pillars point to internal or introspective work, it is criti - - -**Juan Benet - July 30, 2020** - - - - - -**David Vorick and Manasi Vora - Feb 4, 2021** - - - diff --git a/content/en/learn/module-4/index.mdx b/content/en/learn/module-4/index.mdx index 7635ff5e82..d91d0481ea 100644 --- a/content/en/learn/module-4/index.mdx +++ b/content/en/learn/module-4/index.mdx @@ -40,41 +40,33 @@ In particular, we will make the claim this week that we can indeed [build for be -**Kei Kreutler & Aaron Lewis - October 14, 2022** - - - - - -**Yancey Strickler - October 28, 2021** +**Ethan Buchman - October 30, 2025** - -**Andy Tudhope - June 17, 2021** +**Kei Kreutler & Aaron Lewis - October 14, 2022** - -**Mariano Conti - Feb 11, 2021** +**Yancey Strickler - October 28, 2021** - -**Dandelion Mane - August 6 2020** +**Andy Tudhope - June 17, 2021** - diff --git a/content/en/learn/module-5/index.mdx b/content/en/learn/module-5/index.mdx index db87b51fe1..c45f04f792 100644 --- a/content/en/learn/module-5/index.mdx +++ b/content/en/learn/module-5/index.mdx @@ -67,20 +67,4 @@ If you'd like to explore some interesting case studies in order to contextualise - - -**Bea Ramos and Sparrow - Feb 18, 2021** - - - - - -**Andy Tudhope - August 13, 2020** - - - diff --git a/content/en/learn/module-6/index.mdx b/content/en/learn/module-6/index.mdx index 9a9659dda6..a41ff0fd00 100644 --- a/content/en/learn/module-6/index.mdx +++ b/content/en/learn/module-6/index.mdx @@ -47,20 +47,4 @@ play with one another. - - -**Vitalik Buterin - Feb 25, 2021** - - - - - -**Dany Ryan - Aug 20, 2020** - - - diff --git a/content/en/learn/module-7/index.mdx b/content/en/learn/module-7/index.mdx index 097f1ecd54..0e00bc4ad3 100644 --- a/content/en/learn/module-7/index.mdx +++ b/content/en/learn/module-7/index.mdx @@ -105,20 +105,4 @@ we would like to dedicate this module to [the intergalactic memory of David Grae - - -**Vitalik Buterin - Aug 27, 2020** - - - - - -**Andy Tudhope - March 4, 2021** - - - \ No newline at end of file diff --git a/gatsby-config.js b/gatsby-config.js index c073f67877..61d5e068cb 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -265,23 +265,6 @@ module.exports = { theme_color_in_head: false, }, }, - // this (optional) plugin enables Progressive Web App + Offline functionality - // To learn more, visit: https://gatsby.dev/offline - // { - // resolve: 'gatsby-redirect-from', - // options: { - // query: 'allMdx' - // } - // }, `gatsby-plugin-client-side-redirect`, //<- NOTE(Rejon): We're only using this because we're using Github Pages. If we're on vercel or netlify just use their redirect scripts. - // `gatsby-plugin-meta-redirect`, - { - resolve: 'gatsby-plugin-offline', - options: { - workboxConfig: { - globPatterns: ['**/images/icons/icon-512x512.png'], - }, - }, - }, ], } diff --git a/package.json b/package.json index 4d76c781df..070100878b 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "gatsby-plugin-lunr": "^1.5.2", "gatsby-plugin-manifest": "^3.15.0", "gatsby-plugin-mdx": "^2.15.0", - "gatsby-plugin-offline": "^4.15.0", "gatsby-plugin-page-creator": "^3.15.0", "gatsby-plugin-preload-link-crossorigin": "^1.0.2", "gatsby-plugin-react-helmet": "^4.15.0", @@ -103,4 +102,4 @@ "bugs": { "url": "https://github.com/kernel-community/kernel-v2/issues" } -} \ No newline at end of file +} diff --git a/src/modules/flashcard/flash.js b/src/modules/flashcard/flash.js index e7973422e0..48dc371fcd 100644 --- a/src/modules/flashcard/flash.js +++ b/src/modules/flashcard/flash.js @@ -123,8 +123,8 @@ const Flash = ({ children }) => { completed ? 'completed' : isCurrentlyRevealed - ? 'active' - : 'inactive' + ? 'active' + : 'inactive' } sx={{ position: completed ? 'absolute' : 'initial' }}> { source === 'slack' ? 'testimonialCardSlack' : source === 'twitter' - ? 'testimonialCardTwitter' - : 'black', + ? 'testimonialCardTwitter' + : 'black', flexDirection: 'column', position: 'relative', zIndex: 1, @@ -43,8 +43,8 @@ const Card = ({ source, url, author_name, text, author_image }) => { source === 'slack' ? QuotationsYellow : source === 'twitter' - ? QuotationsPurple - : QuotationsYellow + ? QuotationsPurple + : QuotationsYellow } sx={{ width: ['70px', '80px'], @@ -83,8 +83,8 @@ const Card = ({ source, url, author_name, text, author_image }) => { source === 'slack' ? 'testimonialCardSlackText' : source === 'twitter' - ? 'testimonialCardTwitterText' - : 'black', + ? 'testimonialCardTwitterText' + : 'black', fontSize: '105%', fontFamily: 'sanserif', '& > .anchor-link': { @@ -124,8 +124,8 @@ const Card = ({ source, url, author_name, text, author_image }) => { source === 'slack' ? 'testimonialCardSlackText' : source === 'twitter' - ? 'testimonialCardTwitterText' - : 'black', + ? 'testimonialCardTwitterText' + : 'black', margin: 'auto', }}> {author_name} @@ -141,8 +141,8 @@ const Card = ({ source, url, author_name, text, author_image }) => { source === 'slack' ? '10%' : source === 'twitter' - ? '50%' - : '50%', + ? '50%' + : '50%', width: '66px', boxShadow: 'rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px, rgba(17, 17, 26, 0.1) 0px 24px 80px', diff --git a/src/modules/ui/Button.js b/src/modules/ui/Button.js index dbc64d1c6f..b94bf2ad2c 100644 --- a/src/modules/ui/Button.js +++ b/src/modules/ui/Button.js @@ -29,10 +29,10 @@ const Button = ({ variant || secondary ? 'secondary' : outline - ? 'outline' - : text - ? 'text' - : 'primary' + ? 'outline' + : text + ? 'text' + : 'primary' }${small ? 'Small' : ''}` const internal = /^\/(?!\/)/.test(href) || /^\/(?!\/)/.test(to) diff --git a/src/modules/ui/FlipCard.js b/src/modules/ui/FlipCard.js index fef8dddb26..95cf49a82e 100644 --- a/src/modules/ui/FlipCard.js +++ b/src/modules/ui/FlipCard.js @@ -15,7 +15,7 @@ const styles = { width: '100%', }, cardHeight: { - height: 345, + height: 345, }, flipCardInner: { position: 'relative', @@ -134,8 +134,12 @@ const FlipCard = ({ aria-pressed={isFlipped} style={styles.flipBtn} onClick={() => setIsFlipped(true)} - onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = 'rgb(229, 231, 235)')} - onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = 'transparent')}> + onMouseEnter={(e) => + (e.currentTarget.style.backgroundColor = 'rgb(229, 231, 235)') + } + onMouseLeave={(e) => + (e.currentTarget.style.backgroundColor = 'transparent') + }> @@ -173,8 +177,12 @@ const FlipCard = ({ aria-pressed={!isFlipped} style={styles.flipBtn} onClick={() => setIsFlipped(false)} - onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = 'rgb(209, 213, 219)')} - onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = 'transparent')}> + onMouseEnter={(e) => + (e.currentTarget.style.backgroundColor = 'rgb(209, 213, 219)') + } + onMouseLeave={(e) => + (e.currentTarget.style.backgroundColor = 'transparent') + }> diff --git a/src/modules/utility/seo.js b/src/modules/utility/seo.js index 2f9eb2c24a..dfac08ef57 100644 --- a/src/modules/utility/seo.js +++ b/src/modules/utility/seo.js @@ -79,11 +79,15 @@ function SEO({ description, lang, meta, title, keywords, url, featuredImage }) { }, { property: 'og:image', - content: featuredImage?.startsWith('http') ? featuredImage : `https://read.kernel.community${featuredImage}`, + content: featuredImage?.startsWith('http') + ? featuredImage + : `https://read.kernel.community${featuredImage}`, }, { name: 'twitter:image', - content: featuredImage?.startsWith('http') ? featuredImage : `https://read.kernel.community${featuredImage}`, + content: featuredImage?.startsWith('http') + ? featuredImage + : `https://read.kernel.community${featuredImage}`, }, { name: `twitter:description`, diff --git a/src/pages/en/blog.js b/src/pages/en/blog.js index 00c6f7bc7f..ccdac17241 100644 --- a/src/pages/en/blog.js +++ b/src/pages/en/blog.js @@ -39,13 +39,13 @@ const BlogHome = ({ data }) => { ) .slice(0, 3) : types.length > 0 - ? types.map((type) => - data.allMdx.edges.find( - ({ node }) => - getBlogPostTypeFromPath(node.fileAbsolutePath) === type + ? types.map((type) => + data.allMdx.edges.find( + ({ node }) => + getBlogPostTypeFromPath(node.fileAbsolutePath) === type + ) ) - ) - : data.allMdx.edges.slice(0, 3) + : data.allMdx.edges.slice(0, 3) const [sectionData, setSectionData] = useState({ type: initialSectionExists ? initialSection : null,