Context
School assignment based on an existing website and provided wireframe reference.
A front-end assignment where I recreated two pages of the Barclays website using semantic HTML, CSS, and JavaScript — including a working light and dark mode.
School assignment based on an existing website and provided wireframe reference.
Rebuild the layout accurately with clean HTML/CSS and add a functional theme toggle.
Two recreated pages + dark/light mode using JavaScript.
Structure, reusability, responsive behavior, and correct theming.
Accuracy + maintainability
The main challenge was to recreate the layout in a clean, semantic way while keeping styling consistent across components. On top of that, the design needed to work in both light and dark mode without duplicating lots of CSS.
Structured the pages using semantic HTML elements to improve readability and maintainability.
Created consistent styling using CSS variables and modular layout rules to keep the design scalable across pages.
Implemented a theme toggle using JavaScript and CSS variables so the interface can switch between light and dark themes.
Ensured the layout adapts across screen sizes while maintaining the original design structure.
How I approached the rebuild
I identified recurring blocks (header, navigation, hero, content sections) and planned a structure that could be reused between pages.
I focused on semantic HTML so the layout stays stable and readable before adding styling.
Colors were handled through CSS variables to make light/dark mode easy to maintain.
JavaScript switches between themes and keeps the UI consistent. (Optional improvement: storing preference in localStorage.)
Front-end precision
The result is a clean recreation of two pages with a working theme toggle. This project strengthened my skills in building layouts from references, writing maintainable CSS, and structuring JavaScript for UI state.
Optional: add exports (light vs dark)