feat: add new feat totinh - #487
Open
trankhahao7 wants to merge 1 commit into
Open
trankhahao7 wants to merge 1 commit into
trankhahao7 wants to merge 1 commit into
Conversation
Author
|
Thêm trang web tỏ tình hiển thị trái tim |
There was a problem hiding this comment.
Pull request overview
PR này thêm một sub-page mới traitim vào hệ thống launcher của vibe.j2team.org, nhằm hiển thị hiệu ứng trái tim (canvas particles) kèm nội dung tỏ tình và nút quay về trang chủ.
Changes:
- Thêm metadata cho page mới (
name/description/author/facebook/category) để page được đăng ký vào hệ thống pages. - Tạo trang
index.vuevới hiệu ứng trái tim bằng canvas + animation loop + điều hướng về/.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| src/views/traitim/meta.ts | Khai báo PageMeta cho trang mới traitim. |
| src/views/traitim/index.vue | Implement UI + canvas heart effect + nút quay về trang chủ. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| @@ -0,0 +1,306 @@ | |||
| <template> | |||
| <main class="heart-page"> | |||
| <canvas ref="canvasRef" aria-label="Hiệu ứng trái tim"></canvas> | |||
| position: relative; | ||
| min-height: 100vh; | ||
| overflow: hidden; | ||
| background: #000; |
Comment on lines
+275
to
+279
| color: #ff6b4a; | ||
| text-align: center; | ||
| font-family: 'Times New Roman', sans-serif; | ||
| font-size: clamp(2rem, 6vw, 4rem); | ||
| font-style: italic; |
Comment on lines
+227
to
+229
| const amount = particleRate * deltaTime | ||
| for (let index = 0; index < amount; index++) { | ||
| const particlePosition = pointOnHeart(Math.PI - 2 * Math.PI * Math.random()) |
Comment on lines
+168
to
+172
| const canvas = canvasRef.value | ||
| if (!canvas) return | ||
|
|
||
| canvas.width = canvas.clientWidth | ||
| canvas.height = canvas.clientHeight |
Comment on lines
+289
to
+295
| border: 2px solid #fc2e00; | ||
| background: transparent; | ||
| color: #fc2e00; | ||
| text-align: center; | ||
| font-family: 'Times New Roman', sans-serif; | ||
| font-size: 30px; | ||
| font-style: italic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mô tả thay đổi
Thêm trang web tỏ tình hiển thị trái tim
Loại thay đổi
src/views/<traitim>/)Checklist
pnpm lintvà không có lỗipnpm buildthành côngmeta.tstrong thư mục trang (nếu tạo trang mới)