diff --git a/docs/docs/angular/usage.mdx b/docs/docs/angular/usage.mdx index f23220c..4d047c0 100644 --- a/docs/docs/angular/usage.mdx +++ b/docs/docs/angular/usage.mdx @@ -161,5 +161,6 @@ export class AppComponent { :::note `generateHeatmapData` is a helper function to generate random data for the heatmap. You can replace this function with your own data source. + ::: diff --git a/docs/docs/vue/usage.mdx b/docs/docs/vue/usage.mdx index f23220c..ac9672c 100644 --- a/docs/docs/vue/usage.mdx +++ b/docs/docs/vue/usage.mdx @@ -4,70 +4,68 @@ sidebar_position: 3 # 🚀 Usage -Use the following steps to use the Calendar Heatmap in your Angular project. +Use the following steps to use the Calendar Heatmap in your Vue project. ## Import -Import `NxCalendarHeatmapComponent` component in your Angular module or standalone component. +Import `NxCalendarHeatmap` component in your component. -```ts title="app.component.ts" -import { Component } from "@angular/core"; -import { CommonModule } from "@angular/common"; -import { RouterModule } from "@angular/router"; - -// highlight-next-line -import { NxCalendarHeatmapComponent } from "@ngeenx/nx-angular-calendar-heatmap"; - -@Component({ - standalone: true, - imports: [ - RouterModule, - CommonModule, - - // ... +```html title="App.vue" + -```html title="app.component.html" - + - + ``` ## Data Source @@ -80,86 +78,156 @@ Data must be provided by the parent component. There is no internal API call to ::: -```ts title="app.component.ts" -import { Component } from "@angular/core"; -import { CommonModule } from "@angular/common"; -import { RouterModule } from "@angular/router"; +```html title="App.vue" + + + + + ``` + :::note `generateHeatmapData` is a helper function to generate random data for the heatmap. You can replace this function with your own data source. -::: +::: diff --git a/docs/src/css/custom.css b/docs/src/css/custom.css index dce4aac..86ea5fd 100644 --- a/docs/src/css/custom.css +++ b/docs/src/css/custom.css @@ -26,7 +26,7 @@ --ifm-color-primary-light: #29d5b0; --ifm-color-primary-lighter: #32d8b4; --ifm-color-primary-lightest: #4fddbf; - --docusaurus-highlighted-code-line-bg: #4e5116; + --docusaurus-highlighted-code-line-bg: #08453d; } .preview-image { @@ -39,10 +39,10 @@ } .embed-iframe { - width: 100%; - height: 500px; - border: 0; - borderRadius: 4px; - border: 1px solid rgba(0,0,0,.125); - overflow: hidde; + width: 100%; + height: 500px; + border: 0; + borderradius: 4px; + border: 1px solid rgba(0, 0, 0, 0.125); + overflow: hidde; }