Blog

Welcome to my blog where I share my thoughts, experiences, and knowledge on web development and technology.

Subscribe via RSS

The Dock Flash That Led Me to a Malicious npm Package

A project a potential client shared with me quietly added a clipboard hijacker to my machine. Here is how three small symptoms led me to a malicious npm package, and how I removed it.

CSS Logical Properties

If you are a web developer, you might have encountered situations where you need to design a webpage that can adapt to different languages and writing modes. For example, how do you make sure that your layout works well for both left-to-right and right-to-left languages? In this blog post, I will introduce you to CSS logical properties, a powerful feature that allows you to define styles based on the flow of content rather than the physical dimensions of the viewport. You will learn how to use logical properties for margin, padding, sizing, positioning, and borders, and how they can make your webpage more responsive and accessible.

The HTML 'dialog' Element

Let's face it. Coding up your own modal from scratch is kind of a tiring process. Dealing with the position of the modal, setting up opening and closing methods in JavaScript, and on top of that, dealing with focus! Thankfully, HTML has a native 'dialog' element that makes dealing such stuff so much easier. Let's explore!

How To Add Custom Fonts to Your Next.js and Tailwind CSS Project

A unique-looking font on a webpage really makes it stand out. You might even consider using a custom font for your website as it makes it visually distinct and becomes a part of the identity of your brand.