Press "Enter" to skip to content

A Simple Angular Component That Allows You To Create A Portfolio

ng-portfolio is a simple angular component that allows you to create a Portfolio, just passing configs.

angular developer portfolio, angular portfolio example, angular portfolio github, free angular portfolio template, kendo grid angular codepen, angular project ideas for portfolio

How to make use of it:

Installation:

<ng-portfolio items="items" areas="areas" generic-config="genericConfig"></ng-portfolio>

Configuration for angular-portfolio directive or element:

[
     {
         //VALUE OPTIONS
           //base usage
         "value": "value to be showed",
           //Use %i% as a placeholder to set in your value, icons
           //i suggest to use font-awesome as icon library
         "value": "this string will contain an icon here --> %i%",
           //to set icon class, it becomes: " string.. <i class="fa fa-html5"></i>"
         "icon": "fa fa-html5",
         
         //FONT
           //To use font-family(css attribute) import a font in your css
           //example: @import url("https://fonts.googleapis.com/css?family=Audiowide");
         "font": "'Audiowide', cursive",
           //font dimension
         "fontSize": "0.8em",
         
         //IMAGE
         "image": "./imgs/hamburg.jpg",
           //SHADE IMAGE
         "shadeFocus": true,
         
         //ZOOM OPTIONS
           //to set zoom operation on item
         "focusScale": 1.6,
           //to set the zoom center, 50% 50% is default (item center)
         "focusCenter": "50% 50%",
         
         //BACKGROUND OPTIONS
           //set text color
         "textColor": "#f96855",
           //set background color
         "backgroundColor": "#FFFA5C",
         
         //HOVER OPTIONS
           //on hover set text color
         "hoverTextColor": "#f96855",
           //on hover set background color
         "hoverBackgroundColor": "#FFFA5C",
         
         //ANIMATIONS
           //set animation time on all properties
           //default for image: "0,5s" else is disabled
         "animationTime": "0.9s",
         
         //ID
           //All items have an id (html id)
           //by default items passed by "items" attribute are sequencially named as "item1", "item2", "item3" etc..
           //But you can override default configuration with:
         "id": "myId",
           //so, for example you can have "item1", "myId", "item3" (if you set id attribute on second items config)
           
          //SUBITEMS
           //In subitems you can set recoursive items configuration
         "subitems": [ 
               //items..
               {
                   "value": "%i%",
                   "icon": "fa fa-linkedin-square",
                   "fontSize": "1.2em"
                   //item attributes..
               },
               {
                   "id": "mySubId",
                   "subitems":[...]
               },
               ...
           ],
          //by default subitems are sequencially named as "(parent id)-sub1", "(parent id)-mySubId", "(parent id)-sub3" etc..
          
         //AREAS
           //look point 2 "areas"
         "areas":[
               ["item1", "item2", "item3"], 
               ["item1", "item2", "item3"]
          ]
           
         //GENERICCONFIG
           //look point 3 "generic-config"
         
         //CALLBACKS
           //use this sintax to pass a callback
           //in a configuration (object/json)
         "callback": {
               "name": "navigate",
               "params": ["http://www.hamburg.com/"]
         },
         "callback": function(..){....}
           //differences: 
           //To use "callback: function(){..}", you have to set callback with a function in your js, 
           //so you have to manipulate your config.
           //to use "callback: { name: "fn name", params: ["param1", "param2", etc..]}" you don't have to set any 
           //functions to your config, just set in your controller $scope (direct parent of this directive) your function, 
           //es: $scope.navifate = function(url){..};  
     }
   ]

configurable portfolio component, angular-portfolio Plugin/Github/Codepen


See Demo And Download

Official Website(marco-gonella): Click Here

This superior jQuery/javascript plugin is developed by marco-gonella. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.