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 |
-
Download and install Git;
-
Register a GitHub account, set SSH, and fork a copy of this repository to your own account;
-
Clone the repository to local:
git clone https://github.com/%Your_GitHub_Account%/eLuvLetter.git
- Go to the
./eLuvLetter/font/
directory, opencontent.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
- Sync the modified local code to your GitHub account:
cd eLuvLetter
git add .
git commit -a
# i
# input description
# :wq!
git push
- Enter Netlify official website;
- Use your GitHub account to login by authorization, click
Add new site
-Import an existing project
; - Click
GitHub
, enter the keywordeLuvLetter
in the search box to find the previously forked repo, and select it; - Click
Deploy site
to jump intoSite overview
page automatically, clickSite settings
; - Click
Change site name
underSite information
, modify second-level domain name not conflict to others, and clickSave
; - 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!