Git Product home page Git Product logo

paadc's Introduction

(PAADC

This is a volunteer project to create social media awareness for the student run event. Attendees input their name and upload an image to generate a customize PAADC event dp.

You can find an online demo at PAADC.

eventDp homepage

Tools Used

  • jquery.min.js - for dom event and manipulation
  • jquery.cropit.js - client side cropping of user uploaded image
  • JS - for client side image processing and merging
  • themify-icon - to display icons

Folder structure and files

- src/
	css/
		style.css 			:css to customize the page, hint: code from scratch
	fonts/
		kenyan_coffee/		:folder contains font files
		themify-icon.css 	:font css
		themify-*			:others themify css file
	img/
		frame.jpg 			: base image frame where user image will be place/merge
		noimage.png 		:a fallback default image
	js/
		jquery.cropit.js 	:simple jquery image cropping plugin
		jquery.min.js 		:jquery official library
		main.js 			:custom js where the magic happens
- .htacess					:custom server file for file dir access
- index.html 				:main html file where magic happens

How to run locally

  • Open your command prompt and clone the repository by running

git clone https://github.com/geektutor/PAADC.git

  • Copy the folder to your WAMP www root or XAMPP htdots or run php -S 127.0.0.1:1000 from your folder in your terminal
  • Then run in a browser

How to use

The jQuery CropIt plugin was used for image upload. The inherent resize feature of the plugin was overriden due to certain design compromises.

JavaScript was used to place the uploaded image on top of a base frame, and export the resulting composite image to jpeg format. The base frame is a 1200 x 1200 picture. The alloted space for uploaded image is 800 x 800.

The naming style for the image is set on line 38, you can edit the ECX_DP_ to suit your needs.

You can set the height and width of the uploaded image in the createDP function on line 92.

Contributors

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.