All files / Layouts AppLayout.vue

100% Statements 9/9
100% Branches 8/8
100% Functions 3/3
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41          1x 1x 1x           1x 1x           1x           1x       1x                    
<script setup>
import { Link } from '@inertiajs/vue3';
</script>
 
<template>
    <div class="flex min-h-screen flex-col">
        <header class="border-b border-slate-200 bg-white">
            <div class="mx-auto flex h-14 w-full max-w-5xl items-center justify-between px-4">
                <Link
                    href="/prompts"
                    class="text-base font-semibold tracking-tight text-slate-900"
                >
                    ⚡ PromptVault
                </Link>
                <nav class="flex items-center gap-2">
                    <Link
                        href="/prompts"
                        class="rounded-md px-2.5 py-1.5 text-sm text-slate-600 hover:bg-slate-100 hover:text-slate-900"
                    >
                        Prompts
                    </Link>
                    <Link
                        href="/prompts/create"
                        class="rounded-md bg-slate-900 px-3 py-1.5 text-sm font-medium text-white hover:bg-slate-700"
                    >
                        + New Prompt
                    </Link>
                </nav>
            </div>
        </header>
        <main class="mx-auto w-full max-w-5xl flex-1 px-4 py-6">
            <slot />
        </main>
        <footer class="border-t border-slate-200 bg-white">
            <div class="mx-auto w-full max-w-5xl px-4 py-3 text-xs text-slate-500">
                Local-first prompt library · Laravel · Vue · SQLite
            </div>
        </footer>
    </div>
</template>