Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/vtbag/website. The @vtbag website. ⭐️ Please star to support this work! ⭐️
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041---import { Image } from "astro:assets";export interface Props { alt: string; image: any; href: string;}
const { alt, image, href} = Astro.props;---
<div style="display:flex"> <div class="logo" style=`flex:1; margin: 3ex;`><a {href}> <Image src={image} {alt} loading="eager" decoding="sync"/></a> </div><div style=`flex:3`> <slot /> </div></div><style is:global> .logo img { view-transition-name: logo; mask-image: radial-gradient(ellipse at center, white 35%, transparent 71%); } ::view-transition-old(logo) { animation: 250ms ease both logo-out; } ::view-transition-new(logo) { animation: 250ms 250ms ease both logo-in; } @keyframes logo-out { to { transform: rotateY(90deg); } } @keyframes logo-in { from { transform: rotateY(90deg); } }</style>