Created
June 20, 2022 19:31
-
-
Save shishirraven/4d1768257ce8b3d34a8e4a092a6fcc45 to your computer and use it in GitHub Desktop.
Brave Gist Embed Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<main class="flex-1 lg:p-16"> | |
<div class="py-6"> | |
<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8"> | |
<h1 class="text-4xl font-semibold mb-10"> | |
<i class="bi me-2 bi-github"></i> | |
Brave Gist Embed | |
</h1> | |
<p> | |
You can use this Component to embed Github Gist, right now it solves | |
the problem which one faces while using the script tag embed code | |
given by Gist. | |
</p> | |
<h2 class="text-2xl mt-7 mb-4">Example</h2> | |
<p>The following is an Embed by BraveGistEmbed component</p> | |
<BraveGistEmbed | |
class="my-10" | |
url="https://gist.github.com/shishirraven/de437adec76659671c4b6d2d45630375" | |
/> | |
</div> | |
<hr /> | |
</div> | |
</main> | |
</template> | |
<script> | |
import { BraveGistEmbed } from "bravevue"; | |
export default { | |
components: { BraveGistEmbed }, | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment