{"id":25692843,"url":"https://github.com/chocoscoding/resizejs","last_synced_at":"2025-02-24T23:33:44.246Z","repository":{"id":57355192,"uuid":"462927305","full_name":"chocoscoding/resizejs","owner":"chocoscoding","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-16T19:22:29.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-09T21:25:07.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chocoscoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-23T22:30:04.000Z","updated_at":"2022-02-25T13:51:48.000Z","dependencies_parsed_at":"2022-09-09T11:00:35.904Z","dependency_job_id":null,"html_url":"https://github.com/chocoscoding/resizejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Fresizejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Fresizejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Fresizejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocoscoding%2Fresizejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chocoscoding","download_url":"https://codeload.github.com/chocoscoding/resizejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240576533,"owners_count":19823291,"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":[],"created_at":"2025-02-24T23:33:43.366Z","updated_at":"2025-02-24T23:33:44.237Z","avatar_url":"https://github.com/chocoscoding.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resyze\n\nResyze is a the best alternative for responsive font-size in REACTJS. \u003cbr\u003e Bye-Bye to (CSS _media queries_)\n\n## Installation\n\nUse the npm package manager to install resyze.\n\n```bash\nnpm install resyze\n```\n\n## Usage Info\n\nr_ele === the element that will be resized\nr_type === type of text\nr_ext = this is the additional amount of font size you want to add (it measures finally in px)\n_r_ext must be a number_\nTE (_Take Effect_) === Decide at ehat screen size rezyze starts taking effect\nSB (_Specific Box_) === For targeting a particular box or div\n\n# For normal text\n\n\"h1\";\n\"h2\";\n\"h3\";\n\"h4\";\n\"h5\";\n\"ignore\";\n\"normal\";\n\"tiny\";\n\"text\";\n\n# For targeted divs\n\n\"ignore\";\n\"normal\";\n\"tiny\";\n\"big\"; (for only SB)\n\n## Usage\n\n```js\nimport React, { useEffect, useRef } from \"react\";\nimport resyze from \"resyze\";\n\nconst appbody = useRef(0);\nconst appbody2 = useRef(0);\nconst button1 = useRef(0);\n\nuseEffect(() =\u003e {\n  function resyzef() {\n    resyze([\n      {\n        r_ele: appbody.current,\n        r_type: \"h1\",\n        r_ext: 4,\n      },\n      {\n        TE: 300,\n        SB: button1.current,\n        r_type: \"normal\",\n      },\n      {\n        r_ele: appbody2.current,\n        r_type: \"text\",\n      },\n    ]);\n  }\n\n  window.addEventListener(\"resize\", resyzef);\n  window.addEventListener(\"load\", resyzef);\n});\n\nreturn (\n  \u003cdiv className=\"App\"\u003e\n    \u003cheader className=\"App-header\"\u003e\n      \u003cimg src={logo} className=\"App-logo\" alt=\"logo\" /\u003e\n      \u003cp ref={appbody}\u003e\n        Edit \u003ccode\u003esrc/App.js\u003c/code\u003e and save to reload.\n      \u003c/p\u003e\n      \u003cbutton\n        ref={button1}\n        style={{\n          backgroundColor: \"blue\",\n          borderRadius: \"10px\",\n          border: \"none\",\n          width: \"90%\",\n          height: \"50px\",\n          color: \"white\",\n        }}\n      \u003e\n        Click ere for sometin\n      \u003c/button\u003e\n      \u003ca\n        className=\"App-link\"\n        href=\"https://reactjs.org\"\n        target=\"_blank\"\n        rel=\"noopener noreferrer\"\n        ref={appbody2}\n      \u003e\n        Learn React\n      \u003c/a\u003e\n    \u003c/header\u003e\n  \u003c/div\u003e\n);\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocoscoding%2Fresizejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchocoscoding%2Fresizejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocoscoding%2Fresizejs/lists"}