{"id":20077085,"url":"https://github.com/codersrank-org/work-experience-widget","last_synced_at":"2025-07-06T06:40:35.445Z","repository":{"id":57103152,"uuid":"307352872","full_name":"codersrank-org/work-experience-widget","owner":"codersrank-org","description":"Integrate work experience information from your CodersRank profile to your personal website","archived":false,"fork":false,"pushed_at":"2021-06-24T08:58:19.000Z","size":635,"stargazers_count":9,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T18:33:12.448Z","etag":null,"topics":["codersrank","codersrank-widget","cv","portfolio","profile","webcomponents"],"latest_commit_sha":null,"homepage":"https://codersrank.io","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/codersrank-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-26T11:39:36.000Z","updated_at":"2021-06-24T08:58:22.000Z","dependencies_parsed_at":"2022-08-20T23:21:00.802Z","dependency_job_id":null,"html_url":"https://github.com/codersrank-org/work-experience-widget","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codersrank-org%2Fwork-experience-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codersrank-org%2Fwork-experience-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codersrank-org%2Fwork-experience-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codersrank-org%2Fwork-experience-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codersrank-org","download_url":"https://codeload.github.com/codersrank-org/work-experience-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252585995,"owners_count":21772233,"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":["codersrank","codersrank-widget","cv","portfolio","profile","webcomponents"],"created_at":"2024-11-13T15:06:02.091Z","updated_at":"2025-05-05T22:30:39.137Z","avatar_url":"https://github.com/codersrank-org.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codersrank Work Experience Widget\n\n\u003c!-- DOCS_START --\u003e\n\nCodersrank Work Experience Widget is a web component that allows you easily integrate work experience information from your [CodersRank](https://codersrank.io) profile to your personal website:\n\n\u003cimg src=\"preview.png\" /\u003e\n\n## Install from NPM\n\nWidget script available through NPM:\n\n```\nnpm i @codersrank/work-experience --save\n```\n\nAfter installation you need to import and register web component:\n\n```js\nimport CodersrankWorkExperience from '@codersrank/work-experience';\n\n// register web component as \u003ccodersrank-work-experience\u003e element\nwindow.customElements.define('codersrank-work-experience', CodersrankWorkExperience);\n```\n\n## Install from CDN\n\nWidget can also be downloaded or linked directly from CDN:\n\n```html\n\u003c!-- replace x.x.x with actual version --\u003e\n\u003cscript src=\"https://unpkg.com/@codersrank/work-experience@x.x.x/codersrank-work-experience.min.js\"\u003e\u003c/script\u003e\n```\n\nIn this case it is not required to register web component, it is already registered as `\u003ccodersrank-work-experience\u003e` element.\n\n## Usage\n\nAs it is a web component the usage is pretty simple, just add widget HTML tag with your [CodersRank](https://codersrank.io) username\n\n```html\n\u003ccodersrank-work-experience username=\"YOUR_USERNAME\"\u003e\u003c/codersrank-work-experience\u003e\n```\n\n## Widget Attributes\n\nWidget supports following properties as HTML element attributes:\n\n| Name        | Type      | Default | Description                                                                               |\n| ----------- | --------- | ------- | ----------------------------------------------------------------------------------------- |\n| `username`  | `string`  |         | Your [CodersRank](https://codersrank.io) username                                         |\n| `logos`     | `boolean` | `false` | Enables company logos                                                                     |\n| `max-items` | `number`  |         | Limit number of work experiences to display                                               |\n| `grid`      | `boolean` | `false` | Enables grid layout. Number of columns is configurable with `--grid-columns` CSS variable |\n| `branding`  | `boolean` | `true`  | Displays \"Powered by CodersRank\" link                                                     |\n\nFor example:\n\n```html\n\u003ccodersrank-work-experience username=\"YOUR_USERNAME\" logos\u003e\u003c/codersrank-work-experience\u003e\n```\n\n## Styling\n\nIt is possible to customize widget colors with CSS Custom Properties (CSS Variables) by setting them directly on the widget element with style attribute or in CSS.\n\nThere are following CSS Custom Properties are available:\n\n| Property                       | Value                    |\n| ------------------------------ | ------------------------ |\n| `--preloader-color`            | `#72a0a8`                |\n| `--item-spacing`               | `2em`                    |\n| `--item-border-radius`         | `0px`                    |\n| `--item-border`                | `none`                   |\n| `--item-padding`               | `0px`                    |\n| `--item-bg-color`              | `0px`                    |\n| `--grid-columns`               | `1`                      |\n| `--logo-size`                  | `48px`                   |\n| `--logo-margin`                | `16px`                   |\n| `--nested-circle-size`         | `12px`                   |\n| `--nested-circle-border-width` | `2px`                    |\n| `--nested-circle-opacity`      | `0.25`                   |\n| `--nested-line-opacity`        | `0.25`                   |\n| `--nested-line-width`          | `2px`                    |\n| `--company-font-size`          | `1.15em`                 |\n| `--company-font-weight`        | `bold`                   |\n| `--company-text-color`         | `inherit`                |\n| `--company-opacity`            | `1`                      |\n| `--title-font-size`            | `inherit`                |\n| `--title-font-weight`          | `bold`                   |\n| `--title-text-color`           | `inherit`                |\n| `--title-opacity`              | `1`                      |\n| `--location-text-color`        | `inherit`                |\n| `--location-opacity`           | `0.55`                   |\n| `--location-font-size`         | `inherit`                |\n| `--location-font-weight`       | `inherit`                |\n| `--date-text-color`            | `inherit`                |\n| `--date-opacity`               | `0.55`                   |\n| `--date-font-size`             | `inherit`                |\n| `--date-font-weight`           | `inherit`                |\n| `--description-font-size`      | `inherit`                |\n| `--description-font-weight`    | `inherit`                |\n| `--description-text-color`     | `inherit`                |\n| `--description-opacity`        | `1`                      |\n| `--tag-border`                 | `none`                   |\n| `--tag-star-color`             | `#ff9900`                |\n| `--tag-bg-color`               | `rgba(0, 0, 100, 0.075)` |\n| `--tag-font-size`              | `0.85em`                 |\n| `--tag-font-weight`            | `bold`                   |\n| `--tag-padding`                | `0.35em 0.57em`          |\n| `--tag-margin`                 | `0.28em`                 |\n| `--tag-border-radius`          | `4px`                    |\n| `--tag-text-color`             | `inherit`                |\n| `--branding-text-color`        | `inherit`                |\n\nFor example, to change work experience title color to `purple` and font-size to `20px`, add this to CSS stylesheet:\n\n```css\ncodersrank-work-experience {\n  --title-text-color: purple;\n  --title-font-size: 20px;\n}\n```\n\n## Use As Image\n\nIt is also possible to insert Work Experience widget as an image. It is useful in places where you can't integrate web component, or for example on your GitHub profile README.md page.\n\nImage URL is the following:\n\n```\nhttps://cr-ss-service.azurewebsites.net/api/ScreenShot?widget=work-experience\u0026username=YOUR_USERNAME\n```\n\nIt accepts all widget attributes as query string parameters, plus one extra parameter:\n\n| Name    | Type     | Default | Description                                                                                                                                                                     |\n| ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `width` | `number` | `800`   | Width of widget element (generated image). Note that generated image has @2x pixel density, so the PNG image will be actually generated in @2x size from the one specified here |\n| `style` | `string` |         | `style` attribute value (here you can specify all CSS variables)                                                                                                                |\n\nFor example:\n\n```html\n\u003cimg\n  src=\"https://cr-ss-service.azurewebsites.net/api/ScreenShot?widget=work-experience\u0026username=YOUR_USERNAME\u0026max-items=2\u0026logos=true\u0026style=--item-bg-color:%23f00;--item-border-radius:10px\"\n/\u003e\n```\n\nNote that you need to URL Encode some of the characters, for example `#` should be `%23` and `#ff0` color should be specified as `%23ff0` in query.\n\n## Contribution\n\nYes please! See the [contributing guidelines](https://github.com/codersrank-org/work-experience-widget/blob/master/CONTRIBUTING.md) for details.\n\n## Licence\n\nThis project is licensed under the terms of the [MIT license](https://github.com/codersrank-org/work-experience-widget/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodersrank-org%2Fwork-experience-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodersrank-org%2Fwork-experience-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodersrank-org%2Fwork-experience-widget/lists"}