### Install Next.js Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/emmanuelh-dev_gentle-crab-69.html Installs the Next.js framework using npm. This command fetches and installs the latest version of Next.js, a popular React framework for building web applications. ```bash $ npm install next + next@10.2.3 added 1 package, and audited 2 packages in 3s ``` -------------------------------- ### Install Next.js Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/Manish-Tamang_empty-firefox-58.html Installs the Next.js framework using npm. This command fetches and installs the latest version of Next.js, a popular React framework for building web applications. ```bash $ npm install next + next@10.2.3 added 1 package, and audited 2 packages in 3s ``` -------------------------------- ### Install Uiverse Package Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/Yaya12085_soft-jellyfish-99.html Installs the Uiverse package using npm. This command fetches and installs the latest version of the uiverse package, making its functionalities available for use in your project. The output confirms the successful installation and the packages audited. ```bash $ npm install uiverse + uiverse@1.0.0 added 1 package, and audited 2 packages in 3s ``` -------------------------------- ### Install and Initialize Tailwind CSS Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/Na3ar-17_curvy-bird-92.html This snippet details the commands required to install Tailwind CSS as a development dependency and then initialize its configuration file. It's a standard setup process for projects using Tailwind. ```Terminal npm install -D tailwindcss npx tailwindcss init ``` -------------------------------- ### JavaScript Example Function Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/Jarol20cb_sour-jellyfish-99.html A straightforward JavaScript function demonstrating variable declaration and console output. It serves as a basic example of client-side scripting. ```javascript function example() { let message = "Hello, World!"; console.log(message); } ``` -------------------------------- ### Python Console Output Simulation Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/NlghtM4re_evil-warthog-61.html This Python script simulates printing messages to a console and includes a placeholder function for handling favorites. It demonstrates basic loop and conditional logic. ```python def main(): for i in range(100): print(f"Add to favorites {i}") if favorite = true: Favorite() def Favorite(): print("thanks") main() ``` -------------------------------- ### Run Galaxy Project Command (npx) Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/ilkhoeri_smooth-quail-87.html A command-line instruction using `npx` to execute or install the Uiverse.io Galaxy project. `npx` allows running Node.js package executables without globally installing them first. This command is typically used to bootstrap or run a project from a repository. ```shell npx uiverse-io/galaxy ``` -------------------------------- ### Shell Prompt Example Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/mrhyddenn_tame-mouse-76.html A sample command-line interface prompt demonstrating a typical user and location structure. It shows the username, hostname, current directory, and the command input indicator. ```shell johndoe@admin: ~ $ ``` -------------------------------- ### C++ Basic Arithmetic and Output Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/aadium_mighty-dog-12.html A fundamental C++ program that declares two integer variables, calculates their sum, and prints the result to the console. It includes standard C++ headers and the main function structure. ```cpp #include using namespace std; int main() { int a = 12; int b = 5; cout << "Sum of the numbers\n is: " << (a + b); return 0; } ``` -------------------------------- ### CSS Animation: Rocket Start (Smoke) Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/krokettenkoal_blue-wombat-33.html Defines the 'rocket-start' animation, simulating the initial smoke or exhaust effect when a rocket launches. It animates scale, rotation, translation, and opacity. Includes vendor prefixes. ```CSS /* ANIMATION: ROCKET START (SMOKE) */ @-webkit-keyframes rocket-start { 0% { transform: scale(0) rotate(180deg) translateX(0); } 20% { opacity: 1; transform: scale(1) rotate(180deg) translateX(12px); } 100% { opacity: 0; transform: scale(0) rotate(180deg) translateX(20px); } } @-moz-keyframes rocket-start { 0% { transform: scale(0) rotate(180deg) translateX(0); } 20% { opacity: 1; transform: scale(1) rotate(180deg) translateX(12px); } 100% { opacity: 0; transform: scale(0) rotate(180deg) translateX(20px); } } @keyframes rocket-start { 0% { transform: scale(0) rotate(180deg) translateX(0); } 20% { opacity: 1; transform: scale(1) rotate(180deg) translateX(12px); } 100% { opacity: 0; transform: scale(0) rotate(180deg) translateX(20px); } } ``` -------------------------------- ### CSS Animation: box-scale6 Source: https://github.com/uiverse-io/galaxy/blob/main/loaders/Admin12121_black-sheep-17.html Defines a CSS keyframe animation named 'box-scale6'. This animation controls the rotation and scaling of an element, starting with a scale of 0 and transitioning to a scale of 1. ```css @keyframes box-scale6 { 30% { transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(0); } 38%, 100% { transform: rotateY(-47deg) rotateX(-15deg) rotateZ(15deg) scale(1); } } ``` -------------------------------- ### JavaScript Hello World Function Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/Mhyar-nsi_modern-fly-46.html A basic JavaScript function that logs a provided text string to the console multiple times. It demonstrates a simple loop and template literal usage. No external dependencies are required. ```javascript function helloWorld(text){ for(let i = 0 ; i < 10 ; i++){ console.log(`${text}`); } } helloWorld('Hello World'); ``` -------------------------------- ### Uiverse.io Galaxy CSS Styling Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/NlghtM4re_evil-warthog-61.html This CSS code defines the styling for a UI component resembling a console window, including its container, title bar, buttons (close, reduce, fullscreen), and the console output area itself. It uses flexbox for layout and includes hover effects for buttons. ```css /* From Uiverse.io by NlghtM4re - Tags: green, card, code, menu */ .container { display: flex; justify-content: center; align-items: center; } .window { position: absolute; height: 200px; width: 300px; background-color: #fff; border: 2px solid #333; border-radius: 15px; overflow: hidden; } .window-title { height: 30px; background-color: #333; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25); } .window-title p { color: #fff; font-weight: bold; margin: 0; padding: 0; text-align: left; } .window-buttons { display: flex; align-items: center; } .window-button { width: 10px; height: 10px; border-radius: 5px; margin: 5px; transition: background-color 0.2s ease; } .window-button.close { background-color: #f00; } .window-button.close:hover { background-color: rgb(182, 2, 2); cursor: pointer; } .window-button.reduce { background-color: #ff0; } .window-button.reduce:hover { background-color: rgb(172, 172, 4); cursor: pointer; } .window-button.fullscreen { background-color: #0f0; } .window-button.fullscreen:hover { background-color: rgb(7, 159, 7); cursor: pointer; } .window-button:focus { outline: none; } .console { width: 100%; height: calc(100% - 30px); background-color: #000; color: #fff; overflow: auto; } .console pre { margin: 0; padding: 5px; font-size: 15px; } .console pre code { color: #0f0; outline: none; } .console::-webkit-scrollbar { width: 8px; } .console::-webkit-scrollbar-track { background-color: #333; } .console::-webkit-scrollbar-thumb { background-color: #666; border-radius: 10px; border: 2px solid #333; } .console::-webkit-scrollbar-thumb:hover { background-color: #999; } ``` -------------------------------- ### JavaScript Console Interaction Example Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/Yaya12085_giant-elephant-67.html Demonstrates a typical JavaScript console interaction, including logging expressions and handling a 'ReferenceError' when a variable is not defined. It shows the output of a valid calculation after the error. ```javascript JS console... console.log(a*b); ReferenceError{" a is not defined "} console.log(2*3); 6 ``` -------------------------------- ### CSS Tooltip with Hover Effect Source: https://github.com/uiverse-io/galaxy/blob/main/Tooltips/gouthamnetha02_strong-zebra-90.html This CSS code defines a tooltip component that appears when a user hovers over an element. It includes styling for the trigger element and the tooltip text itself, with transitions for a smooth visual effect. ```CSS /* From Uiverse.io by gouthamnetha02 - Tags: tooltip, red, hover, color, hover effect, css, css effect */ .tooltip { position: relative; display: inline-block; cursor: pointer; } .tooltip button { background-color: #db3434; color: #fff; border: none; padding: 10px 20px; border-radius: 5px; font-size: 16px; cursor: pointer; transition: background-color 0.3s, transform 0.2s ease-out; } .tooltip button:hover { background-color: #b92929; transform: scale(1.05); } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } .tooltiptext { visibility: hidden; width: 160px; background-color: #333; color: #fff; text-align: center; border-radius: 8px; padding: 5px; position: absolute; z-index: 1; bottom: 125%; left: 50%; margin-left: -80px; opacity: 0; transition: opacity 0.3s; } .tooltiptext::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent; } ``` -------------------------------- ### Galaxy Form Styling (CSS) Source: https://github.com/uiverse-io/galaxy/blob/main/Forms/rahilansari261_odd-badger-94.html Provides CSS styles for a registration or login form, featuring a dark theme, rounded corners, and animated input labels. This styling is part of the Uiverse.io Galaxy project. ```css .form { background-color: #15172b; border-radius: 20px; box-sizing: border-box; height: 500px; padding: 20px; width: 320px; } .title { color: #eee; font-family: sans-serif; font-size: 36px; font-weight: 600; margin-top: 30px; } .subtitle { color: #eee; font-family: sans-serif; font-size: 16px; font-weight: 600; margin-top: 10px; } .input-container { height: 50px; position: relative; width: 100%; } .ic1 { margin-top: 40px; } .ic2 { margin-top: 30px; } .input { background-color: #303245; border-radius: 12px; border: 0; box-sizing: border-box; color: #eee; font-size: 18px; height: 100%; outline: 0; padding: 4px 20px 0; width: 100%; } .cut { background-color: #15172b; border-radius: 10px; height: 20px; left: 20px; position: absolute; top: -20px; transform: translateY(0); transition: transform 200ms; width: 76px; } .cut-short { width: 50px; } .iLabel { color: #65657b; font-family: sans-serif; left: 20px; line-height: 14px; pointer-events: none; position: absolute; transform-origin: 0 50%; transition: transform 200ms, color 200ms; top: 20px; } .input:focus ~ .cut { transform: translateY(8px); } .input:focus ~ .iLabel { transform: translateY(-30px) translateX(10px) scale(0.75); } .input:not(:focus) ~ .iLabel { color: #808097; } .input:focus ~ .iLabel { color: #dc2f55; } .submit { background-color: #08d; border-radius: 12px; border: 0; box-sizing: border-box; color: #eee; cursor: pointer; font-size: 18px; height: 50px; margin-top: 38px; text-align: center; width: 100%; } .submit:active { background-color: #06b; } ``` -------------------------------- ### Execute System Command and Exit Script (Python) Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/reshades_rude-dingo-96.html This Python script demonstrates executing a system command to set the console title and then exits the script. It imports necessary modules `os` and `sys` for these operations. ```python import os, sys os.system("title test script") print("Hello UIVERSE.io!") sys.exit() #this is a comment. ``` -------------------------------- ### Uiverse.io Card Component Styling (CSS) Source: https://github.com/uiverse-io/galaxy/blob/main/Cards/aadium_mighty-dog-12.html CSS rules defining the appearance and behavior of a card element, including dimensions, background, border, font styles, and hover effects for interactive buttons. This styling is part of the Uiverse.io project. ```css /* From Uiverse.io by aadium - Tags: card, code, syntax */ .card { width: 250px; height: 300px; background: #15001f; border: 1px solid #c042ff; font-size: 14px; font-family: monospace; overflow: auto; } .titlebar { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-size: 21px; font-weight: 450; background-color: #2e0043; width: 100%; text-align: right; } .card button { width: 40px; height: 35px; margin-left: -5px; border: 0; outline: 0; background: transparent; transition: 0.2s; } button svg path, button svg rect, button svg polygon { fill: #ffffff; } button svg { width: 10px; height: 10px; } .close:hover { background-color: #e81123; } .maximize:hover { background-color: #c042ff2e; } .minimize:hover { background-color: #c042ff2e; } #pre { overflow: auto; width: 100%; padding: 10px; height: auto; color: #bafff8; } .curlies { color: #ff0000; } .sc { color: #e600ff; } .rounds { color: #ffffff; } .operator { color: #ffff00; } .s1 { color: #22ff00; } .s2 { color: #4281ff; } .s3 { color: #ff4284; } .s4 { color: #ffae00; } .s5 { color: #ffffff; } .s6 { color: #ffff00; } ```