import React from 'react';
import { Affix } from 'antd';
import styled from 'styled-components';

const HomeTopicView = () => {
  return (
    <Affix offsetTop={58}>
      <HomeTopicWrap>
        <div>212341</div>
        <div>HomeTopicView</div>
      </HomeTopicWrap>
    </Affix>
  );
};

export default HomeTopicView;
// 样式
const HomeTopicWrap = styled.div`
  position: relative;
  width: 20rem;
  height: 20rem;
  //background: linear-gradient(
  //  180deg,
  //  #fff9f8 2%,
  //  #fff9f8 2%,
  //  #fffdfc 15%,
  //  #ffffff 24%,
  //  #ffffff 100%
  //);
  border-radius: 0.42rem;
  box-sizing: border-box;
  background: lightpink;
`;
