0.3.17 • Published 4 years ago

@gcorbel_4/vue-project-timeline v0.3.17

Weekly downloads
28
License
MIT
Repository
-
Last release
4 years ago

Vue Project-timeline

npm(scoped) npm Github

Anouncement

Fork of vue-project-timeline by @gerwinov. I've add custom order and more data in selected content

Installation

npm install @gerwinov/vue-project-timeline --save

Usage

Import in your Vue component..

import VueProjectTimeline from '@gerwinov/vue-project-timeline';

export default {
  components: {
    VueProjectTimeline
  }
}

..and use it

<VueProjectTimeline :projects="projects" />

Props

You can pass the following props to the Vue Project-timeline component:

Prop nameDescriptionTypeRequiredDefault Value
timelineColorThe color of the 1px vertical line next to the yearsStringN#979797
timelineBgColorThe background color of the timeline (vertical line + years)StringN#99B0A8
selectedBgColorThe background color of the selected project cardStringN#F7B93A
hoverBgColorThe background color of a hovered project cardStringN#FFEDCB
projectsThe projects to display on the timeline (explained below)ArrayY-
orderOrder you wish the project is display (desc or asc)StringNasc

Projects syntax

The projects prop expects an Array of Objects. Each object can have the following keys:

KeyDescriptionTypeRequiredRulesDefault value
titleThe title of the projectStringY--
subtitleThe subtitle of the projectStringN--
descriptionThe description of the projectStringN--
startYearThe start year of the projectNumberYBetween 1900 - 2100-
endYearThe end year of the projectNumberY>= start year && <= current yearCurrent year when 0 or null provided
imageThe location of an image that is displayed with the projectStringN--
colorThe color of the project in the timelne when selectedStringN-#ffffff

An example projects Array would be the following:

projects: [
  {
    title: 'Client one',
    subtitle: 'Developer',
    description: `Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
                 tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
                 quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
                 consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
                 cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
                 proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`,
    image: `logo.png`,
    startYear: 2014,
    endYear: 2017,
    color: '#4a63e0'
  }
]

Styling

The Vue Project-timeline component uses the styling as present in your project for h1, h2, h3, p elements. These are used on the project cards. You can affect only elements in the Vue Project-timeline component by using #vue-project-timeline in your own CSS, as the whole component is wrapped in a div with that id.

Demo

Click here for a demo

Feature requests

Feature requests on this component are welcome!

0.3.17

4 years ago

0.3.16

4 years ago

0.3.15

5 years ago

0.3.14

5 years ago

0.3.13

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago

0.3.6

5 years ago

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago