Added search modal
This commit is contained in:
@@ -30,7 +30,7 @@ const { currentDate } = useCalendar()
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="md:col-span-3">
|
||||
<div class="md:col-span-3 flex justify-end">
|
||||
<CalendarMenuSearch />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,31 @@
|
||||
<script lang="ts" setup>
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Dialog, DialogContent, DialogTrigger } from '@/components/ui/dialog'
|
||||
import { Input } from '@/components/ui/input'
|
||||
import { PhMagnifyingGlass } from '@phosphor-icons/vue'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Button size="default">
|
||||
<PhMagnifyingGlass size="18" weight="fill" />
|
||||
<Dialog>
|
||||
<DialogTrigger>
|
||||
<Button>
|
||||
<PhMagnifyingGlass size="20" weight="light" />
|
||||
Recherche avancée
|
||||
</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
Rechercher
|
||||
</Button>
|
||||
<DialogContent>
|
||||
<div class="relative w-full items-center">
|
||||
<Input
|
||||
id="search"
|
||||
type="text"
|
||||
placeholder="Rechercher un évènement, un personnage…"
|
||||
class="pl-10 py-6 text-lg"
|
||||
/>
|
||||
<span class="absolute start-1 inset-y-0 flex items-center justify-center px-2 opacity-50">
|
||||
<PhMagnifyingGlass size="20" />
|
||||
</span>
|
||||
</div>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user