Computer engineering and robotics enthusiast.
This site is hosted on GitHub Pages. For custom domain name,
I set my domain’s DNS ALIAS
record to point towards
GitHub server and CNAME
to point my www domain to my
GitHub pages domain (harveybia.github.io).
I use a static website generator called Jekyll and it integrates well with GitHub pages.
I use a theme called minimal. You can get a preview of what the theme looks like at this example page.
I made my own modifications to this theme to support the ever-popular dark mode.
This was achieved using CSS media queries. In my CSS I
added this simple query to override element colors when the preferred
color scheme is dark
.
@media (prefers-color-scheme:dark) {
body {
color:#dcdcdc;
background:#2a2a2a;
}
/* ... */
}
You can view this website’s source code here: