MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / PostIndex

Function PostIndex

src/Components/Post/PostIndex.jsx:65–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65export default function PostIndex() {
66 return (
67 <Box sx={{flex: 1, minHeight: 0, overflowY: "auto", width: "100%", py: {xs: 1, sm: 2}}}>
68 <Typography variant="h5" sx={{fontWeight: 700}}>经验分享帖</Typography>
69 <Typography sx={{color: "text.secondary", mt: 1, mb: 4, maxWidth: 720}}>
70 学长学姐的申请与发展经验长文,覆盖从选校、套磁、文书到海外就业与长期规划的方方面面。
71 从左侧列表选择一篇开始阅读,也欢迎你贡献自己的故事。
72 </Typography>
73
74 <SectionLabel>快速上手</SectionLabel>
75 <Box sx={{display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))", gap: 2}}>
76 {tips.map((tip) => (
77 <Paper key={tip.title} elevation={0}
78 sx={{bgcolor: (theme) => theme.palette.surfaceVariant, borderRadius: 3, p: 2.5, display: "flex", gap: 2, alignItems: "flex-start"}}>
79 <IconTile>{tip.icon}</IconTile>
80 <Box>
81 <Typography sx={{fontWeight: 600, mb: 0.5}}>{tip.title}</Typography>
82 <Typography variant="body2" sx={{color: "text.secondary", lineHeight: 1.7}}>{tip.desc}</Typography>
83 </Box>
84 </Paper>
85 ))}
86 </Box>
87
88 <Box sx={{mt: 4}}>
89 <SectionLabel>常见主题</SectionLabel>
90 <Paper elevation={0}
91 sx={{bgcolor: (theme) => theme.palette.surfaceVariant, borderRadius: 3, p: 2.5, display: "flex", flexWrap: "wrap", gap: 1}}>
92 {topics.map((topic) => (
93 <Chip key={topic} label={topic}
94 sx={{bgcolor: (theme) => theme.palette.surface, color: "text.primary", fontWeight: 500}}/>
95 ))}
96 </Paper>
97 </Box>
98
99 <Box sx={{mt: 4}}>
100 <SectionLabel>注意事项</SectionLabel>
101 <Paper elevation={0} sx={{bgcolor: (theme) => theme.palette.surfaceVariant, borderRadius: 3, p: 2.5}}>
102 <Box sx={{display: "flex", alignItems: "center", gap: 1, mb: 1, color: "text.primary"}}>
103 <BlockOutlined fontSize="small" sx={{color: "primary.main"}}/>
104 <Typography sx={{fontWeight: 600}}>发帖与评论前请留意</Typography>
105 </Box>
106 <Box component="ul" sx={{m: 0, pl: 2.5, color: "text.secondary"}}>
107 {notes.map((note) => (
108 <Typography component="li" variant="body2" key={note} sx={{lineHeight: 1.9}}>{note}</Typography>
109 ))}
110 </Box>
111 </Paper>
112 </Box>
113 </Box>
114 );
115}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected