honourjawy / eLuvLetter

表白信封

Home Page:https://eluvletter.netlify.app/index-3d.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use eLuvLetter

license Netlify Status

Important links

Name URL
Git https://git-scm.com/downloads
GitHub https://github.com
eLuvLetter https://github.com/george-chou/eLuvLetter
Netlify https://app.netlify.com
2D Demo https://eluvletter.netlify.app
3D Demo https://eluvletter.netlify.app/index-3d.html

Customize

  1. Download and install Git;

  2. Register a GitHub account, set SSH, and fork a copy of this repository to your own account;

  3. 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 ^n 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 Netlify

  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 Netlify official website;
  2. Use your GitHub account to login by authorization, click Add new site - Import an existing project;
  3. Click GitHub, enter the keyword eLuvLetter in the search box to find the previously forked repo, and select it;
  4. Click Deploy site to jump into Site overview page automatically, click Site settings;
  5. Click Change site name under Site information, modify second-level domain name not conflict to others, and click Save;
  6. After the deployment, we can visit https://%PROJECT_NAME%.netlify.app to broswe your page(The %PROJECT_NAME% is the second-level domain name customized just now)

Good luck!

About

表白信封

https://eluvletter.netlify.app/index-3d.html

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 73.1%Language:HTML 13.7%Language:CSS 13.2%