Written by Robert Koch
This post is also published on Holopin.
https://holopin.io/@{YOUR USERNAME}
, here you'll find a
line of markdown that lets you embed the link to your board on any page. It will
look something like this[![@kochie's Holopin board](https://holopin.io/api/user/board?user=kochie)](https://holopin.io/@kochie)
This is what it looks like on my page.
Now this markdown snippet is great for just copying into your GitHub profile, but what if you want to add it into a page that doesn't have markdown? Well to do that you need to know a bit about what markdown is and what the snippet is doing.
If you're unfarmiliar with markdown syntax this might look a bit complicated, but don't worry it's quite simple. This markdown will convert to a picture (with alt text) and a link, here are what they look like as seperate lines.
![alt text goes here](link to image goes here) <-- An image in markdown[link text goes here](link href goes here) <-- A link in markdown
Putting the two together gives you the above line that you see on your board page. The Holopin snippet roughly translates to the below html.
<a href="https://holopin.io/@kochie"><imgsrc="https://holopin.io/api/user/board?user=kochie"alt="@kochie's Holopin board"/></a>
But now that you know how to read this markdown you can add your board to any website by writing the html yourself like I have!
<a href="https://holopin.io/@kochie"><imgsrc="https://holopin.io/api/user/board?user=kochie"alt="@kochie's Holopin board"class="rounded-xl cursor-pointer grayscale-50 hover:grayscale-0 transform-gpu duration-200"/></a>
import Image from 'next/image'import Link from 'next/link'import React, { forwardRef } from 'react'const HolopinImage = ({ user }, ref) => (<a ref={ref}><Imagesrc={`https://holopin.io/api/user/board?user=${user}`}alt={`@${user}'s Holopin board`}width={2428}height={764}/></a>)const HolopinRef = forwardRef(HolopinImage)const Holopin = ({ user }) => (<div><Link href={`https://holopin.io/@${user}`}><HolopinRef user={user} /></Link></div>)
Here's what my page looks like with the above component.