From 0da24c6391c74b44b4e25376e162614b7e5c7f8c Mon Sep 17 00:00:00 2001 From: David Dias Date: Tue, 26 Mar 2024 14:23:37 -0400 Subject: [PATCH] feat: add support and update readme (#23) Co-authored-by: David Dias --- .github/workflows/development.yml | 8 +++--- .github/workflows/lint-pr.yml | 2 +- .github/workflows/podcast-update.yml | 26 ++++++++++++++++++ README.md | 25 +++++++++++++++-- app/(main)/layout.tsx | 41 ++++++++++++++++++++++++---- components/Icons.tsx | 21 ++++++++++++++ 6 files changed, 110 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/podcast-update.yml diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 30e3ecf..8c7dd04 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -14,13 +14,13 @@ jobs: - name: Git checkout uses: actions/checkout@v3 - - name: Use Node.js 18.x + - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 18.x + node-version-file: '.nvmrc' - - name: 🧰 Install dependencies + - name: Install dependencies run: npm install - - name: 📦 Build app + - name: Build app run: npm run build diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index c79fb81..83c5862 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -1,4 +1,4 @@ -name: "Lint PR" +name: Lint PR on: pull_request_target: diff --git a/.github/workflows/podcast-update.yml b/.github/workflows/podcast-update.yml new file mode 100644 index 0000000..9594868 --- /dev/null +++ b/.github/workflows/podcast-update.yml @@ -0,0 +1,26 @@ +name: Podcast update + +on: + push: + branches: ["main"] + workflow_dispatch: + schedule: + # Runs every week at midnight on Sunday + - cron: '0 0 * * 0' + +permissions: + contents: write + +jobs: + update-readme: + name: Update this repo's README with latest podcast episodes + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Erreur 200 + uses: gautamkrishnar/blog-post-workflow@master + with: + max_post_count: 5 + comment_tag_name: PODCAST-LIST + feed_list: "https://erreur200.com/rss.xml" diff --git a/README.md b/README.md index c5b94b6..de55328 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,37 @@ # Erreur 200 (podcast) -# Latests Podcast Episodes +Erreur 200 est un podcast dédié aux gens qui font le web. Animé par deux développeurs français, l'un vivant au Canada ([David Dias](https://thedaviddias.com/)), l'autre en Angleterre ([Jean-Rémy Duboc](https://codaille.com/)), nous échangeons sur le web d'aujourd'hui et de demain. + +Retrouvez-nous pour discuter de code, d'accessibilité, des frameworks JavaScript, de l'UX et plein d'autres sujets passionnants. Nous laissons parfois la parole à d'autres personnes qui partagent la même passion et qui nous parlerons de leurs échecs et leurs succès. + +--- - +Error 200 is a podcast dedicated to people who make the web. Hosted by two French developers, one living in Canada ([David Dias](https://thedaviddias.com/)), the other in England ([Jean-Rémy Duboc](https://codaille.com/)), we discuss today's and tomorrow's web. + +Join us to talk about code, accessibility, JavaScript frameworks, UX, and many other exciting topics. Sometimes we let other people who share the same passion speak, and they will tell us about their failures and successes. + +# Latests Podcast Episodes + - [Questions de débutants en développement web avec Killian Vaillant](https://erreur200.com/questions-de-debutants-en-developpement-web-avec-killian-vaillant) - [Les Tendances du Développement Web en 2022](https://erreur200.com/les-tendances-du-developpement-web-en-2022) - [La Communication Dans Le Monde Du Web](https://erreur200.com/la-communication-dans-le-monde-du-web) - [Apprentissage et Veille Technologique au quotidien](https://erreur200.com/apprentissage-et-veille-technologique-au-quotidien) - [Comment devenir un développeur web en 2022 (2)](https://erreur200.com/devenir-developpeur-web-2022-2) - + ## Create a new episode ```bash npm run plop ``` + +## Support or questions + +For support, feel free to email us at `info@erreur200.com` or join our [Discord server](https://discord.gg/WqGXnT6snJ). + +We also have a [Patreon](https://patreon.com/Erreur200?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink) if you want to support us. + +## License + +[MIT](https://choosealicense.com/licenses/mit/) diff --git a/app/(main)/layout.tsx b/app/(main)/layout.tsx index fc4ba5f..b371625 100644 --- a/app/(main)/layout.tsx +++ b/app/(main)/layout.tsx @@ -15,6 +15,7 @@ import { LinkedInIcon, TwitterIcon, DiscordIcon, + CupIcon } from '@/components/Icons' import { HOSTS } from '@/constants' @@ -67,6 +68,14 @@ const socialLinks: PodcastLink[] = [ }, ] +const supportLinks: PodcastLink[] = [ + { + label: 'Patreon', + Icon: CupIcon, + url: 'https://patreon.com/Erreur200?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink', + }, +] + export default function MainLayout({ children }: { children: ReactNode }) { return ( @@ -89,7 +98,7 @@ export default function MainLayout({ children }: { children: ReactNode }) {
    {podcastLinks.map(({ label, Icon, url }) => (
  • @@ -125,7 +134,7 @@ export default function MainLayout({ children }: { children: ReactNode }) { className="group flex items-center" aria-label={label} > - + {label}
  • @@ -138,7 +147,7 @@ export default function MainLayout({ children }: { children: ReactNode }) {
      {socialLinks.map(({ label, Icon, url }) => (
    • @@ -147,7 +156,29 @@ export default function MainLayout({ children }: { children: ReactNode }) { className="group flex items-center" aria-label={label} > - + + {label} + +
    • + ))} +
    + +
    +

    + Nous soutenir +

    +
      + {supportLinks.map(({ label, Icon, url }) => ( +
    • + + {label}
    • diff --git a/components/Icons.tsx b/components/Icons.tsx index 7eb81ec..c41388a 100644 --- a/components/Icons.tsx +++ b/components/Icons.tsx @@ -116,3 +116,24 @@ export function DiscordIcon(props) { ) } + +export function CupIcon(props) { + return ( + + + + + + + + ) +}