{"id":16212372,"url":"https://github.com/imhalid/trt-assignment","last_synced_at":"2025-10-30T23:48:15.387Z","repository":{"id":223655420,"uuid":"744599799","full_name":"imhalid/trt-assignment","owner":"imhalid","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-22T12:32:29.000Z","size":2146,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T21:48:05.235Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://trt-assignment.vercel.app","language":"TypeScript","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/imhalid.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}},"created_at":"2024-01-17T16:21:50.000Z","updated_at":"2024-02-21T09:45:15.000Z","dependencies_parsed_at":"2024-02-21T11:55:43.652Z","dependency_job_id":null,"html_url":"https://github.com/imhalid/trt-assignment","commit_stats":null,"previous_names":["imhalid/trt-assignment"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imhalid/trt-assignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imhalid%2Ftrt-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imhalid%2Ftrt-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imhalid%2Ftrt-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imhalid%2Ftrt-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imhalid","download_url":"https://codeload.github.com/imhalid/trt-assignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imhalid%2Ftrt-assignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281902522,"owners_count":26581164,"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","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-10T10:51:45.782Z","updated_at":"2025-10-30T23:48:15.352Z","avatar_url":"https://github.com/imhalid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Getting Started\n\nThis project consists of two pages `Home Page` and `Article Page`.\n- [Home Page](https://trt-assignment.vercel.app) \n- [Article Page](https://trt-assignment.vercel.app/article)\n\n## What I can't do\n\n- `Pagination`: I tried to make the pagination on the home page but I was not successful. I did not know what I needed to do to make the pagination compatible with seo. Edit: I also forgot to add, I encountered a problem like this while using the pagination feature in json-server. https://github.com/typicode/json-server/issues/1493#issue-2092177702 \n- `filterin` and `testing`: I have no idea where I need to do the filtering and sorting functions. I didn't see any design for this in the figma file either. I couldn't write a test because I couldn't do these. \n- `css`: css files can be confusing, I don't like using modules too much, but it's easier to read this way. and it's the first time I've written pure css in about 2 years. I may have a slightly bad approach to layout and naming.\n\n## Folder Structure\n\n- `/components`: This directory contains all the React components used in the project. It's further divided into subdirectories like `home-page-components`, `article-components`, each containing related components.\n- `/svgs`: SVG files are stored here for later reuse. by storing them in this way you can easily update their colours and sizes.\n- `/lib/definitions.ts`: This file contains TypeScript type definitions and interfaces used throughout the project.\n- `/lib/api.tsx`: Here the data is extracted from the api and frozen back as a component. \u003c\u003c I'm not sure if it's right to render the component in this way \u003e\u003e\n \n## Run Project\n ```bash\n npm install\n ``````\n\n```bash\nnpm run dev\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimhalid%2Ftrt-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimhalid%2Ftrt-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimhalid%2Ftrt-assignment/lists"}