From 0bb22e87142120eeca9fee2ea2269a20bd8d8fec Mon Sep 17 00:00:00 2001 From: Reddy Uppathi Date: Fri, 8 Nov 2024 03:05:26 +0530 Subject: [PATCH 1/5] doc: glare card demo documentation --- .../examples/glare-card/GlareCardDemo.vue | 8 ++++++++ .../glare-card/GlareMultiCardDemo.vue | 20 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 components/content/inspira/examples/glare-card/GlareCardDemo.vue create mode 100644 components/content/inspira/examples/glare-card/GlareMultiCardDemo.vue diff --git a/components/content/inspira/examples/glare-card/GlareCardDemo.vue b/components/content/inspira/examples/glare-card/GlareCardDemo.vue new file mode 100644 index 0000000..92c0f22 --- /dev/null +++ b/components/content/inspira/examples/glare-card/GlareCardDemo.vue @@ -0,0 +1,8 @@ + diff --git a/components/content/inspira/examples/glare-card/GlareMultiCardDemo.vue b/components/content/inspira/examples/glare-card/GlareMultiCardDemo.vue new file mode 100644 index 0000000..2203b54 --- /dev/null +++ b/components/content/inspira/examples/glare-card/GlareMultiCardDemo.vue @@ -0,0 +1,20 @@ + From 9fb1e415064504d9c257e036126f5d2a8efb3b0c Mon Sep 17 00:00:00 2001 From: Reddy Uppathi Date: Fri, 8 Nov 2024 03:06:02 +0530 Subject: [PATCH 2/5] feat: glare card component --- .../inspira/ui/glare-card/GlareCard.vue | 147 ++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 components/content/inspira/ui/glare-card/GlareCard.vue diff --git a/components/content/inspira/ui/glare-card/GlareCard.vue b/components/content/inspira/ui/glare-card/GlareCard.vue new file mode 100644 index 0000000..787e285 --- /dev/null +++ b/components/content/inspira/ui/glare-card/GlareCard.vue @@ -0,0 +1,147 @@ + + + + + From 74bb346f5b16450f3c0a7283ec7e89b59a31a16f Mon Sep 17 00:00:00 2001 From: Reddy Uppathi Date: Fri, 8 Nov 2024 03:06:14 +0530 Subject: [PATCH 3/5] feat: glare card component demo --- content/2.components/glare-card.md | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 content/2.components/glare-card.md diff --git a/content/2.components/glare-card.md b/content/2.components/glare-card.md new file mode 100644 index 0000000..7600fc1 --- /dev/null +++ b/content/2.components/glare-card.md @@ -0,0 +1,40 @@ +--- +title: Glare Card +description: A glare effect that happens on hover, as seen on Linear's website. +navBadges: + - value: New + type: lime +--- + +::ComponentLoader{label="Preview" componentName="GlareCardDemo" type="examples" id="glare-card"} +:: + +## Examples + +### Multiple Cards + +::ComponentLoader{label="Preview" componentName="GlareMultiCardDemo" type="examples" id="glare-card"} +:: + +## API + +| Prop Name | Type | Default | Description | +| ----------- | -------- | ------- | --------------------------------------------------------- | +| `class` | `string` | `-` | Additional Tailwind CSS class names to apply to the card. | +| `cardWidth` | `number` | `320` | Adjust the card width based on your needs. | + +## Component Code + +You can copy and paste the following code to create these components: + +::CodeViewer{filename="GlareCard.vue" language="vue" componentName="GlareCard" type="ui" id="glare-card"} +:: + +## Features + +- **Slot Support**: Easily add any content inside the component using the default slot. + +## Credits + +- Credits to [SivaReddy Uppathi](https://github.com/sivareddyuppathi) for this component. +- Inspired from [Aceternity UI](https://ui.aceternity.com/components/glare-card). From 182ccccd76dd29b6761fb25d29a875dd3eb61a80 Mon Sep 17 00:00:00 2001 From: Sivareddy Uppathi Date: Fri, 8 Nov 2024 14:01:30 +0530 Subject: [PATCH 4/5] Update GlareCard.vue Remove width prop --- .../content/inspira/ui/glare-card/GlareCard.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/components/content/inspira/ui/glare-card/GlareCard.vue b/components/content/inspira/ui/glare-card/GlareCard.vue index 787e285..70f567f 100644 --- a/components/content/inspira/ui/glare-card/GlareCard.vue +++ b/components/content/inspira/ui/glare-card/GlareCard.vue @@ -1,12 +1,7 @@