Skip to content

Instantly share code, notes, and snippets.

@devmnj
Created October 31, 2022 10:02
Show Gist options
  • Select an option

  • Save devmnj/d4c6d61fa4bc30dfd77eef3a0b3dda2c to your computer and use it in GitHub Desktop.

Select an option

Save devmnj/d4c6d61fa4bc30dfd77eef3a0b3dda2c to your computer and use it in GitHub Desktop.
Svelte Twind Banner Component
<div class="container my-10 mx-auto">
<!-- Section: Design Block -->
<section class="">
<div class="bg-slate-600 alert alert-dismissible fade show fixed top-0 right-0 left-0 z-[1030] w-full py-2 px-6 text-white md:flex justify-between items-center text-center md:text-left">
<div class="mb-1 md:mb-0 flex items-center flex-wrap justify-center md:justify-start">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="w-4 h-4 mr-2">
<!-- Font Awesome Pro 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) -->
<path fill="currentColor"
d="M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z" />
</svg>
<strong class="mr-1">Crafted </strong>beautifully with <a href="https://kit.svelte.dev/" class="text-orange-300 px-2" >SvelteKit</a> and Powered By <a class="text-pink-300 px-2" href="http://prismic.io"> Prismic </a>
</div>
</div>
</section>
<!-- Section: Design Block -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment