Skip to content

Commit cc3273a

Browse files
authored
Merge pull request #51 from snepsnepy/feat/glass-surface
Migrated 'Glass Surface' component.
2 parents 0b3e38f + 566a56a commit cc3273a

File tree

5 files changed

+658
-1
lines changed

5 files changed

+658
-1
lines changed

src/constants/Categories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Highlighted sidebar items
2-
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type'];
2+
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface'];
33
export const UPDATED = [];
44

55
// Used for main sidebar navigation
@@ -60,6 +60,7 @@ export const CATEGORIES = [
6060
subcategories: [
6161
'Animated List',
6262
'Masonry',
63+
'Glass Surface',
6364
'Magic Bento',
6465
'Profile Card',
6566
'Dock',

src/constants/Components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const textAnimations = {
4848
const components = {
4949
'animated-list': () => import('../demo/Components/AnimatedListDemo.vue'),
5050
'masonry': () => import('../demo/Components/MasonryDemo.vue'),
51+
'glass-surface': () => import('../demo/Components/GlassSurfaceDemo.vue'),
5152
'magic-bento': () => import('../demo/Components/MagicBentoDemo.vue'),
5253
'profile-card': () => import('../demo/Components/ProfileCardDemo.vue'),
5354
'dock': () => import('../demo/Components/DockDemo.vue'),
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import code from '@content/Components/GlassSurface/GlassSurface.vue?raw';
2+
import { createCodeObject } from '../../../types/code';
3+
4+
export const glassSurface = createCodeObject(code, 'Components/GlassSurface', {
5+
usage: `<template>
6+
<GlassSurface
7+
:width="300"
8+
:height="200"
9+
:border-radius="24"
10+
style="custom-style"
11+
/>
12+
</template>
13+
14+
<script setup lang="ts">
15+
import GlassSurface from "./GlassSurface.vue";
16+
</script>`
17+
});

0 commit comments

Comments
 (0)