PetOffice

  • PetOffice Can Do

    Drupal Upgrade to 10/11

    Jan 14, 2025, 12:25 PM
    DrupalPHP

    I keep having to look up how to change the same deprecated functions, so I thought I’d make myself a list here for quick reference.

  • PetOffice Can Do
    Next.jsTypeScriptWordPress

    Introduction When building a modern web app with WordPress and Next.js, GraphQL is an excellent choice for fetching content. Many developers rely on libraries like Apollo Client to manage GraphQL queries, but I decided to simplify things and avoid adding another dependency. Fetching posts directly with fetch in Next.js turned out to be just as […]

  • PetOffice Can Do
    Next.jsTypeScript

    I found a few examples online for creating a code block with syntax highlighting and a copy-to-clipboard button, but I couldn’t get them to work straight away. So I thought, “It can’t be that hard to make this myself.” After some trial and error, I came up with these two components: CodeBlock and CopyToClipboard. Here’s […]

  • PetOffice Can Do

    My Headless Theme for WordPress

    Dec 17, 2024, 9:42 AM
    Next.jsWordPress

    Using WordPress as a headless API? Check out my theme.

  • PetOffice Can Do
    CSSNext.jsReactTailwindTypeScript

    In this guide, I’ll walk through the steps to add Adobe Fonts (Typekit) to your Next.js project styled with Tailwind CSS. Adobe Fonts offers a wide range of high-quality fonts that can enhance your web project. I’m already subscribed to Adobe Creative Cloud, which means I can access Access to the full Adobe Fonts library […]

  • PetOffice Can Do
    DrupalPHP

    I based this post on this answer on Stackoverflow my_module.routing.yml MyModuleController