Menu

Change language

GitHub repo

Multi-Column Footer

blockmarketing

Site footer with brand mark + newsletter form on the left and four link columns (Product / Company / Resources / Legal) on the right. Separator divides into a copyright + social icon row. Each link is spelled out inline so copy lives in one place.

Installation

$npx shadcn-svelte@latest add https://uipkge.dev/r/svelte/footer-01.json
Manifest:https://uipkge.dev/r/svelte/footer-01.jsonInstalls to:src/lib/components/blocks/footer-01/

Variants

Loading interactive previews…

npm dependencies

Files installed (1)

  • src/lib/components/blocks/footer-01/Footer01.svelte6.8 kB
    <script lang="ts">
      import { Boxes } from '@lucide/svelte'
      import { Button } from '$lib/components/ui/button'
      import { Input } from '$lib/components/ui/input'
      import { Separator } from '$lib/components/ui/separator'
    
      let newsletter = $state('')
      let subscribed = $state(false)
    
      function subscribe() {
        if (!newsletter) return
        subscribed = true
        newsletter = ''
      }
    </script>
    
    <!-- Brand icons are not in @lucide/svelte (Lucide ships no brand glyphs), so
         the social marks are inline SVGs — same paths as the React twin. -->
    {#snippet githubIcon(className: string)}
      <svg class={className} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
        <path
          d="M12 .5C5.7.5.5 5.7.5 12c0 5.1 3.3 9.4 7.9 10.9.6.1.8-.3.8-.6v-2c-3.2.7-3.9-1.5-3.9-1.5-.5-1.4-1.3-1.7-1.3-1.7-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.7 1.3 3.4 1 .1-.8.4-1.3.7-1.6-2.6-.3-5.3-1.3-5.3-5.8 0-1.3.5-2.3 1.2-3.1-.1-.3-.5-1.5.1-3.1 0 0 1-.3 3.3 1.2a11.4 11.4 0 016 0C17 4.7 18 5 18 5c.6 1.6.2 2.8.1 3.1.8.8 1.2 1.8 1.2 3.1 0 4.5-2.7 5.5-5.3 5.8.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6 4.6-1.5 7.9-5.8 7.9-10.9C23.5 5.7 18.3.5 12 .5z"
        />
      </svg>
    {/snippet}
    
    {#snippet twitterIcon(className: string)}
      <svg class={className} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
        <path
          d="M18.24 2.25h3.31l-7.23 8.26 8.5 11.24h-6.66l-5.21-6.82-5.97 6.82H1.68l7.73-8.84L1.25 2.25h6.83l4.71 6.23zm-1.16 17.52h1.83L7.08 4.13H5.12z"
        />
      </svg>
    {/snippet}
    
    {#snippet linkedinIcon(className: string)}
      <svg class={className} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
        <path
          d="M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28zM5.34 7.43a2.06 2.06 0 110-4.13 2.06 2.06 0 010 4.13zm1.78 13.02H3.56V9h3.56v11.45zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z"
        />
      </svg>
    {/snippet}
    
    <footer data-slot="footer-01" class="bg-background border-t">
      <div class="mx-auto max-w-6xl px-6 py-16">
        <div class="grid gap-10 lg:grid-cols-12">
          <div class="space-y-4 lg:col-span-4">
            <div class="flex items-center gap-2">
              <div class="bg-primary text-primary-foreground flex size-8 items-center justify-center rounded-md">
                <Boxes class="size-4" />
              </div>
              <span class="text-base font-semibold">Acme</span>
            </div>
            <p class="text-muted-foreground max-w-sm text-sm">Built on UIPKGE. Get product updates monthly.</p>
            <form
              class="flex max-w-sm gap-2"
              onsubmit={(e) => {
                e.preventDefault()
                subscribe()
              }}
            >
              <Input bind:value={newsletter} type="email" placeholder="[email protected]" required class="flex-1" />
              <Button type="submit">Subscribe</Button>
            </form>
            {#if subscribed}
              <p class="text-success text-xs">Thanks — check your inbox to confirm.</p>
            {/if}
          </div>
    
          <div class="grid grid-cols-2 gap-6 sm:grid-cols-4 lg:col-span-8">
            <div class="space-y-3">
              <h3 class="text-sm font-semibold">Product</h3>
              <ul class="space-y-2">
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Features</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Pricing</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Changelog</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Roadmap</a>
                </li>
              </ul>
            </div>
            <div class="space-y-3">
              <h3 class="text-sm font-semibold">Company</h3>
              <ul class="space-y-2">
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">About</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Blog</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Careers</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Contact</a>
                </li>
              </ul>
            </div>
            <div class="space-y-3">
              <h3 class="text-sm font-semibold">Resources</h3>
              <ul class="space-y-2">
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors"
                    >Documentation</a
                  >
                </li>
                <li><a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">API</a></li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Help center</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Status</a>
                </li>
              </ul>
            </div>
            <div class="space-y-3">
              <h3 class="text-sm font-semibold">Legal</h3>
              <ul class="space-y-2">
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Terms</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Privacy</a>
                </li>
                <li>
                  <a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">Security</a>
                </li>
                <li><a href="#" class="text-muted-foreground hover:text-foreground text-sm transition-colors">DPA</a></li>
              </ul>
            </div>
          </div>
        </div>
    
        <Separator class="my-10" />
    
        <div class="flex flex-wrap items-center justify-between gap-4">
          <p class="text-muted-foreground text-xs">© 2026 Acme. All rights reserved.</p>
          <div class="flex items-center gap-3">
            <a href="#" aria-label="GitHub" class="text-muted-foreground hover:text-foreground transition-colors">
              {@render githubIcon('size-4')}
            </a>
            <a href="#" aria-label="Twitter" class="text-muted-foreground hover:text-foreground transition-colors">
              {@render twitterIcon('size-4')}
            </a>
            <a href="#" aria-label="LinkedIn" class="text-muted-foreground hover:text-foreground transition-colors">
              {@render linkedinIcon('size-4')}
            </a>
          </div>
        </div>
      </div>
    </footer>
    

Raw manifest:https://uipkge.dev/r/svelte/footer-01.json