npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mt-portfolio

v0.0.5

Published

A Portfolio maker for Angular with image, heading, caption, ability to add contact form and demo

Downloads

2

Readme

MtPortfolio

MT Portfolio Demo

MT Framework is going to be a simple Framework, full of different tools that can be used for your everyday development.

How to install

For installing the component in an angular application you just have to run the following command and then you can simply use it:

    npm install mt-portfolio

you also need to add @angular/platform-browser/animations to the imports in the app.module.ts like below

import { BrowserAnimationsModule } from "@angular/platform-browser/animations";

@NgModule({
imports: [BrowserModule, BrowserAnimationsModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})

Using Portfolio Maker

Demo

The portfolio maker is the result of me trying to make a portfolio website for myself. I'm hopeful that it can also be helpful to you.

for using this component, you can use the following syntax:

    <mt-portfolio [portfolioList]="portfolio" [header]="header"></mt-portfolio>

in which, the portfolioList is an array of portfolio items and model of PortfolioModel with the properties of src,srcLarge,srcMedium for images in different sizes loaded for each page. The optional alt property, which can make the plugin more SEO friendly.

this is a sample slides object:

portfolio: PortfolioModel[] = [
{
  src: 'https://masoudtahmasebi.ir/assets/img/1-.jpg', //Source of small image
  srcLarge: '../assets/img/1-.jpg', //Source of Large Image
  srcMedium: 'https://masoudtahmasebi.ir/assets/img/1-.jpg', //Source of small image
  x: '25vw', // X position, horizontal place
  y: '17vh', // Y position, vertical place
  alt: 'masoud tahmasebi',
  selectable: {
    id: 1,
    title: "Masoud", // Title on image as h1, it also accepts Html
    titleFull: " Tahmasebi", // completer of title, which shines with hover
    linkTitle: "Home", // Title shown on the navigotors
    link: "#", // Link For Navigation
    caption: `A Simple Caption` // Text below Title which also accepts Html
    }
},
{
  src: https://masoudtahmasebi.ir/assets/img/2-2.jpg',
  srcLarge: 'https://masoudtahmasebi.ir/assets/img/2-.jpg',
  srcMedium: https://masoudtahmasebi.ir/assets/img/2-2.jpg',
  x: '21vw',
  y: '5vh',
  alt: 'masoud tahmasebi',
  selectable: {
    id: 2,
    titleFull: " Me",
    title: "About",
    linkTitle: "About",
    link: "#about",
    caption: `<div style="line-height:2rem;">Custom HTML</div>`
        }
    }
];

This plugin also supports dynamic heading, which the input can given as follows:

    header: HeaderModel[] = [{
    href: "https://github.com/masoudtahmasebi93/",
    enabled: true,
    icon: `<svg width="24" height="24" viewBox="0 0 1024 1024" fill="#ff9933" xmlns="http://www.w3.org/2000/svg">...</svg>`,
    title: 'Nasoud on Github'
        }, {
    href: "https://www.linkedin.com/in/masoudtahmasebi/",
    enabled: true,
    icon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 34 34" fill="#ff9933">...</svg>`,
    title: 'Masoud on Linkedin'
}, {
    href: "https://stackoverflow.com/users/9163685/masoud-tahmasebi",
    enabled: true,
    icon: `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#ff9933">...</svg>`,
    title: 'Masoud on StackoverFlow'
},
];

Then the parameters are given to the component as follows:

<div>
    <mt-portfolio [portfolioList]="portfolio" [header]="header"></mt-portfolio>
</div>

In the demo, this code has been put in the app.component.ts.

In the end, don't forget that you have to also add MtPortfolioModule to the app.module.ts imports

...
imports: [
    ... ,
    MtPortfolioModule,
    ...
],
...

Further help

If you needed any help feel free to raise a new issue in the issues section. You are more than welcome to do so.