Chrysolites Tech Academy

Video by GreatStack · streamed from YouTube. All rights remain with the creator.

Lesson 1: A Social Media Feed Page with HTML and CSS

About this lesson

This step-by-step tutorial from GreatStack shows how to design a social media website in the style of a well-known social network, using HTML and CSS with a small amount of JavaScript. It builds the whole home page of the site from scratch, so it is a good project for anyone who has learned the basics of HTML and CSS and wants to practise putting together a large, realistic layout. The video begins by showing the finished design and then builds it piece by piece. You create the navigation bar across the top of the page, with the logo, notification icons, a search box and the user's profile picture. Clicking the profile picture opens a drop-down settings menu, which is built with simple JavaScript. Below the navigation bar, the page is divided into a left sidebar of shortcuts, a central feed and a right sidebar with further information. The central feed contains a row of story cards, a box for writing a new post and a series of posts with pictures and reaction buttons, all styled to look polished. A highlight of the project is a toggle button that switches the whole website between a light mode and a dark mode, also written in simple JavaScript. Images for the project can be downloaded so that you can follow along exactly, and the design is extended further in a second part published separately. Afterwards, read Chapter 1 of the course book, which works through the column layout and the colour contrast of the dark theme by hand.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.