From 49be3ea9df3005c4c53e16899388449e49d687aa Mon Sep 17 00:00:00 2001 From: thehrz Date: Thu, 6 Jul 2023 15:33:21 +0800 Subject: [PATCH] perf(layout): update styles --- {public => src/assets}/jsons/events.json | 0 src/assets/jsons/teachers.json | 18 +++++++++++++++++ src/common/interfaces/Teacher.ts | 6 ++++++ src/components/Footer.vue | 4 ++-- src/components/Nav.vue | 4 ++++ src/layouts/default.vue | 16 +++++++++++---- src/layouts/index.vue | 16 +++++++++++---- src/pages/teachers/index.vue | 25 ++++++++++++++++++------ src/posts/index.vue | 3 +++ tsconfig.json | 2 +- unocss.config.ts | 1 - vite.config.ts | 1 - 12 files changed, 77 insertions(+), 19 deletions(-) rename {public => src/assets}/jsons/events.json (100%) create mode 100644 src/assets/jsons/teachers.json create mode 100644 src/common/interfaces/Teacher.ts create mode 100644 src/posts/index.vue diff --git a/public/jsons/events.json b/src/assets/jsons/events.json similarity index 100% rename from public/jsons/events.json rename to src/assets/jsons/events.json diff --git a/src/assets/jsons/teachers.json b/src/assets/jsons/teachers.json new file mode 100644 index 0000000..4f896ea --- /dev/null +++ b/src/assets/jsons/teachers.json @@ -0,0 +1,18 @@ +{ + "语文": [ + { + "name": "金卫东", + "description": "中共党员, 包河区第四、第五届中学语文学科带头人, 合肥市语文骨干教师; 荣获合肥市优秀班主任、包河区师德标兵、包河好人等荣誉称号; 获合肥市首届和第二届"我读经典"语文教师征文一等奖; 坚持撰写教育博客, 获合肥市岗位大练兵教师空间一等奖; 繁荣校园文化,创作《南园赋》, 产生良好社会影响; 主持"基于传统文化的初中语文课堂教学实践研究"课题, 获合肥市2019年优秀课题; 2020年获合肥市"三科国家统编教材优质课评选"一等奖; 辅导学生先后获得第十届中国中学生大赛和第十三届"叶圣陶杯"全国中学生新作文大赛最高奖." + }, + { + "name": "陈香", + "description": "南园中学语文教师, 爱岗敬业, 任劳任怨, 深受学生的爱戴, 家长的好评. 多篇论文, 教学设计获市区级一二等奖, 区优质课二等奖, 区试卷命题大赛一等奖, 辅导学生朗诵演讲比赛多次获一二奖. 2021年获得"包河区优秀教师"称号." + } + ], + "数学": [ + { + "name": "晏彦", + "description": "中学一级教师, 从事教育教学工作十余年; 在中学数学教育教学中因材施教, 勇于探索, 敢于创新, 寓教于乐; 尊重、信任学生, 充分发挥学生的主体作用, 并且取得可喜成绩, 所带班级的考试成绩始终名列前茅. 在班主任管理工作中, 擅于与学生进行沟通和交流, 深受学生的喜爱; 所带班级班风纯正、学风优良, 多次被评为"包河区先进班集体". 曾荣获"全国示范校多学科新课程探索研讨会"论文评比一等奖, 包河区微课评选一等奖, 包河区教学评比二等奖; 2016年评为包河区优秀教师." + } + ] +} diff --git a/src/common/interfaces/Teacher.ts b/src/common/interfaces/Teacher.ts new file mode 100644 index 0000000..65cab9b --- /dev/null +++ b/src/common/interfaces/Teacher.ts @@ -0,0 +1,6 @@ +interface Teacher { + name: string + description: string +} + +export { Teacher } diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 64dcc18..6dd5f24 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -8,7 +8,7 @@ function toggleLocales() { diff --git a/src/components/Nav.vue b/src/components/Nav.vue index ffa00ae..b49f38f 100644 --- a/src/components/Nav.vue +++ b/src/components/Nav.vue @@ -10,6 +10,10 @@ export default { title: '事件', page: '/events', }, + { + title: '文章', + page: '/posts', + }, { title: '关于', page: '/about', diff --git a/src/layouts/default.vue b/src/layouts/default.vue index 94baae5..2b8d776 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -1,10 +1,18 @@