You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.1 KiB
63 lines
2.1 KiB
import Router from "utils/router.js"
|
|
|
|
class HtmxController {
|
|
async index(ctx) {
|
|
return await ctx.render("index", { name: "bluescurry" })
|
|
}
|
|
|
|
page(name, data) {
|
|
return async ctx => {
|
|
return await ctx.render(name, data)
|
|
}
|
|
}
|
|
|
|
static createRoutes() {
|
|
const controller = new HtmxController()
|
|
const router = new Router({ auth: "try" })
|
|
router.get("/htmx/timeline", async ctx => {
|
|
return await ctx.render("htmx/timeline", {
|
|
timeLine: [
|
|
{
|
|
icon: "第一份工作",
|
|
title: "???",
|
|
desc: `做游戏的。`,
|
|
},
|
|
{
|
|
icon: "大学毕业",
|
|
title: "2014年09月",
|
|
desc: `我从<a href="https://www.jxnu.edu.cn/" target="_blank">江西师范大学</a>毕业,
|
|
获得了软件工程(虚拟现实与技术)专业的学士学位。`,
|
|
},
|
|
{
|
|
icon: "高中",
|
|
title: "???",
|
|
desc: `宜春中学`,
|
|
},
|
|
{
|
|
icon: "初中",
|
|
title: "???",
|
|
desc: `宜春实验中学`,
|
|
},
|
|
{
|
|
icon: "小学(4-6年级)",
|
|
title: "???",
|
|
desc: `宜春二小`,
|
|
},
|
|
{
|
|
icon: "小学(1-3年级)",
|
|
title: "???",
|
|
desc: `丰城市泉港镇小学`,
|
|
},
|
|
{
|
|
icon: "出生",
|
|
title: "1996年06月",
|
|
desc: `我出生于江西省丰城市泉港镇`,
|
|
},
|
|
],
|
|
})
|
|
})
|
|
return router
|
|
}
|
|
}
|
|
|
|
export default HtmxController
|
|
|