Skip to content

smart-developer1791/go-valentine-countdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’• Valentine Countdown ~ Ai no Kauntodaun

Go Version Fiber Three.js Tailwind CSS Alpine.js Render

๐ŸŒธ Japanese-themed countdown to Valentine's Day with 3D sakura petals, floating lanterns, daily love quotes, and beautiful hiragana/katakana decorations. Auto-resets each year on February 15th!

โœจ Features

Japanese Aesthetic

  • Sakura Petals โ€” 150 falling cherry blossom petals in 3D
  • Paper Lanterns โ€” Floating chochin lanterns with warm glow
  • Heart Particles โ€” Ambient floating hearts
  • Hiragana/Katakana โ€” Decorative Japanese characters
  • Japanese Fonts โ€” Noto Sans JP, Shippori Mincho
  • Color Palette โ€” Sakura pink, ume plum, kincha gold

Countdown Features

  • Live Countdown โ€” Days, hours, minutes, seconds to Feb 14
  • Auto-Reset โ€” Starts counting to next year on Feb 15
  • Valentine's Day Mode โ€” Special celebration screen on Feb 14
  • Target Year Display โ€” Shows which Valentine's Day

Daily Content

  • Love Quotes โ€” 15 romantic quotes with authors
  • Japanese Phrases โ€” Love expressions with romanji
  • Valentine Facts โ€” Interesting trivia about the holiday
  • Gift Ideas โ€” Creative date and gift suggestions
  • Deterministic Selection โ€” Same content all day, changes at midnight

๐Ÿš€ Quick Start

Clone and run:

git clone https://github.com/smart-developer1791/go-valentine-countdown
cd go-valentine-countdown

Initialize and start:

go mod tidy
go run .

Open http://localhost:3000 ๐ŸŒธ

๐Ÿ—“๏ธ How Date Logic Works

Current Date          Target Valentine's Day
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Jan 1 - Feb 14  โ†’    Feb 14 of current year
Feb 15 - Dec 31 โ†’    Feb 14 of next year

Example:

  • If today is January 30, 2026 โ†’ counting to Feb 14, 2026
  • If today is February 20, 2026 โ†’ counting to Feb 14, 2027

๐Ÿ›  Tech Stack

Layer Technology
Backend Go 1.21+, Fiber v2
3D Engine Three.js r160
Frontend Alpine.js 3.x, Tailwind CSS
Fonts Noto Sans JP, Shippori Mincho

๐Ÿ“ Project Structure

go-valentine-countdown/
โ”œโ”€โ”€ main.go              # Server, countdown logic, daily content
โ”œโ”€โ”€ go.mod               # Dependencies
โ”œโ”€โ”€ render.yaml          # Deploy config
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ templates/
    โ””โ”€โ”€ index.html       # Single page with 3D scene

๐ŸŒ API Endpoints

Method Path Description
GET / Main countdown page
GET /api/countdown Get countdown data
GET /api/daily Get daily content

GET /api/countdown Response

{
  "target_year": 2026,
  "days_left": 42,
  "hours_left": 15,
  "minutes_left": 30,
  "seconds_left": 45,
  "total_seconds": 3681045,
  "is_valentine_day": false
}

GET /api/daily Response

{
  "quote": {
    "text": "Love is composed of a single soul...",
    "author": "Aristotle"
  },
  "fact": "In Japan, women give chocolates to men...",
  "idea": "Write a heartfelt love letter by hand...",
  "japanese": "ๆ„›ใ—ใฆใ‚‹",
  "romanji": "Aishiteru - I love you",
  "day_of_year": 45
}

๐ŸŽจ Color Palette

Color Hex Japanese Name
Sakura 400 #f48ca2 ๆกœ (sakura)
Sakura 300 #f8b4c2 ่–„ๆกœ (usuzakura)
Kincha #c7802d ้‡‘่Œถ (kincha)
Fuji #89729e ่—ค (fuji)
Ume #e03c8a ๆข… (ume)

๐ŸŒธ 3D Visual Effects

  • Sakura Petals โ€” 150 falling petals with physics
  • Paper Lanterns โ€” 8 floating chochin with glow
  • Heart Particles โ€” 30 floating hearts
  • Stars โ€” 100 twinkling background stars
  • Sway Animation โ€” Natural wind-like movement

๐ŸŽŒ Japanese Elements

Decorative Text

  • Vertical kanji: ๆ„›ๆฐธ้ ๆ‹ๅฟƒ (love, eternity, romance, heart)
  • Hiragana: ใ‚ใ„ใ—ใฆใ‚‹ (aishiteru)
  • Katakana: ใ‚ขใ‚คใ‚ทใƒ†ใƒซ (aishiteru)

Daily Japanese Phrases

  • ๆ„›ใ—ใฆใ‚‹ (Aishiteru) โ€” I love you
  • ๅคงๅฅฝใ (Daisuki) โ€” I really like you
  • ไธ€็›ฎๆƒšใ‚Œ (Hitomebore) โ€” Love at first sight
  • ้‹ๅ‘ฝใฎไบบ (Unmei no hito) โ€” Destined person
  • And more...

๐Ÿ’• Valentine's Day 2026

Count down the days until you can express your love! This app brings the beauty of Japanese aesthetics to the anticipation of Valentine's Day.

"ๆ„›ใฏๆฐธ้ ใซ" โ€” Love is forever


Deploy in 10 seconds

Deploy to Render

About

๐ŸŒธ Japanese Valentine countdown with 3D sakura, floating lanterns & daily love quotes. Auto-resets yearly. Go Fiber + Three.js + Alpine.js + Tailwind. ๐Ÿ’•

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors