ChapterNew.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { Col, Row } from "antd";
  2. import { Link } from "react-router";
  3. import img_book from "../../assets/library/images/books.svg";
  4. import ChapterNewList from "./ChapterNewList";
  5. import { useIntl } from "react-intl";
  6. const ChapterNewWidget = () => {
  7. const intl = useIntl();
  8. return (
  9. <Row
  10. style={{
  11. backgroundColor: "#e0e0e0",
  12. minHeight: 200,
  13. }}
  14. >
  15. <Col flex="auto"></Col>
  16. <Col
  17. flex="960px"
  18. style={{
  19. display: "flex",
  20. backgroundImage: `url(${img_book})`,
  21. backgroundRepeat: "no-repeat",
  22. }}
  23. >
  24. <div style={{ flex: 4, margin: "2em" }}>
  25. <span style={{ fontSize: "250%", fontWeight: 700 }}>
  26. {intl.formatMessage({ id: "columns.library.community.title" })}
  27. </span>
  28. <span style={{ position: "absolute", right: 30, bottom: 0 }}>
  29. <Link to="community/list">
  30. {intl.formatMessage({ id: "buttons.more" })}
  31. </Link>
  32. </span>
  33. </div>
  34. <div style={{ flex: 9 }}>
  35. <ChapterNewList />
  36. </div>
  37. </Col>
  38. <Col flex="auto"></Col>
  39. </Row>
  40. );
  41. };
  42. export default ChapterNewWidget;