index.tsx 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. import {Card, Row, Col, Divider} from 'antd'
  2. import {
  3. SafetyCertificateOutlined,
  4. FileTextOutlined,
  5. BookOutlined,
  6. SolutionOutlined,
  7. CalendarOutlined,
  8. NotificationOutlined,
  9. CompassOutlined,
  10. CustomerServiceOutlined,
  11. RightOutlined
  12. } from '@ant-design/icons'
  13. import React from 'react'
  14. import {Link} from "react-router-dom";
  15. export default function ServiceGuide() {
  16. const guideItems = [
  17. {
  18. icon: <SafetyCertificateOutlined className="text-5xl" />,
  19. label: '企业登记服务',
  20. },
  21. {
  22. icon: <FileTextOutlined className="text-5xl" />,
  23. label: '人才政策申报',
  24. },
  25. {
  26. icon: <FileTextOutlined className="text-5xl" />,
  27. label: '技术合同登记',
  28. },
  29. {
  30. icon: <BookOutlined className="text-5xl" />,
  31. label: '大学生入驻申请',
  32. },
  33. {
  34. icon: <SolutionOutlined className="text-5xl" />,
  35. label: '企业档案调取申请',
  36. },
  37. ]
  38. return (
  39. <div className="w-98vw h-97vh flex">
  40. <Row className="w-full m-4" gutter={16}>
  41. <Col xs={24} lg={12} className="h-97vh">
  42. <Card className="h-full bg-blue-500 hover:shadow-lg transition-shadow border-none rounded-none">
  43. <div className="text-white text-5xl font-bold mb-8 flex items-center justify-between">
  44. <div className="flex items-center text-5xl">
  45. <CompassOutlined className="mr-4 text-5xl" />
  46. 办事指南
  47. </div>
  48. <div className="text-5xl font-normal">
  49. 全部 <RightOutlined />
  50. </div>
  51. </div>
  52. <div className="space-y-6">
  53. {guideItems.map((item, index) => (
  54. <React.Fragment key={index}>
  55. <Link
  56. to={`/detail?value=${item.label}`}
  57. className="flex items-center text-white cursor-pointer hover:bg-blue-400 rounded-lg p-4 transition-colors"
  58. >
  59. {item.icon}
  60. <span className="ml-4 text-5xl">{item.label}</span>
  61. <RightOutlined className="ml-auto text-4xl"/>
  62. </Link>
  63. {index < guideItems.length - 1 && (
  64. <Divider className="bg-white opacity-20 my-2" />
  65. )}
  66. </React.Fragment>
  67. ))}
  68. </div>
  69. </Card>
  70. </Col>
  71. <Col xs={24} lg={12} className="h-97vh">
  72. <Row className="h-full">
  73. <Col span={24} className="h-1/2 px-1vw py-1vh">
  74. <Card
  75. className="h-full bg-yellow-400 hover:shadow-lg transition-shadow border-none rounded-none flex items-center justify-center">
  76. <div className="flex flex-col items-center">
  77. <CalendarOutlined className="text-4xl mb-2" />
  78. <span className="text-2xl">会议预定</span>
  79. </div>
  80. </Card>
  81. </Col>
  82. <Col span={12} className="h-1/2 px-1vw py-1vh">
  83. <Card className="h-full bg-green-400 hover:shadow-lg transition-shadow border-none rounded-none flex items-center justify-center">
  84. <div className="flex flex-col items-center">
  85. <NotificationOutlined className="text-4xl mb-2" />
  86. <span className="text-2xl mb-4">信息公开</span>
  87. <div className="space-y-2 text-center">
  88. <div className="cursor-pointer text-xl">通知公告</div>
  89. <div className="cursor-pointer text-xl">政策查询</div>
  90. </div>
  91. </div>
  92. </Card>
  93. </Col>
  94. <Col span={12} className="h-1/4 px-1vw py-1vh">
  95. <Card className="h-full bg-blue-300 hover:shadow-lg transition-shadow border-none rounded-none flex items-center justify-center">
  96. <div className="flex flex-col items-center">
  97. <CompassOutlined className="text-4xl mb-2" />
  98. <span className="text-2xl">园区导览</span>
  99. </div>
  100. </Card>
  101. <Card className="mt-2vh h-full bg-yellow-400 hover:shadow-lg transition-shadow border-none rounded-none flex items-center justify-center">
  102. <div className="flex flex-col items-center">
  103. <CustomerServiceOutlined className="text-4xl mb-2" />
  104. <span className="text-2xl">信息咨询</span>
  105. </div>
  106. </Card>
  107. </Col>
  108. </Row>
  109. </Col>
  110. </Row>
  111. </div>
  112. )
  113. }