diff --git a/src/constants/Categories.ts b/src/constants/Categories.ts index 3227adc..b8d5165 100644 --- a/src/constants/Categories.ts +++ b/src/constants/Categories.ts @@ -1,5 +1,5 @@ // Highlighted sidebar items -export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy']; +export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Glass Surface']; export const UPDATED = []; // Used for main sidebar navigation @@ -59,6 +59,7 @@ export const CATEGORIES = [ subcategories: [ 'Animated List', 'Masonry', + 'Glass Surface', 'Magic Bento', 'Profile Card', 'Dock', diff --git a/src/constants/Components.ts b/src/constants/Components.ts index 05ddf75..6857dd8 100644 --- a/src/constants/Components.ts +++ b/src/constants/Components.ts @@ -47,6 +47,7 @@ const textAnimations = { const components = { 'animated-list': () => import('../demo/Components/AnimatedListDemo.vue'), 'masonry': () => import('../demo/Components/MasonryDemo.vue'), + 'glass-surface': () => import('../demo/Components/GlassSurfaceDemo.vue'), 'magic-bento': () => import('../demo/Components/MagicBentoDemo.vue'), 'profile-card': () => import('../demo/Components/ProfileCardDemo.vue'), 'dock': () => import('../demo/Components/DockDemo.vue'), diff --git a/src/constants/code/Components/glassSurfaceCode.ts b/src/constants/code/Components/glassSurfaceCode.ts new file mode 100644 index 0000000..067ef68 --- /dev/null +++ b/src/constants/code/Components/glassSurfaceCode.ts @@ -0,0 +1,17 @@ +import code from '@content/Components/GlassSurface/GlassSurface.vue?raw'; +import { createCodeObject } from '../../../types/code'; + +export const glassSurface = createCodeObject(code, 'Components/GlassSurface', { + usage: ` + + + +` +}); diff --git a/src/content/Components/GlassSurface/GlassSurface.vue b/src/content/Components/GlassSurface/GlassSurface.vue new file mode 100644 index 0000000..3532a22 --- /dev/null +++ b/src/content/Components/GlassSurface/GlassSurface.vue @@ -0,0 +1,313 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/demo/Components/GlassSurfaceDemo.vue b/src/demo/Components/GlassSurfaceDemo.vue new file mode 100644 index 0000000..5fbbf34 --- /dev/null +++ b/src/demo/Components/GlassSurfaceDemo.vue @@ -0,0 +1,261 @@ + + + + + + + + + Try scrolling. + + + + + + + + + + {{ item.text }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +