Skip to content

【开源市集】官网首页首屏添加“近期活动”轮播图 #66

@dethan3

Description

@dethan3

Task description

基础组件

https://react-bootstrap.github.io/docs/components/carousel/#crossfade

数据来源

服务端渲染时加载数据逻辑如下:

const latestActivities = await new ActivityModel().getList({}, 1, 3);

具体写法参考:

export const getServerSideProps = compose(cache(), errorLogger, async () => {
const awards = await new AwardModel().getAll();
return { props: { awards } };
});
const AwardPage: FC<{ awards: Award[] }> = ({ awards }) => {
return <></>;
};
export default AwardPage;

Reward currency

TQT $

Reward amount

90

Reward payer

水歌 tech-query@fcc-cd.dev

Task source

https://open-source-bazaar.feishu.cn/record/OreqrezVQeFw5Ac6StFczXcUnAh

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions