You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.tsx 2.2 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import KFIcon from '@/components/KFIcon';
  2. import { Button, Flex, Input } from 'antd';
  3. import styles from './index.less';
  4. const hotQuestions = [
  5. {
  6. icon: '',
  7. title: '高分子材料有哪些?',
  8. },
  9. {
  10. icon: '',
  11. title: '高分子材料有哪些?',
  12. },
  13. {
  14. icon: '',
  15. title: '高分子材料有哪些?',
  16. },
  17. {
  18. icon: '',
  19. title: '高分子材料有哪些?',
  20. },
  21. ];
  22. function WorkspaceSearch() {
  23. return (
  24. <div className={styles['workspace-search']}>
  25. <Flex align="center">
  26. <img
  27. src={require('@/assets/img/workspace/search-icon.png')}
  28. className={styles['workspace-search__icon']}
  29. ></img>
  30. <span>今天你想问一些什么科学的问题</span>
  31. <img
  32. src={require('@/assets/img/workspace/search-star.gif')}
  33. className={styles['workspace-search__star']}
  34. ></img>
  35. </Flex>
  36. <div className={styles['workspace-search__textarea']}>
  37. <Input.TextArea
  38. autoSize={{ minRows: 5, maxRows: 5 }}
  39. placeholder="请输入科学问题进行搜索"
  40. allowClear
  41. />
  42. <Button
  43. icon={<KFIcon type="icon-a-lianhe173" />}
  44. color="default"
  45. variant="solid"
  46. shape="round"
  47. >
  48. 开始搜索
  49. </Button>
  50. </div>
  51. <Flex align="center" gap={'20px'} wrap>
  52. {hotQuestions.map((item, index) => (
  53. <div key={index} className={styles['workspace-search__question']}>
  54. <img
  55. src={require('@/assets/img/workspace/hot-icon.png')}
  56. className={styles['workspace-search__question__icon']}
  57. ></img>
  58. <span>{item.title}</span>
  59. </div>
  60. ))}
  61. </Flex>
  62. <Flex className={styles['workspace-search__try']} align="center" justify="center">
  63. <div>试一试主题:梅洛 · 庞蒂的“身体现象学”</div>
  64. <Button
  65. icon={<KFIcon type="icon-shuaxin1" font={12} style={{ verticalAlign: 1 }} />}
  66. color="default"
  67. variant="solid"
  68. shape="round"
  69. size="middle"
  70. >
  71. 换一换
  72. </Button>
  73. </Flex>
  74. </div>
  75. );
  76. }
  77. export default WorkspaceSearch;