# nails-courses-card-detail

> Component for npm registry

Latest version **0.1.4** (published 2020-11-25) · 0 weekly downloads

## Install

```sh
npm install nails-courses-card-detail
pnpm add nails-courses-card-detail
yarn add nails-courses-card-detail
bun add nails-courses-card-detail
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2020-11-25 |
| First published | 2020-10-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 2.8 MB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Author | vue-command |
| Maintainers | systanon |

## Links

- npm: https://www.npmjs.com/package/nails-courses-card-detail
- npm.io page: https://npm.io/package/nails-courses-card-detail

## Dependencies (7)

- [npm](https://npm.io/package/npm.md) ^6.14.8
- [run](https://npm.io/package/run.md) ^1.4.0
- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [package](https://npm.io/package/package.md) ^1.0.1
- [vuetify](https://npm.io/package/vuetify.md) ^2.2.11
- [nails-styles](https://npm.io/package/nails-styles.md) ^0.0.3

## Recent versions

- 0.1.4 (latest) — 2020-11-25
- 0.1.3 — 2020-10-06
- 0.1.2 — 2020-10-05
- 0.1.1 — 2020-10-05
- 0.1.0 — 2020-10-05
- 0.0.9 — 2020-10-04
- 0.0.8 — 2020-10-04
- 0.0.7 — 2020-10-04
- 0.0.6 — 2020-10-03
- 0.0.5 — 2020-10-03
- 0.0.4 — 2020-10-03
- 0.0.3 — 2020-10-03
- 0.0.2 — 2020-10-03
- 0.0.1 — 2020-10-03

## README

## install component
```
yarn add nails-courses-card-detail
```

### Load the component and it's styles

App.vue
```
import 'nails-courses-card-detail'
import 'nails-courses-card-detail/dist/dgtek-app-header.css'
```

### Use the component

```
 <CourseCardDetail
  :category="category"
  :days="days"
  :nameOfCourse="nameOfCourse"
  :subtitle="subtitle"
  :price="price"
  :author="author"
  :instructor="instructor"
  :infoBonus="infoBonus"
  :courseSuitable="courseSuitable"
  :description="description"
  :dateOfCourses="dateOfCourses"
  :url="url"
  :type="typeCourse"
  :coverImageSrc="coverImageSrc"
/>
```

### Example

###### App.vue
```
<template>
  <v-container fluid style="background: black">
    <v-row>
      <v-col
        cols="12"
        xs="12"
        order="2"
        sm="6"
        order-sm="2"
        class="d-flex flex-column justify-space-between align-center align-sm-start"
      >
        <v-card flat class="mb-8 transparent" dark>
          <v-card-title class="pa-0 pl-4">{{ category }}</v-card-title>
          <v-card-text class="pa-0 pl-4 buttons--text d-flex"
            >{{ type }} course</v-card-text
          >
          <v-card-title class="pa-0 pl-4">{{ nameOfCourse }}</v-card-title>
          <v-card-text class="pa-0 pl-4 text-start ">{{ subtitle }}</v-card-text>
          <v-card-title class="pa-0 pl-4 buttons--text"
            >{{ days }} days | $ {{ price }}</v-card-title
          >
        </v-card>
        <v-card flat class="transparent d-flex flex-column align-center" dark>
          <v-card-title>This course is cuitable for:</v-card-title>
          <ul>
            <li v-for="(item, index) in courseSuitable" :key="index">
              {{ item }}
            </li>
          </ul>
        </v-card>
      </v-col>
      <v-col
        cols="12"
        xs="12"
        order="1"
        sm="6"
        order-sm="2"
        align="center"
        justify="center"
      >
        <v-img width="400px" :src="imageUrl" @error="onError" height="250px"></v-img>
      </v-col>
      <v-col cols="12" xs="12" order="2">
        <v-card-text
          class="mt-16 whitefone--text d-flex justify-center justify-sm-start"
          >Author and instructor of the course: {{ instructor }}</v-card-text
        >
      </v-col>
      <v-col cols="12" xs="12" order="2">
        <v-card flat dark class="transparent">
          <v-card-title class="d-flex justify-center justify-sm-start"
            >On this course:</v-card-title
          >
          <v-card-text>{{ description }}</v-card-text>
          <v-card-text>{{ infoBonus }}</v-card-text>
        </v-card>
      </v-col>
    </v-row>
  </v-container>
</template>
<style scoped></style>
<script>
import { VContainer, VRow, VCol, VCard, VCardTitle, VCardText, VImg } from 'vuetify/lib'

export default {
  props: [
    'nameOfCourse',
    'subtitle',
    'price',
    'author',
    'instructor',
    'infoBonus',
    'courseSuitable',
    'description',
    'days',
    'category',
    'dateOfCourses',
    'url',
    'type',
    'coverImageSrc'
  ],
  components: {
    VContainer,
    VRow,
    VCol,
    VCard,
    VCardTitle,
    VCardText,
    VImg
  },
  name: 'preview-course',
  data () {
    return {
      imageUrl: null
    }
  },
  watch: {
    url (val) {
      this.checkUrl(val)
    }
  },
  computed: {},
  methods: {
    onError () {
      this.imageUrl = this.coverImageSrc
    },
    checkUrl (url) {
      this.imageUrl = url || this.coverImageSrc
    }
  },
  created () {
    this.checkUrl(this.url)
  }
}
</script>

```

---
_Source: https://npm.io/package/nails-courses-card-detail · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
