File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ const articlesWithExcerpts = await Promise.all(
7171 width = { 48 * 4 * 4 }
7272 src = { article .data .image }
7373 class :list = { [
74- " animate-move w-full rounded-xl object-center" ,
74+ " w-full rounded-xl object-center" ,
7575 additionalProps .imageClassName ,
7676 ]}
7777 />
Original file line number Diff line number Diff line change 11---
2- import { ClientRouter } from " astro:transitions" ;
2+ import { ClientRouter , fade } from " astro:transitions" ;
33import { Icon } from " astro-icon/components" ;
44
55import banner from " ../content/banner.ts" ;
@@ -20,7 +20,7 @@ interface Props {
2020const { focus } = Astro .props ;
2121---
2222
23- <ClientRouter />
23+ <ClientRouter transition:animate = { fade ({ duration: 30 }) } />
2424<header class =" fixed top-0 z-20 w-full bg-gray-50" >
2525 {
2626 banner .shown && (
Original file line number Diff line number Diff line change 11---
2- import { Image } from " astro:assets" ;
2+ import { Picture } from " astro:assets" ;
33import { getCollection } from " astro:content" ;
44import JoinUsCTA from " ../components/JoinUsCTA.astro" ;
55import GlobalLayout from " ../layouts/GlobalLayout.astro" ;
@@ -17,8 +17,9 @@ const members = (await getCollection("members")).sort(
1717 description =" ut.code(); のメンバーの一覧"
1818 focus ={ Focus .members }
1919>
20- <Image
20+ <Picture
2121 loading =" eager"
22+ formats ={ [" avif" , " webp" ]}
2223 alt =" "
2324 src ={ MembersHeader }
2425 width =" 1920"
@@ -43,8 +44,8 @@ const members = (await getCollection("members")).sort(
4344 href = { ` /members/${member .id } ` }
4445 class = " relative block drop-shadow-lg transition-colors duration-150 hover:brightness-110 active:top-0.5"
4546 >
46- <Image
47- transition : animate = " fade "
47+ <Picture
48+ formats = { [ " avif " , " webp " ] }
4849 transition :name = { ` member:image:${member .id } ` }
4950 alt = { ` ${member .data ?.nameJa } の写真 ` }
5051 src = { member .data .upperBodyImage }
You can’t perform that action at this time.
0 commit comments