{"id":19845209,"url":"https://github.com/rapidwebltd/direct-share-buttons","last_synced_at":"2025-12-12T05:54:46.809Z","repository":{"id":35090476,"uuid":"39249767","full_name":"rapidwebltd/direct-share-buttons","owner":"rapidwebltd","description":"A pure HTML \u0026 CSS implementation of interacting with social networks without the need of heavy JavaScript widgets. ","archived":false,"fork":false,"pushed_at":"2016-12-15T15:52:15.000Z","size":15,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-10-13T11:46:08.734Z","etag":null,"topics":["css","social-buttons","social-media","social-networks"],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/rapidwebltd.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":"2015-07-17T10:53:59.000Z","updated_at":"2025-01-23T21:52:45.000Z","dependencies_parsed_at":"2022-08-18T01:05:52.039Z","dependency_job_id":null,"html_url":"https://github.com/rapidwebltd/direct-share-buttons","commit_stats":null,"previous_names":["rapidwebltd/direct-social-buttons"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rapidwebltd/direct-share-buttons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Fdirect-share-buttons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Fdirect-share-buttons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Fdirect-share-buttons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Fdirect-share-buttons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rapidwebltd","download_url":"https://codeload.github.com/rapidwebltd/direct-share-buttons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidwebltd%2Fdirect-share-buttons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27677186,"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-12-12T02:00:06.775Z","response_time":129,"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":["css","social-buttons","social-media","social-networks"],"created_at":"2024-11-12T13:06:53.993Z","updated_at":"2025-12-12T05:54:46.790Z","avatar_url":"https://github.com/rapidwebltd.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"Direct Share Buttons\n===================\n\u003csub\u003e\u003csmall\u003e*Formerly known as Intent Social Icons*\u003c/small\u003e\u003c/sub\u003e\n\nA pure HTML \u0026 CSS implementation on allowing your end users to interact with social networks from your site without any need of loading in heavy JavaScript-based widgets.\n\n## Installation\n#### Dependencies\n* [Font Awesome](http://fortawesome.github.io/Font-Awesome/)\n* [Bower](http://bower.io/#install-bower)\n\n### Via Bower\nSimply run:\n\n```\nbower install direct-share-buttons\n```\n\n### Via Manually\n\nFirst download the `direct-share-buttons.css` in this repository and include it at the top of your page with the font awesome CDN link:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css\"\u003e\n\u003clink rel=\"stylesheet\" href=\"direct-share-buttons.css\"\u003e\n```\n(Or where you have saved the `direct-share-buttons.css` file...)\n\nNext view the demo.html page to find suitable social share buttons and copy the code and you're done! :)\n\n## Examples \u0026 Usage\n### Circle Icons\n![Screenshot of Circle Direct Share Icons](http://i.imgur.com/xOxbDm3.png)\n```html\n\u003ca href=\"//www.facebook.com/sharer/sharer.php?u=YOUR_URL\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-circle dsb-facebook fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-facebook fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"//twitter.com/intent/tweet/?text=YOUR_TEXT\u0026amp;url=YOUR_URL\u0026amp;via=YOUR_TWITTER\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-circle dsb-twitter fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-twitter fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"//plus.google.com/share?url=YOUR_URL\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-circle dsb-googleplus fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-google-plus fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"javascript:void((function()%7Bvar%20e=document.createElement(\u0026apos;script\u0026apos;);e.setAttribute(\u0026apos;type\u0026apos;,\u0026apos;text/javascript\u0026apos;);e.setAttribute(\u0026apos;charset\u0026apos;,\u0026apos;UTF-8\u0026apos;);e.setAttribute(\u0026apos;src\u0026apos;,\u0026apos;//assets.pinterest.com/js/pinmarklet.js?r=\u0026apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-circle dsb-pinterest fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-pinterest-p fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"//www.linkedin.com/shareArticle?url=YOUR_URL\u0026amp;title=YOUR%20TITLE\u0026amp;summary=YOUR%20SUMMARY\" class=\"fa-stack fa-lg\"\u003e\n   \u003ci class=\"fa fa-circle dsb-linkedin fa-stack-2x\"\u003e\u003c/i\u003e\n   \u003ci class=\"fa fa-linkedin fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n```\n### Square Icons\n![Screenshot of Square Direct Share Icons](http://i.imgur.com/nsRLSLp.png)\n```html\n\u003ca href=\"//www.facebook.com/sharer/sharer.php?u=YOUR_URL\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-square dsb-facebook fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-facebook fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"//twitter.com/intent/tweet/?text=YOUR_TEXT\u0026amp;url=YOUR_URL\u0026amp;via=YOUR_TWITTER\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-square dsb-twitter fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-twitter fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"//plus.google.com/share?url=YOUR_URL\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-square dsb-googleplus fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-google-plus fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"javascript:void((function()%7Bvar%20e=document.createElement(\u0026apos;script\u0026apos;);e.setAttribute(\u0026apos;type\u0026apos;,\u0026apos;text/javascript\u0026apos;);e.setAttribute(\u0026apos;charset\u0026apos;,\u0026apos;UTF-8\u0026apos;);e.setAttribute(\u0026apos;src\u0026apos;,\u0026apos;//assets.pinterest.com/js/pinmarklet.js?r=\u0026apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());\" class=\"fa-stack fa-lg\"\u003e\n  \u003ci class=\"fa fa-square dsb-pinterest fa-stack-2x\"\u003e\u003c/i\u003e\n  \u003ci class=\"fa fa-pinterest-p fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n\n\u003ca href=\"//www.linkedin.com/shareArticle?url=YOUR_URL\u0026amp;title=YOUR%20TITLE\u0026amp;summary=YOUR%20SUMMARY\" class=\"fa-stack fa-lg\"\u003e\n   \u003ci class=\"fa fa-square dsb-linkedin fa-stack-2x\"\u003e\u003c/i\u003e\n   \u003ci class=\"fa fa-linkedin fa-stack-1x dsb-white\"\u003e\u003c/i\u003e\n\u003c/a\u003e\n```\n\n### Icons with Text\n![Screenshot of Direct Share Icons with text label](http://i.imgur.com/yVAncsL.png)\n```html\n\n\u003ca href=\"//www.facebook.com/sharer/sharer.php?u=YOUR_URL\" class=\"dsb-btn dsb-facebook-bg dsb-white\"\u003e\u003ci class=\"fa fa-facebook\"\u003e\u003c/i\u003e Share\u003c/a\u003e\n\n\u003ca href=\"//twitter.com/intent/tweet/?text=YOUR_TEXT\u0026amp;url=YOUR_URL\u0026amp;via=YOUR_TWITTER\" class=\"dsb-btn dsb-twitter-bg dsb-white\"\u003e\u003ci class=\"fa fa-twitter\"\u003e\u003c/i\u003e Tweet\u003c/a\u003e\n\n\u003ca href=\"//plus.google.com/share?url=YOUR_URL\" class=\"dsb-btn dsb-googleplus-bg dsb-white\"\u003e\u003ci class=\"fa fa-google-plus\"\u003e\u003c/i\u003e Share\u003c/a\u003e\n\n\u003ca href=\"javascript:void((function()%7Bvar%20e=document.createElement(\u0026apos;script\u0026apos;);e.setAttribute(\u0026apos;type\u0026apos;,\u0026apos;text/javascript\u0026apos;);e.setAttribute(\u0026apos;charset\u0026apos;,\u0026apos;UTF-8\u0026apos;);e.setAttribute(\u0026apos;src\u0026apos;,\u0026apos;//assets.pinterest.com/js/pinmarklet.js?r=\u0026apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());\" class=\"dsb-btn dsb-pinterest-bg dsb-white\"\u003e\u003ci class=\"fa fa-pinterest-p\"\u003e\u003c/i\u003e Pin It\u003c/a\u003e\n\n\u003ca href=\"//www.linkedin.com/shareArticle?url=YOUR_URL\u0026amp;title=YOUR%20TITLE\u0026amp;summary=YOUR%20SUMMARY\" class=\"dsb-btn dsb-linkedin-bg dsb-white\"\u003e\u003ci class=\"fa fa-linkedin\"\u003e\u003c/i\u003e Share\u003c/a\u003e\n```\n\n## Credits\n[Font Awesome](http://fortawesome.github.io/Font-Awesome/) - For the Social Network Logos\n\n[Danny van Kooten](https://dannyvankooten.com/add-plain-html-social-sharing-links-posts/) - For the insight into social network sharing\n\n[Jeremy Mansfield](http://www.brandaiddesignco.com/insights/add-a-custom-pinterest-pin-it-button-to-your-website/) - For the insight into Pinterest functionality from URL\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidwebltd%2Fdirect-share-buttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapidwebltd%2Fdirect-share-buttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidwebltd%2Fdirect-share-buttons/lists"}