GithubHelp home page GithubHelp logo

poncianodiego / pic-easy Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 8 KB

A quick front end snippet for nice looking, user friendly profile pictures. Simply add your desired size or make it responsive using your preferred grid system css framework.

CSS 69.57% HTML 30.43%

pic-easy's Introduction

pic-easy

A quick front end snippet for nice looking, user friendly profile pictures. Simply add your desired size or make it responsive using your preferred grid system css framework.

Live preview: https://codepen.io/ocanodiego/pen/ayYeeN

Dependencies:

  • font-awesome

Installation:

Just copy and paste the snippet into your html and css respectively.

Instructions:

If you don't want a circular image just remove the pic-circle class.

Select your size with the following classes:

pic-xs
pic-small
pic-medium
pic-large
pic-xl

Or feel free to edit as you like for colors and size, I added sizes so you can easily display the picture at different places across an entire application, in which you often display this kind of sizes.

If you are using a css grid system you can wrap the picture within your column setup and omit the size class to make it responsive. The edit and delete buttons are simple anchor elements so you can open a modal for image edition before uploading and delete via Ajax. Any addition or improvement is welcome, but keep in mind I want to keep it simple.

pic-easy's People

Contributors

poncianodiego avatar

Stargazers

Supun Sudaraka Manathunga avatar

Watchers

James Cloos avatar

Forkers

jhumeey

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.