Frontend · 2026

Fatih Berk

A one-page site for maths teacher Fatih Berk that points to his YouTube lessons and pulls in his latest videos automatically.

Fatih Berk

The project

A one-page website for Fatih Berk, a maths teacher who teaches lessons on YouTube. The goal is to raise his profile, introduce him as a teacher and send visitors to his YouTube lessons by LGS, TYT and AYT topic (Turkish national exams). The site shows new videos uploaded to the channel automatically, with no manual updates.

Process

  • I started by planning what the site needed to contain: intro, about, topics, videos, why this teacher, and contact.
  • I created the visual theme with Google Stitch, then made the mobile-only code it produced work on desktop too, added the missing Topics section, and removed placeholder images, numbers and reviews that were not real.
  • For the video section I weighed options such as a manual list or a playlist, and finally decided to pull the channel's 4 newest videos automatically with the YouTube Data API. Since the site was meant to store no data at all, I also removed the browser cache.
  • I added the brand logos (with their backgrounds removed) to the site and the favicon.
  • I published the site on GitHub Pages and connected the fatihberk.com domain.

Highlights

  • Automatic video section: The channel's 4 newest videos are shown with their thumbnail, view count, a relative date such as "3 days ago" and a "NEW" badge for those from the past week.
  • Live channel stats: Subscriber, video and view counts come from the API; values of zero are hidden.
  • Fallback that never leaves a gap: If there is no API key or the daily quota runs out, the section does not go blank; it switches to showing the channel's uploads in YouTube's own player.
  • Edit from one place: Links, channel details, topic playlists and numbers can be changed without coding from a single SETTINGS block at the end of the file.
  • Topic cards: Six topics (Numbers, Problems, Functions, Geometry, Derivatives, Integrals) are listed with level labels and can link to the matching playlist.
  • Mobile-friendly navigation: A slide-out menu and bottom bar on phones, a top menu on desktop; the active section is highlighted in the menu while scrolling.

Technical challenges and solutions

  • Layout shift: The video cards and stats bar expanded once the data arrived, pushing the page down. I reserved space for the stats bar up front with skeleton bars, and placed an invisible "ghost card" in the video area so its height matches a real card at every screen size.
  • Missing or delayed channel data: YouTube updates the channel's total views later than individual videos, so the bar showed "0 views". I changed it to show the larger of the channel total and the sum of video views, and to hide zero values.
  • Domain connection: The DNS records were correct but did not work; it turned out the domain's nameservers pointed to a hosting package. Changing the nameservers brought the records into effect.

Outcome

The site is live at fatihberk.com, and new videos and channel numbers appear on it automatically.