feat(global) new api rule, NextImage support, test openresty

This commit is contained in:
lumither committed 2024-06-05 01:57:18 +08:00
1 parent ffb20b64f3
commit 56d673a9ec
9 files changed
+47 -13

No files matched your search

+6 -3
View File
@@ -1,6 +1,7 @@
import React from 'react';
import { Card, CardBody, CardFooter } from '@nextui-org/card';
import { Chip, Image } from '@nextui-org/react';
import NextImage from 'next/image';
import Link from 'next/link';
import { MdCalendarMonth, MdNorthEast } from 'react-icons/md';
@@ -28,16 +29,18 @@ function BlogPostCard({ post }: Props) {
isHoverable
>
{ header_img !== '' && <div className={ `w-full overflow-visible` }>
{ header_img !== '' && <div className={ `w-full overflow h-80 relative` }>
<Image
as={ NextImage }
alt={ 'cover picture' }
src={ header_img }
className={ `z-20 h-80 w-full object-cover rounded-b-none` }
className={ `w-full object-cover rounded-b-none` }
style={ {
'maskImage': 'linear-gradient(black 95%, transparent)',
'backdropFilter': 'blur(20px)'
} }
width={ `100%` }
fill
removeWrapper
></Image>
</div> }