Add clip path to index images

This commit is contained in:
philipp lang 2024-02-01 01:24:42 +01:00
parent e62934504b
commit 10070f39ad
1 changed files with 4 additions and 3 deletions

View File

@ -1,8 +1,9 @@
<template> <template>
<div class="mt-4 md:mt-6 grid gap-4 grid-cols-[repeat(auto-fill,minmax(250px,1fr))] font-nunito"> <div class="mt-4 md:mt-6 grid gap-4 grid-cols-[repeat(auto-fit,minmax(280px,max-content))] font-nunito justify-center">
<a v-for="(event, index) in events" :key="index" href="#" @click.prevent="makeVisible(event)" <a v-for="(event, index) in events" :key="index" href="#" @click.prevent="makeVisible(event)"
class="relative top-0 transition-all duration-200 hover:top-[-10px] shadow-lg hover:shadow-2xl rounded-lg bg-white flex flex-col overflow-hidden group"> class="relative top-0 transition-all duration-200 hover:top-[-10px] shadow-lg hover:shadow-2xl rounded-lg bg-white flex flex-col overflow-hidden group max-w-[400px]">
<img :src="event.image" /> <img :src="event.image"
class="flex-none w-full h-auto transition-all transition-linear duration-200 [clip-path:circle(200%_at_50%_-90%)] group-hover:[clip-path:circle(200%_at_50%_-102%)]" />
<div class="p-6 flex flex-col grow"> <div class="p-6 flex flex-col grow">
<h2 class="font-arvo flex-none text-primary text-sm md:text-base" v-text="event.name"></h2> <h2 class="font-arvo flex-none text-primary text-sm md:text-base" v-text="event.name"></h2>
<div class="flex items-baseline text-sm"> <div class="flex items-baseline text-sm">