Skip to content

Commit 4b25986

Browse files
committed
Update consolidated snippets
1 parent d8fbb85 commit 4b25986

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/consolidated/all_snippets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
{"language": "cpp", {"categoryName":"String Manipulation","snippets":[{"title":"Reverse String","description":"Reverses the characters in a string.","code":["string reverseString(const string& input) {"," string reversed = input;"," reverse(reversed.begin(), reversed.end()); // Using STL's reverse function"," return reversed;","}"],"tags":["cpp","array","reverse","utility"],"author":"Vaibhav-kesarwani"}]}
23
{"language": "scss", {"categoryName":"Typography","snippets":[{"title":"Line Clamp Mixin","description":"A Sass mixin to clamp text to a specific number of lines.","code":["@mixin line-clamp($number) {"," display: -webkit-box;"," -webkit-box-orient: vertical;"," -webkit-line-clamp: $number;"," overflow: hidden;","}"],"tags":["sass","mixin","typography","css"],"author":"technoph1le"},{"title":"Text Overflow Ellipsis","description":"Ensures long text is truncated with an ellipsis.","code":["@mixin text-ellipsis {"," overflow: hidden;"," white-space: nowrap;"," text-overflow: ellipsis;","}"],"tags":["sass","mixin","text","css"],"author":"technoph1le"},{"title":"Font Import Helper","description":"Simplifies importing custom fonts in Sass.","code":["@mixin import-font($family, $weight: 400, $style: normal) {"," @font-face {"," font-family: #{$family};"," font-weight: #{$weight};"," font-style: #{$style};"," src: url('/fonts/#{$family}-#{$weight}.woff2') format('woff2'),"," url('/fonts/#{$family}-#{$weight}.woff') format('woff');"," }","}"],"tags":["sass","mixin","fonts","css"],"author":"technoph1le"},{"title":"Text Gradient","description":"Adds a gradient color effect to text.","code":["@mixin text-gradient($from, $to) {"," background: linear-gradient(to right, $from, $to);"," -webkit-background-clip: text;"," -webkit-text-fill-color: transparent;","}"],"tags":["sass","mixin","gradient","text","css"],"author":"technoph1le"}]}
34
{"language": "scss", {"categoryName":"Layouts","snippets":[{"title":"Grid Container","description":"Creates a responsive grid container with customizable column counts.","code":["@mixin grid-container($columns: 12, $gap: 1rem) {"," display: grid;"," grid-template-columns: repeat($columns, 1fr);"," gap: $gap;","}"],"tags":["scss","grid","layout","css"],"author":"technoph1le"},{"title":"Flex Center","description":"A mixin to center content using flexbox.","code":["@mixin flex-center {"," display: flex;"," justify-content: center;"," align-items: center;","}"],"tags":["scss","flex","center","css"],"author":"technoph1le"},{"title":"Aspect Ratio","description":"Ensures elements maintain a specific aspect ratio.","code":["@mixin aspect-ratio($width, $height) {"," position: relative;"," width: 100%;"," padding-top: ($height / $width) * 100%;"," > * {"," position: absolute;"," top: 0;"," left: 0;"," width: 100%;"," height: 100%;"," }","}"],"tags":["scss","aspect-ratio","layout","css"],"author":"technoph1le"}]}
45
{"language": "scss", {"categoryName":"Animations","snippets":[{"title":"Fade In Animation","description":"Animates the fade-in effect.","code":["@keyframes fade-in {"," from {"," opacity: 0;"," }"," to {"," opacity: 1;"," }","}","","@mixin fade-in($duration: 1s, $easing: ease-in-out) {"," animation: fade-in $duration $easing;","}"],"tags":["scss","animation","fade","css"],"author":"technoph1le"},{"title":"Slide In From Left","description":"Animates content sliding in from the left.","code":["@keyframes slide-in-left {"," from {"," transform: translateX(-100%);"," }"," to {"," transform: translateX(0);"," }","}","","@mixin slide-in-left($duration: 0.5s, $easing: ease-out) {"," animation: slide-in-left $duration $easing;","}"],"tags":["scss","animation","slide","css"],"author":"technoph1le"}]}

0 commit comments

Comments
 (0)