Giter Site home page Giter Site logo

foxfabi / pixl Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 23.17 MB

Presents images with some transition effects (fx) so that I can improve my web development skills and learn new things.

License: MIT License

PHP 10.22% Hack 18.08% JavaScript 36.85% CSS 34.85%
javascript gulp slideshow

pixl's Introduction

Pixl

Pronunciation: /ˈpɪksəl/, /ˈpɪksɛl/

Presents images with some transition effects (fx) so that I can improve my web development skills and learn new things.

Purpose

The purpose is to improve my web development skills. I want to ...

  • ... have fun
  • ... learn new technologies, reflect and improve myself
  • ... develop something i can be proud of

Learning through experience. Learning by doing.

Masterplan

Build a web slideshow application from scratch for my daughter using:

  • HTML
  • // TODO: SCSS/SASS as a pre-processor for the CSS wich animate the images
  • JQuery to preload and show the slides
  • Gulp as a task runner (gulpfile.js)
  • JSHint to detect errors and potential problems in JavaScript code
  • CSSLint to detect errors and potential problems in CSS code
  • NPM for Node.js package management

Note: I'm using the beautiful free pictures found on Unsplash.

Workflow

I use Gulp for the front-end development workflow, making it faster and more efficient. I automate different tasks such as:

  • Injecting files that have to be referenced
  • Linting code (showing warnings and errors in console window)
  • Watching for changes in CSS, HTML and JS files
  • Concatenating and minifying code
  • Cropping and optimizing images

Architecture

First of all the project root is NOT the webroot. The webroot is ./build/.

Pixl consist of a PHP script images.php that will scan the folder ./images/ for JPG files and provide that sequence of images in JSON format to a jQuery script script.js to display it in a slideshow. After each run, the list of images will be reloaded and shuffled. The photographer is determined on the basis of the image name.

Installation

  • Download or clone the Pixl github repository
  • Run the npm install command
  • Upload the files from ./build/ folder to your Webserver

Add images

  • Run the gulp watch:images command
  • Place some images into the folder ./source/uploads/
  • Upload the files from ./build/images folder to your Webserver webroot

Requirements

  • NPM is installed on your computer when you install Node.js
  • Make sure ImageMagick is installed on your system

Author

Fabian Dennler - Github

License

See the LICENSE file for details.

Changelog

See the CHANGELOG file for details.

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.