Added <FaultyTerminal /> background

This commit is contained in:
Utkarsh-Singhal-26
2025-07-24 08:48:42 +05:30
parent a0d85e88d9
commit 8b1b863283
5 changed files with 677 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
// Highlighted sidebar items
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel', 'Scroll Stack'];
export const NEW = ['Target Cursor', 'Ripple Grid', 'Magic Bento', 'Galaxy', 'Text Type', 'Glass Surface', 'Sticker Peel', 'Scroll Stack', 'Faulty Terminal'];
export const UPDATED = [];
// Used for main sidebar navigation
@@ -93,6 +93,7 @@ export const CATEGORIES = [
'Dither',
'Dot Grid',
'Hyperspeed',
'Faulty Terminal',
'Ripple Grid',
'Silk',
'Lightning',

View File

@@ -95,6 +95,7 @@ const backgrounds = {
'grid-distortion': () => import('../demo/Backgrounds/GridDistortionDemo.vue'),
'ripple-grid': () => import('../demo/Backgrounds/RippleGridDemo.vue'),
'galaxy': () => import('../demo/Backgrounds/GalaxyDemo.vue'),
'faulty-terminal': () => import('../demo/Backgrounds/FaultyTerminalDemo.vue'),
};
export const componentMap = {

View File

@@ -0,0 +1,33 @@
import code from '@content/Backgrounds/FaultyTerminal/FaultyTerminal.vue?raw';
import { createCodeObject } from '../../../types/code';
export const faultyTerminal = createCodeObject(code, 'Backgrounds/FaultyTerminal', {
installation: `npm install ogl`,
usage: `<template>
<div class="relative w-full h-[600px]">
<FaultyTerminal
:scale="1.5"
:grid-mul="[2, 1]"
:digit-size="1.2"
:time-scale="1"
:pause="false"
:scanline-intensity="1"
:glitch-amount="1"
:flicker-amount="1"
:noise-amp="1"
:chromatic-aberration="0"
:dither="0"
:curvature="0"
tint="#ffffff"
:mouse-react="true"
:mouse-strength="0.5"
:page-load-animation="false"
:brightness="1"
/>
</div>
</template>
<script setup lang="ts">
import FaultyTerminal from "./FaultyTerminal.vue";
</script>`
});