1.1.3 • Published 2 years ago
@canopassoftware/canopas-blog-components v1.1.3
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
Blogs 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
- Add
blog-componentsdependency to your project .
Using yarn :
yarn add --dev @canopassoftware/canopas-blog-componentsUsing npm :
npm install --save-dev @canopassoftware/canopas-blog-components- Add
blog-componentsto themodulessection ofnuxt.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 prepareTo create output.css file
yarn prepack- Copy
output.cssfile from.dist/folder and paste inside thesrcfolder
Start component in dev mode using :
yarn dev Compiles and minifies for production :
yarn dev:build yarn generateYou can access the page by pointing a web browser at http://localhost:3000
LICENSE
This repository licenced under MIT.