Categories
Blog

Personal Website Update: Hover Panel

I was doing a refurbishment for my personal website right here. The idea came from Felix Wong.

In the hover panel, first thing first, there is the area for the menu. Below the menu, there is a search bar. Under the search bar, there is an area for widgets. In the end, there is the menu for switching languages.

The button itself is the picture used as the Site Icon for Twenty Twenty Theme. The width of the hover panel is 76% or 38.2 (the golden ratio) depending on the screen size. The opacity is 0.9, which is “semi-transparent”.

Felix proposed a good question that for some devices, the position of the notch might affect the visibility of the hover panel button.

To resolve this, I am thinking about the following solution:

First: I need to write some script to detect the position and shape of the notch. I hope that I can do it with JavaScript only.

Second, I need to check if the notch influences the visibility of the hover panel.

Lastly, if the notch doesn’t exist or it doesn’t matter at all, no action is required. Otherwise, I need to adjust the padding-top of the hover panel to prevent it from being overlapped.

Categories
Blog

Happy New Year of the Ox

Today is the first day of the Year of the Ox, which happens once in twelve years.

So, whether you are celebrating it or not, I wish you a prosperous year!

Happy New Year of the Ox
Categories
Blog

XYZ is the most-registered new top-level domain again.

According to https://ntldstats.com/tld, XYZ is again the most-registered top-level domain.

More than 1 million ICU domains were deleted yesterday, which is crazy.

Categories
Blog

For fun: “If you’re reading this …”, I saw this easter egg at the new wh.gov

I saw this line of code at the latest wh.gov. It is so interesting!

** Trump’s White House uses WordPress, so does Biden’s White House. Is it one of the few things they have agreed on as well?

Just noticed that the founder of WordPress, Matt, found this secret comment as well: https://ma.tt/2021/01/new-whitehouse-gov/

Categories
Blog

Personal Website Redesigned

From HTML+CSS+JavaScript, to Vanilla PHP,

From Vanilla PHP, to Laravel,

From Lravel, BACK to WordPress.