8000 GitHub - hpahm/Birthdayth: A sweet interactive birthday letter built with Svelte. · GitHub
[go: up one dir, main page]

Skip to content

About

A sweet interactive birthday letter built with Svelte.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
< 8000 a title="index.html" aria-label="index.html, (File)" class="Link--primary" href="/hpahm/Birthdayth/blob/main/index.html" data-discover="true">index.html
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Birthdayth

VI: Thiệp sinh nhật tương tác được xây dựng bằng Svelte, với phong cách pastel nhẹ nhàng, hiệu ứng mở thư, nhạc nền và lời chúc cá nhân hóa.
EN: A sweet interactive birthday letter built with Svelte, featuring a soft pastel design, letter-opening animation, background music, and personalized wishes.

Birthdayth preview

Tính năng | Features

Tiếng Việt

  • Giao diện thiệp sinh nhật.
  • Hiệu ứng mở phong thư và hiển thị lời chúc dạng typewriter.
  • Đồng hồ đếm ngược đến ngày sinh nhật.
  • Nhạc nền và nhạc riêng khi mở thư.
  • Hiệu ứng cánh hoa, pháo giấy và âm thanh tương tác.
  • Gửi điều ước qua Telegram Bot nếu được cấu hình.
  • Lưu lời chúc thành ảnh PNG.

English

  • Birthday card interface.
  • Interactive envelope-opening animation with a typewriter-style wish.
  • Countdown timer to the birthday.
  • Background music and dedicated letter music.
  • Floating petals, confetti, and interactive sound effects.
  • Optional wish delivery through a Telegram Bot.
  • Save the birthday letter as a PNG image.

Công nghệ | Tech stack

Bắt đầu | Getting started

Yêu cầu | Requirements

  • Node.js 18 trở lên | Node.js 18 or later
  • npm

Cài đặt và chạy local | Install and run locally

npm install
npm run dev

Mở địa chỉ được hiển thị trong terminal, thường là http://localhost:5173.

Open the URL shown in the terminal, usually http://localhost:5173.

Build production

npm run build
npm run preview

Tùy chỉnh | Customization

Tiếng Việt

Mở file src/birthday.config.js để thay đổi:

  • Tên và nickname người nhận.
  • Ngày sinh nhật và ngày hiển thị.
  • Tên và đường dẫn các file nhạc.
  • Nội dung lời chúc và chữ ký.
  • Thông tin Telegram Bot nếu muốn nhận điều ước.

Đặt các file nhạc vào thư mục public/music/:

public/music/bg.mp3
public/music/letter.mp3

English

Open src/birthday.config.js to customize:

  • Recipient name and nickname.
  • Birthday and display date.
  • Music titles and file paths.
  • Birthday wishes and signature.
  • Telegram Bot settings for receiving wishes.

Place the music files in public/music/:

public/music/bg.mp3
public/music/letter.mp3

Cấu trúc chính | Main structure

src/
├── App.svelte
├── birthday.config.js
├── app.css
└── lib/
    ├── sound.js
    └── components/
        ├── CountdownWidget.svelte
        ├── FloatingPetals.svelte
        ├── InteractiveSection.svelte
        ├── IntroSection.svelte
        ├── MainWishSection.svelte
        └── MusicPlayer.svelte

License

VI: Project cá nhân dùng cho mục đích học tập và tạo thiệp tặng người thân, bạn bè.
EN: A personal project for learning and creating birthday cards for family and friends.

About

A sweet interactive birthday letter built with Svelte.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0