{"id":27323382,"url":"https://github.com/ninjainshade/interactive-price-component","last_synced_at":"2026-05-11T05:36:20.037Z","repository":{"id":152055538,"uuid":"395988361","full_name":"NinjaInShade/interactive-price-component","owner":"NinjaInShade","description":"Interactive pricing component (Traffic based pricing calculator)","archived":false,"fork":false,"pushed_at":"2021-08-16T15:59:49.000Z","size":265,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-08T15:31:00.848Z","etag":null,"topics":["css","design","html","javascript","pricing-calculation"],"latest_commit_sha":null,"homepage":"https://lm-interactive-price-component.netlify.app/","language":"CSS","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/NinjaInShade.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,"zenodo":null}},"created_at":"2021-08-14T11:29:47.000Z","updated_at":"2021-08-16T15:59:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"712a8fde-01a0-45fe-8f46-099415d8bcf5","html_url":"https://github.com/NinjaInShade/interactive-price-component","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjaInShade%2Finteractive-price-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjaInShade%2Finteractive-price-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjaInShade%2Finteractive-price-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjaInShade%2Finteractive-price-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NinjaInShade","download_url":"https://codeload.github.com/NinjaInShade/interactive-price-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557882,"owners_count":21124165,"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":["css","design","html","javascript","pricing-calculation"],"created_at":"2025-04-12T10:47:33.238Z","updated_at":"2026-05-11T05:36:14.465Z","avatar_url":"https://github.com/NinjaInShade.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Interactive pricing component solution\n\nThis is a solution to the [Interactive pricing component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/interactive-pricing-component-t0m8PIyY8). 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 app depending on their device's screen size\n- See hover states for all interactive elements on the page\n- Use the slider and toggle to see prices for different page view numbers\n\n### Page view and pricing totals\n\nHere are the different page view ranges and the corresponding monthly price totals:\n\n- 10K pageviews / $8 per month\n- 50K pageviews / $12 per month\n- 100K pageviews / $16 per month\n- 500k pageviews / $24 per month\n- 1M pageviews / $36 per month\n\nIf the visitor switches the toggle to yearly billing, a 25% discount should be applied to all prices.\n\n### Screenshot\n\n![](./screenshots/Desktop_solution.png)\n![](./screenshots/Desktop_active_solution.png)\n![](./screenshots/Mobile_solution.png)\n![](./screenshots/Mobile_active_solution.png)\n\n### Links\n\n- Solution URL: (https://www.frontendmentor.io/solutions/responsive-pricing-calculator-with-javascript-_h-0Hs-le)\n- Live Site URL: (https://lm-interactive-price-component.netlify.app/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties/vars\n- Desktop-first workflow\n- Vanilla javascript\n\n### What I learned\n\nI learnt how to make a custom range slider (I don't think I've EVER used one in my life anyway), which was fun. I then had to think about the javascript side as it's quite heavy on calculations (hardest one yet I mean from the challenges), so I had to think how I would store the pricing data, and then manipulate it to apply the 25% discount etc...\n\nI split up main functionalities into functions so they could be called whenever, making them reusable.\n\nThis was a really fun challenge, as I've never made a pricing calculator like this before!\n\n## Author\n\n- Website - [Leon Michalak](https://www.leonmichalak.tech)\n- Frontend Mentor - [@NinjaInShade](https://www.frontendmentor.io/profile/NinjaInShade)\n- Instagram - [@lmdeveloper](https://www.instagram.com/lmdeveloper/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjainshade%2Finteractive-price-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjainshade%2Finteractive-price-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjainshade%2Finteractive-price-component/lists"}