1.1.3 • Published 4 months ago

@canopassoftware/canopas-blog-components v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Blog Components

Welcome to the blog-components library, a component library for canopas blogs website.

About

The blog-components is an open-source library developed and maintained by Canopas. Crafted using vue.js and tailwindcss a lightweight and highly efficient CSS platform on top of Nuxt 3 framework, showcasing a commitment to robust and advanced web development practices. For preview visit canopas blogs page .

Showcase

Blogs List UI

Blog List UI

Blogs Detail UI

Blog Detail UI

Prerequisites

Prior to integrating blog-components into your project, please ensure that tailwindcss is installed and properly configured within your project environment.

Quick Setup

  1. Add blog-components dependency to your project .

Using yarn :

yarn add --dev @canopassoftware/canopas-blog-components

Using npm :

npm install --save-dev @canopassoftware/canopas-blog-components
  1. Add blog-components to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    "@canopassoftware/canopas-blog-components"
  ],
});

That's it! You can now use module in your Nuxt app ✨

Here are the examples,

For all blog list,

  <BlogList :showDrafts="true" />

For tag list,
  <TagList :slug="slug" @notfound="<your-callback>" :showDrafts="true"  />


For Blog details,
  <BlogDetail
      :slug="slug"
      @notfound="<your-callback>"
      :showDrafts="true"
      :iframely-key="IFRAMELY_KEY"
      :recaptcha-key="RECAPTCHA_SITE_KEY"
    />

Steps to Run the component

Install dependencies

yarn install 

To initialize the Nuxt repo :

npx nuxi prepare

To create output.css file

yarn prepack
  • Copy output.css file from .dist/ folder and paste inside the src folder

Start component in dev mode using :

yarn dev 

Compiles and minifies for production :

yarn dev:build 
yarn generate

You can access the page by pointing a web browser at http://localhost:3000

LICENSE

This repository licenced under MIT.

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

4 months ago

1.1.0

4 months ago

1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago