Duton / eLuvLetter

Web luv letter

Home Page:https://eluvletter.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use eLuvLetter

license

Important links

Name URL
Git https://git-scm.com/downloads
GitHub https://github.com/
eLuvLetter https://github.com/george-chou/eLuvLetter
Vercel https://vercel.com/

Install Git

git-scm.com/downloads

Customize

  1. Register a GitHub account and fork a copy of this repository to your own account

  2. Clone the repository to local:

git clone https://github.com/%Your_GitHub_Account%/eLuvLetter.git
  1. Go to the ./eLuvLetter/font/ directory, open content.json, and customize the configuration as follows:
{
    "to"        : "envelope recipient",
    "from"      : "sign",
    "recipient" : "letter recipient",
    "title"     : "Web page tab title",
    "stamp"     : "Stamp URL",
    "bgm"       : "BGM URL",
    "text"      : "letter content"
}

The symbol ^n in the demo means that the typewriter pauses for n milliseconds,

BGM URL is the default mp3 directory or mp3 direct link in the demo code(Note: It is best not to use the API to get mp3, it may be blocked by cross-domain)

If you use the default directory, you can rename your mp3 to bgm.mp3 and overwrite bgm.mp3 under ./eLuvLetter/bgm to achieve custom modification of BGM

Deploy to Vercel

  1. Sync the modified local code to your GitHub account:
cd eLuvLetter
git add .
git commit -a
# i
# input description
# :wq!
git push
  1. Enter Vercel official website

  2. Log in with your own GitHub account authorization, click + New Project

  3. Type the keyword eLuvLetter in the search box of Import Git Repository to find the repository that was previously forked

  4. Click Import to modify the PROJECT NAME under Configure Project

  5. Make sure that PROJECT NAME does not conflict with others and click Deploy

  6. After the deployment is complete, you can visit https://%PROJECT_NAME%.vercel.app in the WAN to view the webpage. (where %PROJECT_NAME% is the PROJECT NAME just modified under Configure Project)

Good luck!

About

Web luv letter

https://eluvletter.netlify.app

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 75.2%Language:CSS 21.0%Language:HTML 3.8%