From 07ce88d997f5e84fd3231b10a594c3cb57ed4c2d Mon Sep 17 00:00:00 2001 From: David Haz Date: Mon, 14 Jul 2025 21:09:53 +0300 Subject: [PATCH] Simplify demo components --- .../code/Animations/imageTrailCode.ts | 1 - .../TextAnimations/TrueFocus/TrueFocus.vue | 2 +- src/css/category.css | 17 -- src/demo/Animations/AnimatedContentDemo.vue | 223 ++++++++--------- src/demo/Animations/BlobCursorDemo.vue | 2 +- src/demo/Animations/ClickSparkDemo.vue | 172 ++++++------- src/demo/Animations/CountUpDemo.vue | 86 ++++--- src/demo/Animations/CubesDemo.vue | 2 +- src/demo/Animations/FadeContentDemo.vue | 130 +++++----- src/demo/Animations/GlareHoverDemo.vue | 86 +++---- src/demo/Animations/ImageTrailDemo.vue | 10 +- src/demo/Animations/MagnetDemo.vue | 106 ++++---- src/demo/Animations/MagnetLinesDemo.vue | 30 ++- src/demo/Animations/MetaBallsDemo.vue | 2 +- src/demo/Animations/MetallicPaintDemo.vue | 147 +++++------ src/demo/Animations/NoiseDemo.vue | 40 ++- src/demo/Animations/PixelTransitionDemo.vue | 116 +++++---- src/demo/Animations/RibbonsDemo.vue | 94 +++---- src/demo/Animations/SplashCursorDemo.vue | 52 ++-- src/demo/Components/CardSwapDemo.vue | 236 +++++++++--------- src/demo/Components/CarouselDemo.vue | 104 ++++---- src/demo/Components/CircularGalleryDemo.vue | 120 +++++---- src/demo/Components/DecayCardDemo.vue | 44 ++-- src/demo/Components/DockDemo.vue | 166 ++++++------ src/demo/Components/ElasticSliderDemo.vue | 67 +++-- src/demo/Components/FlowingMenuDemo.vue | 32 ++- src/demo/Components/FlyingPostersDemo.vue | 160 ++++++------ src/demo/Components/GlassIconsDemo.vue | 36 ++- src/demo/Components/GooeyNavDemo.vue | 106 ++++---- src/demo/Components/InfiniteScrollDemo.vue | 74 +++--- src/demo/Components/MasonryDemo.vue | 149 ++++++----- src/demo/Components/PixelCardDemo.vue | 56 ++--- src/demo/Components/ProfileCardDemo.vue | 80 +++--- src/demo/Components/SpotlightCardDemo.vue | 70 +++--- src/demo/Components/TiltedCardDemo.vue | 80 +++--- src/demo/TextAnimations/AsciiTextDemo.vue | 136 +++++----- src/demo/TextAnimations/BlurTextDemo.vue | 154 ++++++------ src/demo/TextAnimations/CircularTextDemo.vue | 82 +++--- src/demo/TextAnimations/CurvedLoopDemo.vue | 120 +++++---- src/demo/TextAnimations/DecryptedTextDemo.vue | 200 ++++++++------- src/demo/TextAnimations/FallingTextDemo.vue | 102 ++++---- src/demo/TextAnimations/FuzzyTextDemo.vue | 122 +++++---- src/demo/TextAnimations/GlitchTextDemo.vue | 64 +++-- src/demo/TextAnimations/GradientTextDemo.vue | 12 - src/demo/TextAnimations/RotatingTextDemo.vue | 2 +- src/demo/TextAnimations/ScrambleTextDemo.vue | 100 ++++---- src/demo/TextAnimations/ScrollRevealDemo.vue | 3 +- src/demo/TextAnimations/ShinyTextDemo.vue | 70 +++--- src/demo/TextAnimations/SplitTextDemo.vue | 118 +++++---- src/demo/TextAnimations/TextCursorDemo.vue | 90 ++++--- src/demo/TextAnimations/TextPressureDemo.vue | 216 ++++++++-------- src/demo/TextAnimations/TextTrailDemo.vue | 118 +++++---- src/demo/TextAnimations/TrueFocusDemo.vue | 100 ++++---- 53 files changed, 2254 insertions(+), 2453 deletions(-) diff --git a/src/constants/code/Animations/imageTrailCode.ts b/src/constants/code/Animations/imageTrailCode.ts index 0721cc6..4d601a5 100644 --- a/src/constants/code/Animations/imageTrailCode.ts +++ b/src/constants/code/Animations/imageTrailCode.ts @@ -7,7 +7,6 @@ export const imageTrail: CodeObject = { usage: ` diff --git a/src/demo/Animations/CountUpDemo.vue b/src/demo/Animations/CountUpDemo.vue index f266efb..9a44c03 100644 --- a/src/demo/Animations/CountUpDemo.vue +++ b/src/demo/Animations/CountUpDemo.vue @@ -1,57 +1,55 @@ - - diff --git a/src/demo/Components/PixelCardDemo.vue b/src/demo/Components/PixelCardDemo.vue index 92027b6..3dc0d51 100644 --- a/src/demo/Components/PixelCardDemo.vue +++ b/src/demo/Components/PixelCardDemo.vue @@ -1,38 +1,34 @@ - - diff --git a/src/demo/TextAnimations/FuzzyTextDemo.vue b/src/demo/TextAnimations/FuzzyTextDemo.vue index 06a4fcc..5ee549a 100644 --- a/src/demo/TextAnimations/FuzzyTextDemo.vue +++ b/src/demo/TextAnimations/FuzzyTextDemo.vue @@ -1,75 +1,73 @@ - - diff --git a/src/demo/TextAnimations/ScrollRevealDemo.vue b/src/demo/TextAnimations/ScrollRevealDemo.vue index 65ab320..4e11965 100644 --- a/src/demo/TextAnimations/ScrollRevealDemo.vue +++ b/src/demo/TextAnimations/ScrollRevealDemo.vue @@ -181,8 +181,7 @@ const propData = [ } .scroll-content { - padding-top: 150vh !important; - padding-bottom: 50vh; + padding: 150vh 2em 50vh 2em; } .scroll-instruction { diff --git a/src/demo/TextAnimations/ShinyTextDemo.vue b/src/demo/TextAnimations/ShinyTextDemo.vue index 56c1b00..d0768b9 100644 --- a/src/demo/TextAnimations/ShinyTextDemo.vue +++ b/src/demo/TextAnimations/ShinyTextDemo.vue @@ -1,48 +1,46 @@