Giter Site home page Giter Site logo

luffythink / beautifulalbum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acane77/beautifulalbum

0.0 0.0 0.0 22.08 MB

iOS相册风格的纯静态响应式布局的在线相册。/ iOS-photo-album-style pure-static responsive online photo album.

Home Page: https://acane77.github.io/album-demo.html

License: MIT License

JavaScript 4.19% Python 17.91% CSS 27.70% HTML 1.70% Vue 48.51%

beautifulalbum's Introduction

Beautiful Album

简介

使用Vue编写的,iOS相册风格的,纯静态响应式布局的在线相册。

在线Demo (密码为secret)

  • 纯静态网页,运行时不需要任何后端程序和数据库,可存放在github.io。
  • 支持多个相册,访问时支持密码保护

超越妹妹真的太可爱啦!!!

Preview 1

Preview 2

Preview 2

如何使用?

首先,编译Web项目

  1. 安装依赖: npm install
  2. 构建项目: npm run build,生成的代码在dist目录下。复制所有dist目录下的文件到nginx的web root根目录。

然后生成图片缓存以及相关json文件

  1. 安装依赖:pip3 install numpy pillow

  2. 在scripts目录下,新建一个albums目录,这个目录用来存放相册。

  3. 在albums目录下新建目录,每一个目录都是一个相册,建议使用英语名,例如:cutecy。 新建一个和之前的目录名同名的.txt文件可以自定义一个好看的名称, 例如新建cutecy.txt,并在该文件中保存文本作为显示在界面中的相册名(例如:超越妹妹可可爱爱)。在每个相册的目录都可以放入任意的图片。

  4. 如果需要密码访问该相册,在scripts目录下新建一个password.txt,并将密码保存到该文本文件中。

  5. 运行 generate-jsons.py。

  6. 在nginx的web root根目录下新建一个api目录,并将albums、album-caches以及生成的所有json文件放入该目录。

注意:之后每一次更新完照片以后,都需要重新执行上述4-5步骤。


by Miyuki, 2020.1, Licensed under MIT license

beautifulalbum's People

Contributors

acane77 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.