Skip to content

Commit

Permalink
Enlarge bullet comment text size
Browse files Browse the repository at this point in the history
  • Loading branch information
ueewbd committed Apr 21, 2019
1 parent 9a1f399 commit 67f942e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@
```
.
├── config.json # config must be named config.json
├── image1.jpg # image file names must suffix with .jpg
├── image2.jpg
└── ...
├── normal # folder to put normal images
| ├── image1.jpg # normal image
| └── ...
└── blur # folder to put blur images
├── image1.jpg # blur image
└── ...
```
- See [Configuration](#configuration) for more information about `config.json`.
2. Upload the zipped folder to a cloud storage services(ex: dropbox) and generate a share link.
Expand Down Expand Up @@ -129,15 +132,15 @@ Visit http://localhost:5566/admin-index.html and login(default password:happy) t
## Images
Put your images into `src/public/images/`.
Put your images into `src/public/images/normal`.
Put the blur images into `src/public/images/blur`.
Compress image:
```shell
src=PATH/TO/INPUT/IMAGES
dst=PATH/TO/OUTPUT/IMAGES
for i in `ls $src`; do
gm convert -size 1280x1280 $src/$i -resize 1280x1280 $dst/normal/$i
gm convert $dst/normal/$i -blur 0x4 $dst/blur/$i
gm convert -size 1280x1280 $src/$i -resize 1280x1280 images/normal/$i
gm convert images/normal/$i -blur 0x4 images/blur/$i
done
```

Expand Down
6 changes: 4 additions & 2 deletions heroku-prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ curl -L -o /tmp/wedding/file.zip ${DOWNLOAD_URL}
unzip /tmp/wedding/file.zip -d /tmp/wedding
rm -f /tmp/wedding/file.zip
rm -f ./src/config/config.json
rm -f ./src/public/images/*
rm -rf ./src/public/images/*
find /tmp/wedding -name 'config.*' | xargs -I '{}' mv '{}' ./src/config/config.json
find /tmp/wedding -type f -not -path '*/\.*' | xargs -I '{}' mv '{}' ./src/public/images/
# find /tmp/wedding -type f -not -path '*/\.*' | xargs -I '{}' mv '{}' ./src/public/images/
find src/ -type d -name normal | xargs -I '{}' mv '{}' ./src/public/images/normal
find src/ -type d -name blur | xargs -I '{}' mv '{}' ./src/public/images/blur
rm -rf /tmp/wedding
2 changes: 1 addition & 1 deletion src/frontend/src/components/slideshow/bulletcomment.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.bulletcomment {
font-size: 32px;
font-size: 40px;
position: fixed;
left: 0px;
transition-timing-function: linear;
Expand Down

0 comments on commit 67f942e

Please sign in to comment.