UIPackage
Menu

Framework

Change language

Boilerplate repo

Comparison — Versus Alternatives

blockmarketing

Two-column comparison setting this product against the status quo row by row, each line naming the mechanism rather than scoring the competitor.

Also available for React ->

Installation

$npx shadcn-vue@latest add https://uipkge.dev/r/vue/comparison-vs-alternatives.json
Named registry:npx shadcn-vue@latest add @uipkge/comparison-vs-alternativesInstalls to:app/components/blocks/

Variants

Loading interactive previews…

Files installed (1)

  • app/components/blocks/ComparisonVsAlternatives.vue3.3 kB
    <script setup lang="ts">
    import { ArrowRight } from 'lucide-vue-next'
    import { Badge } from '@/components/ui/badge'
    import { Button } from '@/components/ui/button'
    import { Card, CardContent } from '@/components/ui/card'
    import { Separator } from '@/components/ui/separator'
    
    // Each row names a mechanism on both sides. Scoring a competitor invites the
    // reader to discount the whole table; describing how each works does not.
    const rows = [
      {
        topic: 'Where the definition lives',
        them: 'Inside each dashboard, duplicated per team',
        us: 'One file in your repository, with an owner',
      },
      {
        topic: 'How a change is reviewed',
        them: 'Saved in place; the previous version is gone',
        us: 'Pull request with a diff, reviewers, and a revert',
      },
      {
        topic: 'Where access is decided',
        them: 'Per dashboard, re-applied by hand on each new one',
        us: 'Per query, resolved from your identity provider',
      },
      {
        topic: 'What a shared link exposes',
        them: 'Whatever the sender could see',
        us: 'Whatever the recipient is scoped to see',
      },
      {
        topic: 'How cost is controlled',
        them: 'Reconciled from the warehouse invoice, monthly',
        us: 'Budget enforced by the planner, before execution',
      },
      {
        topic: 'What happens if you leave',
        them: 'Definitions stay in the vendor’s format',
        us: 'Definitions and history are already in your repo',
      },
    ]
    </script>
    
    <template>
      <section data-slot="comparison-vs-alternatives" class="bg-background">
        <div class="mx-auto max-w-5xl px-6 py-20 lg:py-28">
          <div class="max-w-2xl">
            <Badge variant="secondary">How it differs</Badge>
            <h2 class="mt-4 text-3xl font-semibold tracking-tight sm:text-4xl">Against the way it is usually done</h2>
            <p class="text-muted-foreground mt-3 text-lg">
              Both columns describe a mechanism. Neither is a score, because you can check a mechanism.
            </p>
          </div>
    
          <Card class="mt-10">
            <CardContent class="p-0">
              <div
                class="text-muted-foreground grid grid-cols-1 gap-4 px-6 py-3 text-xs font-medium sm:grid-cols-[1fr_1fr_1fr]"
              >
                <span>Topic</span>
                <span class="hidden sm:block">Typical BI stack</span>
                <span class="hidden sm:block">This approach</span>
              </div>
              <Separator />
    
              <div v-for="(row, index) in rows" :key="row.topic">
                <div class="grid gap-3 px-6 py-4 sm:grid-cols-[1fr_1fr_1fr] sm:gap-4">
                  <p class="text-sm font-medium">{{ row.topic }}</p>
                  <p class="text-muted-foreground text-sm leading-relaxed">
                    <span class="text-muted-foreground/70 mr-1.5 text-xs sm:hidden">Typical:</span>{{ row.them }}
                  </p>
                  <p class="text-sm leading-relaxed">
                    <span class="text-muted-foreground/70 mr-1.5 text-xs sm:hidden">Here:</span>{{ row.us }}
                  </p>
                </div>
                <Separator v-if="index < rows.length - 1" />
              </div>
            </CardContent>
          </Card>
    
          <div class="mt-6 flex flex-wrap items-center gap-4">
            <Button>
              See it on your own data
              <ArrowRight class="ml-2 size-4" aria-hidden="true" />
            </Button>
            <p class="text-muted-foreground text-sm">No comparison page survives contact with your warehouse.</p>
          </div>
        </div>
      </section>
    </template>
    

Raw manifest:https://uipkge.dev/r/vue/comparison-vs-alternatives.json