Skip to content

feat: add new feat totinh - #487

Open
trankhahao7 wants to merge 1 commit into
J2TEAM:mainfrom
trankhahao7:feat/traitim
Open

trankhahao7 wants to merge 1 commit into
J2TEAM:mainfrom
trankhahao7:feat/traitim

Conversation

@trankhahao7

@trankhahao7 trankhahao7 commented Aug 20, 2026

Copy link
Copy Markdown

Mô tả thay đổi

Thêm trang web tỏ tình hiển thị trái tim

Loại thay đổi

  • Thêm trang mới (src/views/<traitim>/)

Checklist

  • Đã chạy pnpm lint và không có lỗi
  • Đã chạy pnpm build thành công
  • Đã tạo file meta.ts trong thư mục trang (nếu tạo trang mới)
  • Tuân thủ Design System

Copilot AI lite review requested due to automatic review settings August 20, 2026 14:40
@trankhahao7

Copy link
Copy Markdown
Author

Thêm trang web tỏ tình hiển thị trái tim

@trankhahao7 trankhahao7 changed the title Thêm trang web tỏ tình feat: add new feat totinh Aug 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.vue vớ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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants