Hawk's By Design

Coding

December 16, 2022

Determine if a YouTube video is region locked using YouTube Data API v3

I needed to know if a YouTube video was region locked... so I went down the rabbit hole and learned how to use the YouTube Data API.

View post

Coding

July 8, 2022

Line Clamp, I Love You

Multi-line truncating has always been rough. But, what if I told you, you could do it with pure CSS? Yes! It's possible!

View post

Coding

February 16, 2021

Toggling Element’s Focus Outline Based On User Interaction

The focus outline adopted by every browser is a powerful tool for keyboard accessibility. It also, however, can be kind of annoying.

View post

Coding

December 18, 2020

Rewriting Pages As Directories With HTACCESS

I wanted to make a PHP page appear as a directory, rather than a page. Turns out, it's a lot easier than I thought it was.

View post

Coding

July 10, 2020

Using SASS Lighten and Darken Functions

The lighten and darken functions in SASS have been super helpful to me recently. I wanted to talk about them and the positives and negatives.

View post

Coding

February 5, 2020

Super Simple PHP File Cache System

Caching an API request with PHP is...actually super simple. Not only is it simple, but it's also a great way to boost performance.

View post

Coding

January 30, 2020

Rounded Button Links in Email Templates

Coding email templates can make you pull your hair out. What's worse? Trying to make a rounded button link work in Microsoft Outlook.

View post

Coding

August 27, 2019

Iframe Lazy Loading – Srcdoc to the rescue?

Iframes can be an expensive resource, especially for videos. Lazy loading iframes isn't as easy as it should be, but maybe the srcdoc attirbute can help.

View post

Coding

August 20, 2019

Command Line Git: Init and Add Remote Repo

I'm a noob at command line git. So, here is how to initialize a local repo, add a remote repo, and push to that repo, all in command line.

View post

Coding

July 1, 2019

Getting Familiar with CSS Custom Properties

Variables in CSS just sounds weird, but it's a thing. CSS custom properties are here and well supported. Let's go through how to use them.

View post

Coding

May 29, 2019

Intersection Observer: A Great New API

Finding out if an element is within the viewport has always been a pain in the butt. Luckily, there's a handy new API called Intersection Observer.

View post

Coding

April 24, 2019

Outlook Debugging: Text Being Covered Around Aligned Table/Image

Outlook...yuck. I know, but today I want to talk about a peculiar issue involving text wrapping around an aligned image (nested in a table).

View post