{"id":24785783,"url":"https://github.com/webdevbynight/news-homepage-main","last_synced_at":"2026-01-06T02:01:31.259Z","repository":{"id":270053397,"uuid":"908965578","full_name":"webdevbynight/news-homepage-main","owner":"webdevbynight","description":"This repository is an exercise from a Frontend Mentor challenge.","archived":false,"fork":false,"pushed_at":"2024-12-28T02:38:31.000Z","size":2000,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T14:39:26.028Z","etag":null,"topics":["exercise","frontendmentor-challenge"],"latest_commit_sha":null,"homepage":"https://webdevbynight.github.io/news-homepage-main/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdevbynight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-27T12:09:21.000Z","updated_at":"2025-01-17T16:58:22.000Z","dependencies_parsed_at":"2024-12-28T03:35:47.283Z","dependency_job_id":null,"html_url":"https://github.com/webdevbynight/news-homepage-main","commit_stats":null,"previous_names":["webdevbynight/news-homepage-main"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fnews-homepage-main","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fnews-homepage-main/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fnews-homepage-main/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fnews-homepage-main/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdevbynight","download_url":"https://codeload.github.com/webdevbynight/news-homepage-main/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245240925,"owners_count":20583102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exercise","frontendmentor-challenge"],"created_at":"2025-01-29T14:31:35.175Z","updated_at":"2026-01-06T02:01:31.102Z","avatar_url":"https://github.com/webdevbynight.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - News homepage solution\n\nThis is a solution to the [News homepage challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/news-homepage-H6SWTa1MFl). Frontend Mentor challenges help you improve your coding skills by building realistic projects. \n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n- [Author](#author)\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for the interface depending on their device's screen size\n- See hover and focus states for all interactive elements on the page\n\n### Screenshot\n\n![Screenshot of the solution](./screenshot.jpg)\n\n### Links\n\n- Solution URL: [https://github.com/webdevbynight/news-homepage-main](https://github.com/webdevbynight/news-homepage-main)\n- Live Site URL: [https://webdevbynight.github.io/news-homepage-main/](https://webdevbynight.github.io/news-homepage-main/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS (via SCSS)\n  - custom properties\n  - logical properties\n  - flexbox\n  - grid\n- JavaScript (via TypeScript)\n- Mobile-first workflow\n\n### What I learned\n\nIn order to use the breakpoints I named in SCSS in JavaScript, I added custom properties targeting the breakpoints to the `:root` selector. First, I wanted to use `getComputedStyle()` to retrieve the custom properties, but Chrome does not include custom properties within the object returned by such a method (Chrome 131- at the time when I wrote these lines). Instead, I used `document.styleSheets` and nested `for` loops to get the custom properties. \n\n## Author\n\n- Website - [Victor Brito](https://victor-brito.dev)\n- Frontend Mentor - [@webdevbynight](https://www.frontendmentor.io/profile/webdevbynight)\n- Mastodon - [@webdevbynight](https://mastodon.social/webdevbynight)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbynight%2Fnews-homepage-main","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevbynight%2Fnews-homepage-main","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbynight%2Fnews-homepage-main/lists"}