/linktree-from-url-params

Generate a linktree-like site from Base64 encoded JSON passed in as URL params

Primary LanguageHTMLMIT LicenseMIT

linktree-from-url-params

Generate a linktree-like site from Base64 encoded JSON passed in as URL params

From JSON:

{
  "elements": [
    {
      "type": "title",
      "value": "Title text"
    },
    {
      "type": "subtitle",
      "value": "Subtitle text"
    },
    {
      "type": "link",
      "icon": "fa-brands fa-facebook",
      "content": "Facebook",
      "value": "http://www.facebook.com"
    },
    {
      "type": "link",
      "icon": "fa-brands fa-twitter",
      "content": "Twitter",
      "value": "http://www.twitter.com"
    },
    {
      "type": "button",
      "icon": "fa-solid fa-copy",
      "value": "Copy",
      "onclick": "navigator.clipboard.writeText(\"hello world\");"
    }
  ]
}