diff --git a/CHANGELOG.md b/CHANGELOG.md index 2159c37..9dd5d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,5 +11,16 @@ ### Refactored -* 优化了部分内容,评分 395 -* 修改了 README \ No newline at end of file +* 优化了部分内容,评分 **395** +* 修改了 README + +## [1.1.0] - 2024-6-2 + +### Features + +* 新增 `ProjectCard` +* 完善了 Project 页面 + +### Refactored + +* 取消了头图的懒加载,删去了莫名其妙的 br \ No newline at end of file diff --git a/README.md b/README.md index cd877b3..9976c5c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ## 🖥️ Preview -![view](./view.png) +![view](https://frosti.saroprock.com/view.png) ## ✨ Features diff --git a/README.zh-CN.md b/README.zh-CN.md index 94f1473..de45bc0 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -9,7 +9,7 @@ ## 🖥️ 预览 -![view](./view.png) +![view](https://frosti.saroprock.com/view.png) ## ✨ 特点 diff --git a/package-lock.json b/package-lock.json index 6ab6f95..004f33f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "frosti", - "version": "1.0.4", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index d36ffa7..5243766 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "frosti", "type": "module", - "version": "1.0.4", + "version": "1.1.0", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 4e2749a..ae8507f 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -19,5 +19,4 @@ const today = new Date(); class="font-bold">Frosti Template ⚡️ -
diff --git a/src/components/ProjectCard.astro b/src/components/ProjectCard.astro new file mode 100644 index 0000000..3f14e6f --- /dev/null +++ b/src/components/ProjectCard.astro @@ -0,0 +1,115 @@ +--- +import { Image } from "astro:assets"; +import dayjs from "dayjs"; +const { title, image, desc, url, target = "_blank" } = Astro.props; +--- + +
+
+ { + image && ( + {title} + ) + } +
+
+
+ + {title} + +
{desc}
+
+ + + + + + + + + +
+ +
+
+
\ No newline at end of file diff --git a/src/components/ProjectJS.astro b/src/components/ProjectJS.astro new file mode 100644 index 0000000..18f072b --- /dev/null +++ b/src/components/ProjectJS.astro @@ -0,0 +1,38 @@ +--- + +--- + + diff --git a/src/pages/project.mdx b/src/pages/project.mdx index 56998b9..b617292 100644 --- a/src/pages/project.mdx +++ b/src/pages/project.mdx @@ -6,7 +6,8 @@ import success from "../components/blog/success.astro"; import warn from "../components/blog/warning.astro"; import TimeLine from "../components/page/TimeLine.astro"; import LinkCard from "../components/page/LinkCard.astro"; -import EnvelopeCard from "../components/EnvelopeCard.astro"; +import ProjectCard from "../components/ProjectCard.astro"; +import ProjectJS from "../components/ProjectJS.astro" @@ -15,13 +16,33 @@ import EnvelopeCard from "../components/EnvelopeCard.astro"; --- - + + + + \ No newline at end of file