Building This Website

How I designed, routed, and engineered my portfolio at hannahstemerdink.info, keeping it simple, fast, and easy to extend.


Overview

This site began as a lightweight, portfolio using HTML, CSS, a dash of jQuery, and a few small PHP utilities. I focused on clarity, accessible navigation, and clean URLs. A reusable gallery powers multiple pages with one source of truth.

This was my first time developing full pages in HTML and CSS, so I relied heavily on a very old open-source theme from 2012, called Piccolo, to construct a base. But this also meant that I needed to make a lot of changes. The main problem was all the repetitive work for headers, footers, items and outdated interactive functions. I first started with getting the structure that I wanted on one page and then worked my way to different PHP methods to improve oversight and consistency for new pages.

Currently, I am in the middle of converting the colour palette of my website, so it might still look a bit funky at the moment.

In a week or two I will follow an extensive course on Responsive Web Design to improve and clean up my website. So hopefully, I can make this site a bit faster with some cool features by then.

What I built

  • Interactive skills gallery driven by a central PHP data file and a small renderer (filterable by tags).
  • Pretty URLs via .htaccess so pages read like /skills/festivals instead of .php endings.
  • Hover interactions that keep the entire card clickable without extra overlay icons.
  • Branding with a custom favicon and Apple touch icon (“HR” in Permanent Marker).

Tech stack

HTML CSS Bootstrap 2 jQuery PHP Apache (.htaccess) YAML (automation)

Routing & clean links

I use simple rewrite rules to keep URLs tidy and allow both folder and file views:

# skills index without trailing slash
    RewriteRule ^skills$ skills/index.php [L,QSA]
    
    # map /skills/slug to skills/slug.php (with optional trailing slash)
    RewriteRule ^skills/([^/.]+)/?$ skills/$1.php [L,QSA]
    

Reusable gallery (single source of truth)

Items live in a single array; each page filters by tags. The renderer outputs only <li> items so layout stays aligned.

// gallery-data.php (excerpt)
    $GALLERY = [
      [
        'id' => 'id-1',
        'types' => ['html','css','coding'],
        'href' => '/skills/website',
        'title' => 'Designing This Website',
        'subtitle' => 'For personal branding.',
        'kind' => 'image',
        'images' => [['/img/gallery/gallery-img-1-4col.jpg','Gallery']],
      ],
      // ...
    ];
// gallery-render.php (returns only <li>s)
    echo render_gallery($GALLERY, ['coding'], 'any', false);

UI details

  • Hover darken, whole card clickable: I removed the icon overlay and wrap the card with a single <a>.

Challenges & fixes

  • Left shift in gallery: Avoid nested <ul>s (Bootstrap’s .thumbnails adds negative margins).
  • Links opening in new tabs: Force same-tab where needed with target="_self".
  • Favicon cache: Cache-bust with ?v=2 and provide both /favicon.ico and PNG sizes.

Custom slider work

The theme’s original FlexSlider from 2012 caused problems: slides stacked vertically in Chrome, controls vanished in Firefox and Vivaldi, and the arrow UI felt outdated. I rewrote parts of the JS plugin and cleaned up its CSS to stabilise behaviour and add modern navigation.

  • Custom dot nav: Implemented a lightweight three-dot system (prev / indicator / next) to replace the dated arrow UI, styled with opacity changes.
  • Styling: Small white dots with reduced opacity for inactive states, larger indicator dot for the active slide.
  • Cross-browser consistency: Fixed float/width issues in Chrome and ensured dot nav scaffold attaches properly in Firefox and Vivaldi.
  • Mini-sliders in project items: Each gallery item can contain a slider with one or more images. I set them up to auto-play with no arrows or controls, and re-sync them when a page filter runs.
    • slider
    • slider

    Challenges & debugging

    • Re-init strategy: Instead of Quicksand replacing DOM nodes, I moved to a PHP single-source gallery and a JS show/hide filter. This avoided the flicker and made sliders persist across filters.
    • Cross-browser fixes: Forced .slides > li to float and have explicit widths to prevent Chrome/Edge from stacking two images. Appended the dot navigation manually in Firefox/Vivaldi where the scaffold wouldn’t attach.
    • Custom dot nav: Built a lightweight three-dot system (prev / indicator / next) to replace the dated arrow UI, styled with opacity changes.
    • Performance: Disabled legacy scaling and mousewheel code, and replaced repeated DOM cloning with a one-time init + resize/play calls. This kept sliders lightweight and smooth on mobile.
    • Chrome stacking bug: Fixed by forcing .slides > li to float:left with explicit widths.
    • Firefox/Vivaldi dots missing: Explicitly appended the dot navigation after initialisation.

    Next steps

    • Header: Make the full header PHP.
    • Dot Navigation: Animate the dots of the Flexsliders.
    • Accessibility: tab order, focus styles, alt text audit.

    ← Back to Skills

    Project meta

    • Role: Designer & developer
    • Focus: Clean routing, reusable gallery, lightweight UI
    • Stack: HTML, CSS, Bootstrap 2, jQuery, PHP
    • Hosting: Apache (One.com)
    Highlights
    • Single-source gallery used across pages
    • Readable, extension-free URLs
    • Minimal JS; quick load

    PHP Snippets

    Clickable project item card:

    <li class="span3 gallery-item" data-type="html css coding">
          <a href="/skills/website" class="gallery-link">
            <img src="/img/gallery/gallery-img-1-4col.jpg" alt="Designing This Website">
            <span class="project-details">
              <span class="project-title">Designing This Website</span>For personal branding.
            </span>
          </a>
        </li>

    Dynamic navigation bar:

    <?php
    // Expect $page to be one of: 'home','arts','entertainment','coding','contact'
    \$page = \$page ?? 'home';
    \$active = fn(\$key) => \$page === \$key ? ' class="active"' : '';
    \$inPortfolio = in_array(\$page, ['arts','entertainment','coding'], true);
    ?>
    <div class="span4 navigation">
      <div class="navbar hidden-phone" style="margin:20px 0px 0px 0px">
        <ul class="nav">
          <li<?= \$active('home') ?>><a href="/skills">Home</a></li>
    
          <li class="dropdown<?= \$inPortfolio ? ' active' : '' ?>">
            <a class="dropdown-toggle" data-toggle="dropdown" href="">Portfolio<b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li<?= \$active('arts') ?>><a href="/skills/arts">Arts</a></li>
              <li<?= \$active('entertainment') ?>><a href="/skills/entertainment">Entertainment</a></li>
              <li<?= \$active('coding') ?>><a href="/skills/coding">Coding - Web & Scientific</a></li>
            </ul>
          </li>
    
          <li<?= \$active('contact') ?>><a href="/#Contact">Contact</a></li>
        </ul>
      </div>
    </div>
    
    Back to Top