import React, { useEffect, useMemo } from "react"; import { AnimationOnScroll } from "react-animation-on-scroll"; import "../assets/stylesheets/project.scss"; import { useContainer } from "unstated-next"; import GlobalStore from "../store/global"; import { Image } from 'antd'; import projects from '../assets/data/projects'; const Project = () => { useEffect(() => { window.scrollTo(0, 0); }, []); const {bodySize} = useContainer(GlobalStore); const count = useMemo(() => { if (bodySize.width > 850) { return 3; } return 2; }, [bodySize]); return (

Active Projects

{projects.active.map((item) => (

{item.title}

{item.content}
))}

Retired/Inactive Projects

{projects.inactive.map((item) => (

{item.title}

{item.content}
))}
{/*
(ulMaxHRef.current = h)} > {images.map((item, index) => { return (
  • alert("图片地址为:" + item)}>
    {index + 1}
  • ); })}
    */}
    {/* */}
    ); }; export default Project;