mirror of
https://github.com/Fechin/reference.git
synced 2026-11-22 05:51:48 +03:00
Merge branch 'main' of github.com:Clementwa0/reference into feature/socketio
This commit is contained in:
commit
7c3adc8910
11 files changed
+1291
-26
No files matched your search
+22
-7
@@ -7,9 +7,9 @@ title: CheatSheets.zip
|
||||
subtitle: "Ultimate Cheat for Developers"
|
||||
description: "Share quick reference and cheat sheet for developers"
|
||||
keywords: cheat,sheet,cheatsheets,reference,programming,code table,snippets,linux,command,shortcuts,developers
|
||||
author: CheatSheets.zip
|
||||
author: Fechin
|
||||
language: en
|
||||
timezone: ""
|
||||
timezone: "UTC"
|
||||
|
||||
# URL
|
||||
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
|
||||
@@ -60,13 +60,29 @@ index_generator:
|
||||
|
||||
# Category & Tag
|
||||
default_category: uncategorized
|
||||
category_map:
|
||||
tag_map:
|
||||
category_map: {}
|
||||
tag_map: {}
|
||||
|
||||
# Metadata elements
|
||||
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
|
||||
meta_generator: false
|
||||
|
||||
# SEO configuration
|
||||
seo:
|
||||
# Default image for social sharing
|
||||
default_image: "/assets/image/preview.png"
|
||||
# Author information
|
||||
author_name: "Fechin"
|
||||
author_url: "https://cheatsheets.zip"
|
||||
# Social media configuration
|
||||
social:
|
||||
twitter: "Fechin"
|
||||
github: "Fechin/reference"
|
||||
# Site type
|
||||
site_type: "Educational Technology Platform"
|
||||
# Target audience
|
||||
target_audience: "Developers, Programmers, System Administrators"
|
||||
|
||||
# Date / Time format
|
||||
## Hexo uses Moment.js to parse and display date
|
||||
## You can customize the date format as defined in
|
||||
@@ -83,10 +99,10 @@ pagination_dir: page
|
||||
|
||||
# Include / Exclude file(s)
|
||||
## include:/exclude: options only apply to the 'source/' folder
|
||||
include:
|
||||
include: []
|
||||
exclude:
|
||||
- ".github"
|
||||
ignore:
|
||||
ignore: []
|
||||
|
||||
# Extensions
|
||||
## Plugins: https://hexo.io/plugins/
|
||||
@@ -112,7 +128,6 @@ excerpt:
|
||||
# Deployment
|
||||
## Docs: https://hexo.io/docs/deployment.html
|
||||
deploy:
|
||||
# - type: cjh_google_url_submitter
|
||||
- type: cjh_bing_url_submitter
|
||||
- type: cjh_baidu_url_submitter
|
||||
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
---
|
||||
title: Color Picker
|
||||
date: 2025-07-01 18:28:43
|
||||
background: bg-[#2a6387]
|
||||
tags:
|
||||
- html
|
||||
- color
|
||||
categories:
|
||||
- Toolkit
|
||||
intro: The Color Picker cheat sheet provides you basic color info and choices
|
||||
plugins:
|
||||
- copyCode
|
||||
---
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
||||
### Color Basics {.col-span-3}
|
||||
|
||||
|
||||
| **Category** | **Description** |
|
||||
|:---------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **Color Models** | **RGB**: Red, Green, Blue – additive model used in screens. <br> **HEX**: Hexadecimal color codes, e.g., #FFFFFF. <br> **HSL**: Hue, Saturation, Lightness – intuitive for color adjustments. <br> **HSV**: Hue, Saturation, Value – similar to HSL but with different brightness handling. |
|
||||
| **Color Terminology** | **Saturation**: Intensity or purity of a color. <br> **Hue**: The color type (e.g., red, blue). <br> **Lightness**: Brightness or darkness of a color. <br> **Opacity**: Transparency level of a color, often defined as alpha in RGBA. |
|
||||
| **Color Representation Formats** | **HEX**: `#RRGGBB` or `#RRGGBBAA` (with alpha). <br> **RGB**: `rgb(255, 255, 255)` <br> **RGBA**: `rgba(255, 255, 255, 0.5)` <br> **HSL**: `hsl(120, 100%, 50%)` <br> **HSLA**: `hsla(120, 100%, 50%, 0.5)` |
|
||||
|
||||
|
||||
|
||||
### Main Frameworks {.col-span-3}
|
||||
|
||||
| **Framework** | **Color Notation / Syntax** | **Description** | **Documentation Link** |
|
||||
|:-----------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:-------------------------------------------------------------------------------------------|
|
||||
| **CSS** | `color: red;` <br> `color: #ff0000;` <br> `color: rgb(255, 0, 0);` <br> `color: rgba(255, 0, 0, 0.5);` <br> `color: hsl(0, 100%, 50%);` <br> `color: hsla(0, 100%, 50%, 0.5);` | Standard CSS color properties and formats. | [CSS Color Documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/color) |
|
||||
| **SASS/SCSS** | `$color: #ff0000;` <br> `color: $color;` | Variables for colors, can use same formats as CSS. | [SASS Color Documentation](https://sass-lang.com/documentation/values/colors) |
|
||||
| **Tailwind CSS** | `class="bg-red-500"` <br> `class="text-green-300"` | Utility classes with predefined color shades. | [Tailwind CSS Colors](https://tailwindcss.com/docs/customizing-colors) |
|
||||
| **Bootstrap** | `class="text-primary"` <br> `class="bg-success"` | Named color classes for quick styling. | [Bootstrap Colors](https://getbootstrap.com/docs/5.0/getting-started/introduction/#colors) |
|
||||
| **Material UI** | `style={{ color: 'primary' }}` or theme palette | Uses theme palette, can override with specific color codes. | [Material UI Color](https://mui.com/customization/color/) |
|
||||
|
||||
|
||||
## Color Palette
|
||||
|
||||
### Tailwind Palette {.col-span-3}
|
||||
|
||||
<widget name="color-palette-tailwind"/>
|
||||
|
||||
|
||||
## Gradient CSS
|
||||
|
||||
### Gradient Maker {.col-span-3}
|
||||
|
||||
<widget name="gradient-maker"/>
|
||||
|
||||
|
||||
| Parameter | Description | Example |
|
||||
|:--------------|:----------------------------------|:-----------------------------------------------|
|
||||
| **to right** | Gradient goes from left to right | `linear-gradient(to right, #ff7e5f, #feb47b)` |
|
||||
| **to left** | Gradient goes from right to left | `linear-gradient(to left, #ff7e5f, #feb47b)` |
|
||||
| **to bottom** | Gradient goes from top to bottom | `linear-gradient(to bottom, #ff7e5f, #feb47b)` |
|
||||
| **to top** | Gradient goes from bottom to top | `linear-gradient(to top, #ff7e5f, #feb47b)` |
|
||||
| **deg** | Specify an angle in degrees | `linear-gradient(45deg, ...)` |
|
||||
|
||||
+20
-14
@@ -51,20 +51,26 @@ Min Hour Day Mon Weekday
|
||||
|
||||
### Examples
|
||||
|
||||
| Example | Description |
|
||||
| -------------- | ------------------------------------------------ |
|
||||
| `*/15 * * * *` | Every 15 mins |
|
||||
| `0 * * * *` | Every hour |
|
||||
| `0 */2 * * *` | Every 2 hours |
|
||||
| `15 2 * * *` | At 2:15AM of every day |
|
||||
| `15 2 * * ?` | At 2:15AM of every day |
|
||||
| `10 9 * * 5` | At 9:10AM of every Friday |
|
||||
| `0 0 * * 0` | At midnight of every Sunday |
|
||||
| `15 2 * * 1L` | At 2:15am on the last monday of every month |
|
||||
| `15 0 * * 4#2` | At 00:15am on the second thursday of every month |
|
||||
| `0 0 1 * *` | Every 1st of month (monthly) |
|
||||
| `0 0 1 1 *` | Every 1st of january (yearly) |
|
||||
| `@reboot` | Every reboot <br>_(non-standard)_ |
|
||||
| Example | Description |
|
||||
| -------------- |--------------------------------------------------------------------|
|
||||
| `*/15 * * * *` | Every 15 mins |
|
||||
| `0 * * * *` | Every hour |
|
||||
| `0 */2 * * *` | Every 2 hours |
|
||||
| `15 2 * * *` | At 2:15AM (of every day) |
|
||||
| `15 2 * * ?` | At 2:15AM (of every day) |
|
||||
| `10 9 * * 5` | At 9:10AM (of every Friday) |
|
||||
| `0 0 * * 0` | At 12:00 AM, only on Sunday |
|
||||
| `15 2 * * 1L` | At 2:15am on the last monday of every month |
|
||||
| `15 0 * * 4#2` | At 00:15am on the second thursday of every month |
|
||||
| `0 0 1 * *` | At 12:00 AM, on day 1 of the month (1st of month / monthly) |
|
||||
| `0 0 1 1 *` | At 12:00 AM, on day 1 of the month, only in January (1st of month) |
|
||||
| `@reboot` | Every reboot <br>_(non-standard)_ |
|
||||
|
||||
|
||||
### Cron Generator {.col-span-3}
|
||||
|
||||
<widget name="cron"/>
|
||||
|
||||
|
||||
### Special strings
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ brew tap homebrew/cask
|
||||
List all the installed casks .
|
||||
|
||||
```bash
|
||||
brew cask list
|
||||
brew list --cask
|
||||
```
|
||||
|
||||
Search all known casks based on the substring text.
|
||||
@@ -155,19 +155,19 @@ brew search <text>
|
||||
Install the given cask.
|
||||
|
||||
```bash
|
||||
brew cask install <cask>
|
||||
brew install --cask <cask>
|
||||
```
|
||||
|
||||
Reinstalls the given Cask
|
||||
|
||||
```bash
|
||||
brew cask reinstall <cask>
|
||||
brew reinstall --cask <cask>
|
||||
```
|
||||
|
||||
Uninstall the given cask.
|
||||
|
||||
```bash
|
||||
brew cask uninstall <cask>
|
||||
brew uninstall --cask <cask>
|
||||
```
|
||||
|
||||
### Search, Install, Remove
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
---
|
||||
title: Windows Cmd
|
||||
date: 2025-06-30 18:28:43
|
||||
background: bg-red-500
|
||||
tags:
|
||||
- command
|
||||
categories:
|
||||
- Programming
|
||||
intro: |
|
||||
This windows command Cheat Sheet is a non exhaustive list of main windows command that you can use.
|
||||
plugins:
|
||||
- copyCode
|
||||
---
|
||||
|
||||
|
||||
## Getting Started
|
||||
|
||||
### Basic {.col-span-3}
|
||||
|
||||
| CMD | Description |
|
||||
|:-----------|:------------------------------------------------------------|
|
||||
| `cls` | Clears the content of the screen. |
|
||||
| `echo` | Displays messages or enables/disables command echoing. |
|
||||
| `help` | Provides help information for Windows commands. |
|
||||
| `exit` | Exits the CMD.EXE program (command interpreter). |
|
||||
| `date` | Displays or sets the date. |
|
||||
| `time` | Displays or sets the system time. |
|
||||
| `ver` | Displays the Windows version. |
|
||||
| `dir` | Displays a list of files and subdir in a directory. |
|
||||
| `cd` | Displays the name of or changes the current directory. |
|
||||
| `copy` | Copies one or more files to another location. |
|
||||
| `move` | Moves files and renames files and directories. |
|
||||
| `del` | Deletes one or more files. |
|
||||
| `mkdir` | Creates a directory. |
|
||||
| `rmdir` | Removes a directory. |
|
||||
| `type` | Displays the contents of a text file. |
|
||||
| `ren` | Renames a file or files. |
|
||||
| `start` | Starts a separate window to run a specified program or cmd. |
|
||||
| `shutdown` | Allows you to shut down or restart the computer. |
|
||||
| `tasklist` | Displays all currently running tasks including services. |
|
||||
| `taskkill` | Ends one or more tasks or processes. |
|
||||
|
||||
## Manage file :
|
||||
|
||||
### File {.col-span-3}
|
||||
|
||||
| CMD | Description |
|
||||
|:-----------|:------------------------------------------------------------------|
|
||||
| `attrib` | Displays or changes file attributes. |
|
||||
| `fc` | Compares two files and displays the differences between them. |
|
||||
| `find` | Searches for a text string in a file or files. |
|
||||
| `findstr` | Searches for strings in files. |
|
||||
| `xcopy` | Copies files and directory trees. |
|
||||
| `robocopy` | Robust File Copy for Windows, a more advanced version of `xcopy`. |
|
||||
| `compact` | Displays or alters the compression of files on NTFS partitions. |
|
||||
| `expand` | Expands one or more compressed files. |
|
||||
| `replace` | Replaces files. |
|
||||
| `tree` | Graphically displays the folder structure of a drive or path. |
|
||||
| `sort` | Sorts input. |
|
||||
| `more` | Displays output one screen at a time. |
|
||||
| `print` | Prints a text file. |
|
||||
| `cipher` | Displays or alters the encryption of dir [files] on NTFS parts. |
|
||||
| `diskcomp` | Compares the contents of two floppy disks. |
|
||||
| `diskcopy` | Copies the contents of one floppy disk to another. |
|
||||
| `format` | Formats a disk for use with Windows. |
|
||||
| `chkdsk` | Checks a disk and displays a status report. |
|
||||
| `label` | Creates, changes, or deletes the volume label of a disk. |
|
||||
| `recover` | Recovers readable information from a bad or defective disk. |
|
||||
|
||||
|
||||
## System & Network
|
||||
|
||||
### System {.col-span-3}
|
||||
|
||||
| CMD | Description |
|
||||
|:--------------|:------------------------------------------------------------------------------------------|
|
||||
| `systeminfo` | Displays detailed configuration information about a computer and its operating system. |
|
||||
| `driverquery` | Displays current device driver status and properties. |
|
||||
| `msinfo32` | Starts the System Information tool. |
|
||||
| `reg` | Registry Console Tool, used to manage the Windows Registry. |
|
||||
| `sc` | Displays or configures services (background processes). |
|
||||
| `taskmgr` | Starts the Task Manager. |
|
||||
| `wmic` | Windows Management Instrumentation , used for managing Windows systems. |
|
||||
| `sfc` | System File Checker, scans and verifies the versions of all protected system files. |
|
||||
| `gpupdate` | Refreshes local and Active Directory-based Group Policy settings. |
|
||||
| `gpresult` | Displays Group Policy settings and Resultant Set of Policy (RSoP) for a user or computer. |
|
||||
| `powercfg` | Configures power settings. |
|
||||
| `dxdiag` | Starts the DirectX Diagnostic Tool. |
|
||||
| `msinfo32` | Starts the Microsoft System Information tool. |
|
||||
| `perfmon` | Starts the Performance Monitor. |
|
||||
| `rsop` | Resultant Set of Policy, used to view Group Policy settings. |
|
||||
| `sigverif` | Starts the File Signature Verification tool. |
|
||||
| `sysedit` | Starts the System Configuration Editor. |
|
||||
| `syskey` | Secures the Windows XP account database. |
|
||||
| `chgport` | Displays or changes Com port mappings. |
|
||||
| `chgusr` | Changes the installed user mode. |
|
||||
|
||||
### Network {.col-span-3}
|
||||
|
||||
| CMD | Description |
|
||||
|:-----------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `ipconfig` | Displays all current TCP/IP network configuration values. |
|
||||
| `ping` | Tests network connectivity to a specified host. |
|
||||
| `tracert` | Traces the route taken by packets to a specified destination. |
|
||||
| `netstat` | Displays active TCP connections, ports on which the computer is listening. |
|
||||
| `nslookup` | Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. |
|
||||
| `net` | Manages network resources, services, and user accounts. |
|
||||
| `netsh` | Network Shell, used to configure and monitor network devices. |
|
||||
| `arp` | Displays and modifies the IP-to-Physical address translation tables used by the Address Resolution Protocol (ARP). |
|
||||
| `route` | Displays and modifies the entries in the local IP routing table. |
|
||||
| `ftp` | Starts the File Transfer Protocol (FTP) client. |
|
||||
| `telnet` | Starts the Telnet client. |
|
||||
| `nbtstat` | Displays protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP). |
|
||||
| `netuse` | Displays information about network connections. |
|
||||
| `net session` | Manages server computer connections. |
|
||||
| `net start` | Starts a network service. |
|
||||
| `net stop` | Stops a network service. |
|
||||
| `net view` | Displays a list of resources being shared on a specified computer. |
|
||||
| `net user` | Manages user accounts. |
|
||||
| `net localgroup` | Manages local groups. |
|
||||
| `net share` | Manages shared resources. |
|
||||
| `net statistics` | Displays network statistics. |
|
||||
|
||||
## Miscellaneouss
|
||||
|
||||
### Process Management {.col-span-1}
|
||||
|
||||
| CMD | Description |
|
||||
|:---------------|:-------------------------------------------------------------|
|
||||
| `wmic process` | Manages processes using Windows Management Instrumentation . |
|
||||
| `timeout` | Waits for specified number of seconds / until a key pressed. |
|
||||
|
||||
### Disk Management {.col-span-1}
|
||||
|
||||
| CMD Command | Description |
|
||||
|:-------------|:------------------------------------|
|
||||
| `diskpart` | Manages disk partitions. |
|
||||
| `defrag` | Defragments a disk. |
|
||||
| `convert` | Converts a FAT volume to NTFS. |
|
||||
| `diskperf` | Manages disk performance counters. |
|
||||
|
||||
### System Configuration {.col-span-1}
|
||||
|
||||
| CMD Command | Description |
|
||||
|:-------------|:--------------------------------------------------------|
|
||||
| `bcdedit` | Manages the Boot Configuration Data (BCD) store. |
|
||||
| `bootcfg` | Configures, queries, or changes Boot.ini file settings. |
|
||||
| `msconfig` | Starts the System Configuration utility. |
|
||||
| `regedit` | Starts the Registry Editor. |
|
||||
|
||||
## Tips & Tricks
|
||||
|
||||
### Miscellaneouss Tips & Tricks {.col-span-3}
|
||||
|
||||
| Tip or Trick | Description |
|
||||
|:----------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `wmic path SoftwareLicensingService get OA3xOriginalProductKey` | Get your Windows Product key |
|
||||
| `cmd /k` | Opens the command prompt and executes a specified command, keeping the window open. |
|
||||
| `cmd /c` | Opens the command prompt, executes a specified command, and then closes the window. |
|
||||
| `&&` | Allows you to run multiple commands in sequence. For example, `command1 && command2`. |
|
||||
| `\|\|` | Allows you to run a second command only if the first command fails. For example, `command1 `\|\|` command2`. |
|
||||
| `>` | Redirects the output of a command to a file, overwriting the file if it already exists. For example, `command > output.txt`. |
|
||||
| `>>` | Redirects the output of a command to a file, appending the output if the file already exists. For example, `command >> output.txt`. |
|
||||
| `\|` | Pipes the output of one command to another command. For example, `command1 `\|` command2`. |
|
||||
| `clip` | Redirects the output of a command to the Windows clipboard. For example, `dir `\|` clip`. |
|
||||
| `for %i in (*.txt) do echo %i` | Loops through all `.txt` files in the current directory and echoes their names. |
|
||||
| `pushd` and `popd` | `pushd` saves the current directory and then changes to a new directory. `popd` returns to the saved directory. |
|
||||
| `set` | Displays, sets, or removes environment variables. For example, `set PATH=C:\newpath`. |
|
||||
| `start "" "C:\Path\To\Program\program.exe"` | Starts a program without waiting for it to finish. |
|
||||
| `taskkill /IM "process.exe" /F` | Forcefully kills a process by its image name. |
|
||||
| `wmic product get name` | Lists all installed software on the system. |
|
||||
| `wmic logicaldisk get size,freespace,caption` | Displays the size, free space, and caption of all logical disks. |
|
||||
| `systeminfo` `\|` `findstr /B /C:"OS Name" /C:"OS Version"` | Displays the OS name and version. |
|
||||
| `schtasks /query /fo LIST /v` | Lists all scheduled tasks in detail. |
|
||||
| `netsh wlan show profiles` | Displays a list of all saved Wi-Fi profiles. |
|
||||
| `netsh wlan show profiles name="ProfileName" key=clear` | Displays the password for a specific Wi-Fi profile. |
|
||||
| `assoc` | Displays or modifies file extension associations. |
|
||||
| `ftype` | Displays or modifies file types used in file extension associations. |
|
||||
| `driverquery /v` | Lists all installed drivers with detailed information. |
|
||||
| `powercfg /energy` | Generates a detailed energy report for the system. |
|
||||
| `powercfg /batteryreport` | Generates a battery life report for laptops. |
|
||||
| `robocopy C:\Source D:\Destination /MIR` | Mirrors a directory from one location to another, including subdirectories and files. |
|
||||
| `mklink /D "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a symbolic link to a directory. |
|
||||
| `mklink /H "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a hard link to a file. |
|
||||
| `mklink /J "C:\Path\To\Link" "C:\Path\To\Target"` | Creates a directory junction. |
|
||||
| `diskpart /s script.txt` | Runs a DiskPart script to automate disk partitioning tasks. |
|
||||
| `shutdown /a` | Aborts a system shutdown. |
|
||||
| `chkdsk /f /r` | Checks a disk and fixes errors, also recovers readable information from bad sectors. |
|
||||
| `sfc /scannow` | Scans and repairs protected system files. |
|
||||
| `DISM /Online /Cleanup-Image /RestoreHealth` | Repairs the Windows image using DISM. |
|
||||
| `bcdboot C:\Windows` | Repairs the boot environment by copying boot files from the Windows directory. |
|
||||
| `bootrec /fixmbr` | Repairs the Master Boot Record (MBR). |
|
||||
| `bootrec /fixboot` | Writes a new boot sector to the system partition. |
|
||||
| `bootrec /scanos` | Scans for installations compatible with Windows and displays the entries that are currently not in the Boot Configuration Data store. |
|
||||
| `bootrec /rebuildbcd` | Scans for installations compatible with Windows and allows you to select the installations you want to add to the Boot Configuration Data store. |
|
||||
|
||||
|
||||
## Other
|
||||
|
||||
- Also see : [Windows Official Documentation](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands)
|
||||
@@ -0,0 +1,352 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Color Picker</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</head>
|
||||
<body class="bg-gray-100">
|
||||
<div class="container mx-auto p-4">
|
||||
<div class="flex items-center justify-center flex-row space-x-4">
|
||||
<!-- Color Picker Section -->
|
||||
<div class="me-25">
|
||||
<div class="flex flex-col space-y-1 me-25 ">
|
||||
<!-- RED -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(255, 245, 245)', '#fff5f5','bg-red-50')" class="w-14 h-10 me-2 rounded-md me-2 rounded-md bg-red-50 cursor-pointer " title="Red 5%"></div>
|
||||
<div onclick="getColor('rgb(255, 230, 230)', '#ffebee', 'bg-red-100')" class="w-14 h-10 me-2 rounded-md bg-red-100 cursor-pointer" title="Red 10%"></div>
|
||||
<div onclick="getColor('rgb(255, 205, 205)', '#ffcdcd', 'bg-red-200')" class="w-14 h-10 me-2 rounded-md bg-red-200 cursor-pointer" title="Red 20%"></div>
|
||||
<div onclick="getColor('rgb(255, 180, 180)', '#ffb4b4', 'bg-red-300')" class="w-14 h-10 me-2 rounded-md bg-red-300 cursor-pointer" title="Red 30%"></div>
|
||||
<div onclick="getColor('rgb(255, 107, 107)', '#ff6b6b', 'bg-red-400')" class="w-14 h-10 me-2 rounded-md bg-red-400 cursor-pointer" title="Red 40%"></div>
|
||||
<div onclick="getColor('rgb(255, 51, 51)', '#ff3333', 'bg-red-500')" class="w-14 h-10 me-2 rounded-md bg-red-500 cursor-pointer" title="Red 50%"></div>
|
||||
<div onclick="getColor('rgb(220, 38, 38)', '#dc2626', 'bg-red-600')" class="w-14 h-10 me-2 rounded-md bg-red-600 cursor-pointer" title="Red 60%"></div>
|
||||
<div onclick="getColor('rgb(180, 25, 25)', '#b41919', 'bg-red-700')" class="w-14 h-10 me-2 rounded-md bg-red-700 cursor-pointer" title="Red 70%"></div>
|
||||
<div onclick="getColor('rgb(153, 27, 27)', '#991b1b', 'bg-red-800')" class="w-14 h-10 me-2 rounded-md bg-red-800 cursor-pointer" title="Red 80%"></div>
|
||||
<div onclick="getColor('rgb(127, 29, 29)', '#7f1d1d', 'bg-red-900')" class="w-14 h-10 me-2 rounded-md bg-red-900 cursor-pointer" title="Red 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- ORANGE -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(255, 247, 237)', '#fff7ed', 'bg-orange-50')" class="w-14 h-10 me-2 rounded-md bg-orange-50 cursor-pointer" title="Orange 5%"></div>
|
||||
<div onclick="getColor('rgb(255, 237, 213)', '#ffedd5', 'bg-orange-100')" class="w-14 h-10 me-2 rounded-md bg-orange-100 cursor-pointer" title="Orange 10%"></div>
|
||||
<div onclick="getColor('rgb(254, 215, 170)', '#fed7aa', 'bg-orange-200')" class="w-14 h-10 me-2 rounded-md bg-orange-200 cursor-pointer" title="Orange 20%"></div>
|
||||
<div onclick="getColor('rgb(253, 186, 116)', '#fdba74', 'bg-orange-300')" class="w-14 h-10 me-2 rounded-md bg-orange-300 cursor-pointer" title="Orange 30%"></div>
|
||||
<div onclick="getColor('rgb(251, 146, 60)', '#fb923c', 'bg-orange-400')" class="w-14 h-10 me-2 rounded-md bg-orange-400 cursor-pointer" title="Orange 40%"></div>
|
||||
<div onclick="getColor('rgb(249, 115, 22)', '#f97316', 'bg-orange-500')" class="w-14 h-10 me-2 rounded-md bg-orange-500 cursor-pointer" title="Orange 50%"></div>
|
||||
<div onclick="getColor('rgb(234, 88, 12)', '#ea580c', 'bg-orange-600')" class="w-14 h-10 me-2 rounded-md bg-orange-600 cursor-pointer" title="Orange 60%"></div>
|
||||
<div onclick="getColor('rgb(194, 65, 12)', '#c2410c', 'bg-orange-700')" class="w-14 h-10 me-2 rounded-md bg-orange-700 cursor-pointer" title="Orange 70%"></div>
|
||||
<div onclick="getColor('rgb(154, 52, 18)', '#9a3412', 'bg-orange-800')" class="w-14 h-10 me-2 rounded-md bg-orange-800 cursor-pointer" title="Orange 80%"></div>
|
||||
<div onclick="getColor('rgb(124, 45, 18)', '#7c2d12', 'bg-orange-900')" class="w-14 h-10 me-2 rounded-md bg-orange-900 cursor-pointer" title="Orange 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- AMBER -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(255, 251, 235)', '#fffbeb', 'bg-amber-50')" class="w-14 h-10 me-2 rounded-md bg-amber-50 cursor-pointer" title="Amber 5%"></div>
|
||||
<div onclick="getColor('rgb(254, 243, 199)', '#fef3c7', 'bg-amber-100')" class="w-14 h-10 me-2 rounded-md bg-amber-100 cursor-pointer" title="Amber 10%"></div>
|
||||
<div onclick="getColor('rgb(253, 230, 138)', '#fde68a', 'bg-amber-200')" class="w-14 h-10 me-2 rounded-md bg-amber-200 cursor-pointer" title="Amber 20%"></div>
|
||||
<div onclick="getColor('rgb(252, 211, 77)', '#fcd34d', 'bg-amber-300')" class="w-14 h-10 me-2 rounded-md bg-amber-300 cursor-pointer" title="Amber 30%"></div>
|
||||
<div onclick="getColor('rgb(251, 191, 36)', '#fbbf24', 'bg-amber-400')" class="w-14 h-10 me-2 rounded-md bg-amber-400 cursor-pointer" title="Amber 40%"></div>
|
||||
<div onclick="getColor('rgb(245, 158, 11)', '#f59e0b', 'bg-amber-500')" class="w-14 h-10 me-2 rounded-md bg-amber-500 cursor-pointer" title="Amber 50%"></div>
|
||||
<div onclick="getColor('rgb(217, 119, 6)', '#d97706', 'bg-amber-600')" class="w-14 h-10 me-2 rounded-md bg-amber-600 cursor-pointer" title="Amber 60%"></div>
|
||||
<div onclick="getColor('rgb(180, 83, 9)', '#b45309', 'bg-amber-700')" class="w-14 h-10 me-2 rounded-md bg-amber-700 cursor-pointer" title="Amber 70%"></div>
|
||||
<div onclick="getColor('rgb(146, 64, 14)', '#92400e', 'bg-amber-800')" class="w-14 h-10 me-2 rounded-md bg-amber-800 cursor-pointer" title="Amber 80%"></div>
|
||||
<div onclick="getColor('rgb(120, 53, 15)', '#78350f', 'bg-amber-900')" class="w-14 h-10 me-2 rounded-md bg-amber-900 cursor-pointer" title="Amber 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- YELLOW -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(255, 254, 239)', '#fefce8', 'bg-yellow-50')" class="w-14 h-10 me-2 rounded-md bg-yellow-50 cursor-pointer" title="Yellow 5%"></div>
|
||||
<div onclick="getColor('rgb(254, 252, 219)', '#fefcdb', 'bg-yellow-100')" class="w-14 h-10 me-2 rounded-md bg-yellow-100 cursor-pointer" title="Yellow 10%"></div>
|
||||
<div onclick="getColor('rgb(254, 249, 195)', '#fef9c3', 'bg-yellow-200')" class="w-14 h-10 me-2 rounded-md bg-yellow-200 cursor-pointer" title="Yellow 20%"></div>
|
||||
<div onclick="getColor('rgb(254, 240, 138)', '#fef08a', 'bg-yellow-300')" class="w-14 h-10 me-2 rounded-md bg-yellow-300 cursor-pointer" title="Yellow 30%"></div>
|
||||
<div onclick="getColor('rgb(253, 224, 71)', '#fde047', 'bg-yellow-400')" class="w-14 h-10 me-2 rounded-md bg-yellow-400 cursor-pointer" title="Yellow 40%"></div>
|
||||
<div onclick="getColor('rgb(252, 205, 38)', '#fccd26', 'bg-yellow-500')" class="w-14 h-10 me-2 rounded-md bg-yellow-500 cursor-pointer" title="Yellow 50%"></div>
|
||||
<div onclick="getColor('rgb(251, 191, 36)', '#fbbf24', 'bg-yellow-600')" class="w-14 h-10 me-2 rounded-md bg-yellow-600 cursor-pointer" title="Yellow 60%"></div>
|
||||
<div onclick="getColor('rgb(249, 168, 37)', '#f9a825', 'bg-yellow-700')" class="w-14 h-10 me-2 rounded-md bg-yellow-700 cursor-pointer" title="Yellow 70%"></div>
|
||||
<div onclick="getColor('rgb(245, 146, 40)', '#f59228', 'bg-yellow-800')" class="w-14 h-10 me-2 rounded-md bg-yellow-800 cursor-pointer" title="Yellow 80%"></div>
|
||||
<div onclick="getColor('rgb(234, 128, 38)', '#ea8026', 'bg-yellow-900')" class="w-14 h-10 me-2 rounded-md bg-yellow-900 cursor-pointer" title="Yellow 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- LIME -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(247, 254, 231)', '#f7fee7', 'bg-lime-50')" class="w-14 h-10 me-2 rounded-md bg-lime-50 cursor-pointer" title="Lime 5%"></div>
|
||||
<div onclick="getColor('rgb(236, 252, 203)', '#ecfccb', 'bg-lime-100')" class="w-14 h-10 me-2 rounded-md bg-lime-100 cursor-pointer" title="Lime 10%"></div>
|
||||
<div onclick="getColor('rgb(217, 249, 157)', '#d9f99d', 'bg-lime-200')" class="w-14 h-10 me-2 rounded-md bg-lime-200 cursor-pointer" title="Lime 20%"></div>
|
||||
<div onclick="getColor('rgb(190, 242, 100)', '#bef264', 'bg-lime-300')" class="w-14 h-10 me-2 rounded-md bg-lime-300 cursor-pointer" title="Lime 30%"></div>
|
||||
<div onclick="getColor('rgb(163, 230, 53)', '#a3e635', 'bg-lime-400')" class="w-14 h-10 me-2 rounded-md bg-lime-400 cursor-pointer" title="Lime 40%"></div>
|
||||
<div onclick="getColor('rgb(132, 204, 22)', '#84cc16', 'bg-lime-500')" class="w-14 h-10 me-2 rounded-md bg-lime-500 cursor-pointer" title="Lime 50%"></div>
|
||||
<div onclick="getColor('rgb(101, 163, 13)', '#65a30d', 'bg-lime-600')" class="w-14 h-10 me-2 rounded-md bg-lime-600 cursor-pointer" title="Lime 60%"></div>
|
||||
<div onclick="getColor('rgb(77, 124, 15)', '#4d7c0f', 'bg-lime-700')" class="w-14 h-10 me-2 rounded-md bg-lime-700 cursor-pointer" title="Lime 70%"></div>
|
||||
<div onclick="getColor('rgb(63, 98, 18)', '#3f6212', 'bg-lime-800')" class="w-14 h-10 me-2 rounded-md bg-lime-800 cursor-pointer" title="Lime 80%"></div>
|
||||
<div onclick="getColor('rgb(54, 83, 20)', '#365314', 'bg-lime-900')" class="w-14 h-10 me-2 rounded-md bg-lime-900 cursor-pointer" title="Lime 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- GREEN -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(240, 253, 244)', '#f0fdf4', 'bg-green-50')" class="w-14 h-10 me-2 rounded-md bg-green-50 cursor-pointer" title="Green 5%"></div>
|
||||
<div onclick="getColor('rgb(220, 252, 231)', '#dcfce7', 'bg-green-100')" class="w-14 h-10 me-2 rounded-md bg-green-100 cursor-pointer" title="Green 10%"></div>
|
||||
<div onclick="getColor('rgb(187, 247, 208)', '#bbf7d0', 'bg-green-200')" class="w-14 h-10 me-2 rounded-md bg-green-200 cursor-pointer" title="Green 20%"></div>
|
||||
<div onclick="getColor('rgb(134, 239, 172)', '#86efac', 'bg-green-300')" class="w-14 h-10 me-2 rounded-md bg-green-300 cursor-pointer" title="Green 30%"></div>
|
||||
<div onclick="getColor('rgb(74, 222, 128)', '#4ade80', 'bg-green-400')" class="w-14 h-10 me-2 rounded-md bg-green-400 cursor-pointer" title="Green 40%"></div>
|
||||
<div onclick="getColor('rgb(34, 197, 94)', '#22c55e', 'bg-green-500')" class="w-14 h-10 me-2 rounded-md bg-green-500 cursor-pointer" title="Green 50%"></div>
|
||||
<div onclick="getColor('rgb(22, 163, 74)', '#16a34a', 'bg-green-600')" class="w-14 h-10 me-2 rounded-md bg-green-600 cursor-pointer" title="Green 60%"></div>
|
||||
<div onclick="getColor('rgb(21, 128, 61)', '#15803d', 'bg-green-700')" class="w-14 h-10 me-2 rounded-md bg-green-700 cursor-pointer" title="Green 70%"></div>
|
||||
<div onclick="getColor('rgb(22, 101, 52)', '#166534', 'bg-green-800')" class="w-14 h-10 me-2 rounded-md bg-green-800 cursor-pointer" title="Green 80%"></div>
|
||||
<div onclick="getColor('rgb(20, 83, 45)', '#14532d', 'bg-green-900')" class="w-14 h-10 me-2 rounded-md bg-green-900 cursor-pointer" title="Green 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- EMERALD -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(236, 253, 245)', '#ecfdf5', 'bg-emerald-50')" class="w-14 h-10 me-2 rounded-md bg-emerald-50 cursor-pointer" title="Emerald 5%"></div>
|
||||
<div onclick="getColor('rgb(209, 250, 229)', '#d1fae5', 'bg-emerald-100')" class="w-14 h-10 me-2 rounded-md bg-emerald-100 cursor-pointer" title="Emerald 10%"></div>
|
||||
<div onclick="getColor('rgb(167, 243, 208)', '#a7f3d0', 'bg-emerald-200')" class="w-14 h-10 me-2 rounded-md bg-emerald-200 cursor-pointer" title="Emerald 20%"></div>
|
||||
<div onclick="getColor('rgb(110, 231, 183)', '#6ee7b7', 'bg-emerald-300')" class="w-14 h-10 me-2 rounded-md bg-emerald-300 cursor-pointer" title="Emerald 30%"></div>
|
||||
<div onclick="getColor('rgb(52, 211, 153)', '#34d399', 'bg-emerald-400')" class="w-14 h-10 me-2 rounded-md bg-emerald-400 cursor-pointer" title="Emerald 40%"></div>
|
||||
<div onclick="getColor('rgb(16, 185, 129)', '#10b981', 'bg-emerald-500')" class="w-14 h-10 me-2 rounded-md bg-emerald-500 cursor-pointer" title="Emerald 50%"></div>
|
||||
<div onclick="getColor('rgb(5, 150, 105)', '#059669', 'bg-emerald-600')" class="w-14 h-10 me-2 rounded-md bg-emerald-600 cursor-pointer" title="Emerald 60%"></div>
|
||||
<div onclick="getColor('rgb(4, 120, 87)', '#047857', 'bg-emerald-700')" class="w-14 h-10 me-2 rounded-md bg-emerald-700 cursor-pointer" title="Emerald 70%"></div>
|
||||
<div onclick="getColor('rgb(6, 95, 70)', '#065f46', 'bg-emerald-800')" class="w-14 h-10 me-2 rounded-md bg-emerald-800 cursor-pointer" title="Emerald 80%"></div>
|
||||
<div onclick="getColor('rgb(6, 78, 59)', '#064e3b', 'bg-emerald-900')" class="w-14 h-10 me-2 rounded-md bg-emerald-900 cursor-pointer" title="Emerald 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- TEAL -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(240, 253, 250)', '#f0fdfa', 'bg-teal-50')" class="w-14 h-10 me-2 rounded-md bg-teal-50 cursor-pointer" title="Teal 5%"></div>
|
||||
<div onclick="getColor('rgb(204, 251, 241)', '#ccfbf1', 'bg-teal-100')" class="w-14 h-10 me-2 rounded-md bg-teal-100 cursor-pointer" title="Teal 10%"></div>
|
||||
<div onclick="getColor('rgb(153, 246, 228)', '#99f6e4', 'bg-teal-200')" class="w-14 h-10 me-2 rounded-md bg-teal-200 cursor-pointer" title="Teal 20%"></div>
|
||||
<div onclick="getColor('rgb(94, 234, 212)', '#5eead4', 'bg-teal-300')" class="w-14 h-10 me-2 rounded-md bg-teal-300 cursor-pointer" title="Teal 30%"></div>
|
||||
<div onclick="getColor('rgb(45, 212, 191)', '#2dd4bf', 'bg-teal-400')" class="w-14 h-10 me-2 rounded-md bg-teal-400 cursor-pointer" title="Teal 40%"></div>
|
||||
<div onclick="getColor('rgb(20, 184, 166)', '#14b8a6', 'bg-teal-500')" class="w-14 h-10 me-2 rounded-md bg-teal-500 cursor-pointer" title="Teal 50%"></div>
|
||||
<div onclick="getColor('rgb(13, 148, 136)', '#0d9488', 'bg-teal-600')" class="w-14 h-10 me-2 rounded-md bg-teal-600 cursor-pointer" title="Teal 60%"></div>
|
||||
<div onclick="getColor('rgb(15, 118, 110)', '#0f766e', 'bg-teal-700')" class="w-14 h-10 me-2 rounded-md bg-teal-700 cursor-pointer" title="Teal 70%"></div>
|
||||
<div onclick="getColor('rgb(17, 94, 89)', '#115e59', 'bg-teal-800')" class="w-14 h-10 me-2 rounded-md bg-teal-800 cursor-pointer" title="Teal 80%"></div>
|
||||
<div onclick="getColor('rgb(19, 78, 74)', '#134e4a', 'bg-teal-900')" class="w-14 h-10 me-2 rounded-md bg-teal-900 cursor-pointer" title="Teal 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- CYAN -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(236, 254, 255)', '#ecfeff', 'bg-cyan-50')" class="w-14 h-10 me-2 rounded-md bg-cyan-50 cursor-pointer" title="Cyan 5%"></div>
|
||||
<div onclick="getColor('rgb(207, 250, 254)', '#cffafe', 'bg-cyan-100')" class="w-14 h-10 me-2 rounded-md bg-cyan-100 cursor-pointer" title="Cyan 10%"></div>
|
||||
<div onclick="getColor('rgb(165, 243, 252)', '#a5f3fc', 'bg-cyan-200')" class="w-14 h-10 me-2 rounded-md bg-cyan-200 cursor-pointer" title="Cyan 20%"></div>
|
||||
<div onclick="getColor('rgb(103, 232, 249)', '#67e8f9', 'bg-cyan-300')" class="w-14 h-10 me-2 rounded-md bg-cyan-300 cursor-pointer" title="Cyan 30%"></div>
|
||||
<div onclick="getColor('rgb(34, 211, 238)', '#22d3ee', 'bg-cyan-400')" class="w-14 h-10 me-2 rounded-md bg-cyan-400 cursor-pointer" title="Cyan 40%"></div>
|
||||
<div onclick="getColor('rgb(6, 182, 212)', '#06b6d4', 'bg-cyan-500')" class="w-14 h-10 me-2 rounded-md bg-cyan-500 cursor-pointer" title="Cyan 50%"></div>
|
||||
<div onclick="getColor('rgb(8, 145, 178)', '#0891b2', 'bg-cyan-600')" class="w-14 h-10 me-2 rounded-md bg-cyan-600 cursor-pointer" title="Cyan 60%"></div>
|
||||
<div onclick="getColor('rgb(14, 116, 144)', '#0e7490', 'bg-cyan-700')" class="w-14 h-10 me-2 rounded-md bg-cyan-700 cursor-pointer" title="Cyan 70%"></div>
|
||||
<div onclick="getColor('rgb(21, 94, 117)', '#155e75', 'bg-cyan-800')" class="w-14 h-10 me-2 rounded-md bg-cyan-800 cursor-pointer" title="Cyan 80%"></div>
|
||||
<div onclick="getColor('rgb(22, 78, 99)', '#164e63', 'bg-cyan-900')" class="w-14 h-10 me-2 rounded-md bg-cyan-900 cursor-pointer" title="Cyan 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- SKY -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(240, 249, 255)', '#f0f9ff', 'bg-sky-50')" class="w-14 h-10 me-2 rounded-md bg-sky-50 cursor-pointer" title="Sky 5%"></div>
|
||||
<div onclick="getColor('rgb(224, 242, 254)', '#e0f2fe', 'bg-sky-100')" class="w-14 h-10 me-2 rounded-md bg-sky-100 cursor-pointer" title="Sky 10%"></div>
|
||||
<div onclick="getColor('rgb(186, 230, 253)', '#bae6fd', 'bg-sky-200')" class="w-14 h-10 me-2 rounded-md bg-sky-200 cursor-pointer" title="Sky 20%"></div>
|
||||
<div onclick="getColor('rgb(125, 211, 252)', '#7dd3fc', 'bg-sky-300')" class="w-14 h-10 me-2 rounded-md bg-sky-300 cursor-pointer" title="Sky 30%"></div>
|
||||
<div onclick="getColor('rgb(56, 182, 255)', '#38bdf8', 'bg-sky-400')" class="w-14 h-10 me-2 rounded-md bg-sky-400 cursor-pointer" title="Sky 40%"></div>
|
||||
<div onclick="getColor('rgb(14, 165, 233)', '#0ea5e9', 'bg-sky-500')" class="w-14 h-10 me-2 rounded-md bg-sky-500 cursor-pointer" title="Sky 50%"></div>
|
||||
<div onclick="getColor('rgb(2, 132, 199)', '#0284c7', 'bg-sky-600')" class="w-14 h-10 me-2 rounded-md bg-sky-600 cursor-pointer" title="Sky 60%"></div>
|
||||
<div onclick="getColor('rgb(3, 105, 161)', '#0369a1', 'bg-sky-700')" class="w-14 h-10 me-2 rounded-md bg-sky-700 cursor-pointer" title="Sky 70%"></div>
|
||||
<div onclick="getColor('rgb(7, 89, 133)', '#075985', 'bg-sky-800')" class="w-14 h-10 me-2 rounded-md bg-sky-800 cursor-pointer" title="Sky 80%"></div>
|
||||
<div onclick="getColor('rgb(12, 74, 110)', '#0c4a6e', 'bg-sky-900')" class="w-14 h-10 me-2 rounded-md bg-sky-900 cursor-pointer" title="Sky 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- BLUE -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(239, 246, 255)', '#eff6ff', 'bg-blue-50')" class="w-14 h-10 me-2 rounded-md bg-blue-50 cursor-pointer" title="Blue 5%"></div>
|
||||
<div onclick="getColor('rgb(219, 234, 254)', '#dbeafe', 'bg-blue-100')" class="w-14 h-10 me-2 rounded-md bg-blue-100 cursor-pointer" title="Blue 10%"></div>
|
||||
<div onclick="getColor('rgb(191, 219, 254)', '#bfdbfe', 'bg-blue-200')" class="w-14 h-10 me-2 rounded-md bg-blue-200 cursor-pointer" title="Blue 20%"></div>
|
||||
<div onclick="getColor('rgb(147, 197, 253)', '#93c5fd', 'bg-blue-300')" class="w-14 h-10 me-2 rounded-md bg-blue-300 cursor-pointer" title="Blue 30%"></div>
|
||||
<div onclick="getColor('rgb(96, 165, 250)', '#60a5fa', 'bg-blue-400')" class="w-14 h-10 me-2 rounded-md bg-blue-400 cursor-pointer" title="Blue 40%"></div>
|
||||
<div onclick="getColor('rgb(59, 130, 246)', '#3b82f6', 'bg-blue-500')" class="w-14 h-10 me-2 rounded-md bg-blue-500 cursor-pointer" title="Blue 50%"></div>
|
||||
<div onclick="getColor('rgb(37, 99, 235)', '#2563eb', 'bg-blue-600')" class="w-14 h-10 me-2 rounded-md bg-blue-600 cursor-pointer" title="Blue 60%"></div>
|
||||
<div onclick="getColor('rgb(29, 78, 216)', '#1d4ed8', 'bg-blue-700')" class="w-14 h-10 me-2 rounded-md bg-blue-700 cursor-pointer" title="Blue 70%"></div>
|
||||
<div onclick="getColor('rgb(30, 64, 175)', '#1e40af', 'bg-blue-800')" class="w-14 h-10 me-2 rounded-md bg-blue-800 cursor-pointer" title="Blue 80%"></div>
|
||||
<div onclick="getColor('rgb(30, 58, 138)', '#1e3a8a', 'bg-blue-900')" class="w-14 h-10 me-2 rounded-md bg-blue-900 cursor-pointer" title="Blue 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- INDIGO -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(238, 242, 255)', '#eef2ff', 'bg-indigo-50')" class="w-14 h-10 me-2 rounded-md bg-indigo-50 cursor-pointer" title="Indigo 5%"></div>
|
||||
<div onclick="getColor('rgb(224, 231, 255)', '#e0e7ff', 'bg-indigo-100')" class="w-14 h-10 me-2 rounded-md bg-indigo-100 cursor-pointer" title="Indigo 10%"></div>
|
||||
<div onclick="getColor('rgb(199, 210, 254)', '#c7d2fe', 'bg-indigo-200')" class="w-14 h-10 me-2 rounded-md bg-indigo-200 cursor-pointer" title="Indigo 20%"></div>
|
||||
<div onclick="getColor('rgb(165, 180, 252)', '#a5b4fc', 'bg-indigo-300')" class="w-14 h-10 me-2 rounded-md bg-indigo-300 cursor-pointer" title="Indigo 30%"></div>
|
||||
<div onclick="getColor('rgb(129, 140, 248)', '#818cf8', 'bg-indigo-400')" class="w-14 h-10 me-2 rounded-md bg-indigo-400 cursor-pointer" title="Indigo 40%"></div>
|
||||
<div onclick="getColor('rgb(99, 102, 241)', '#6366f1', 'bg-indigo-500')" class="w-14 h-10 me-2 rounded-md bg-indigo-500 cursor-pointer" title="Indigo 50%"></div>
|
||||
<div onclick="getColor('rgb(79, 70, 229)', '#4f46e5', 'bg-indigo-600')" class="w-14 h-10 me-2 rounded-md bg-indigo-600 cursor-pointer" title="Indigo 60%"></div>
|
||||
<div onclick="getColor('rgb(67, 56, 202)', '#4338ca', 'bg-indigo-700')" class="w-14 h-10 me-2 rounded-md bg-indigo-700 cursor-pointer" title="Indigo 70%"></div>
|
||||
<div onclick="getColor('rgb(55, 48, 163)', '#3730a3', 'bg-indigo-800')" class="w-14 h-10 me-2 rounded-md bg-indigo-800 cursor-pointer" title="Indigo 80%"></div>
|
||||
<div onclick="getColor('rgb(49, 46, 129)', '#312e81', 'bg-indigo-900')" class="w-14 h-10 me-2 rounded-md bg-indigo-900 cursor-pointer" title="Indigo 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- VIOLET -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(245, 243, 255)', '#f5f3ff', 'bg-violet-50')" class="w-14 h-10 me-2 rounded-md bg-violet-50 cursor-pointer" title="Violet 5%"></div>
|
||||
<div onclick="getColor('rgb(237, 233, 254)', '#ede9fe', 'bg-violet-100')" class="w-14 h-10 me-2 rounded-md bg-violet-100 cursor-pointer" title="Violet 10%"></div>
|
||||
<div onclick="getColor('rgb(221, 214, 254)', '#ddd6fe', 'bg-violet-200')" class="w-14 h-10 me-2 rounded-md bg-violet-200 cursor-pointer" title="Violet 20%"></div>
|
||||
<div onclick="getColor('rgb(196, 181, 253)', '#c4b5fd', 'bg-violet-300')" class="w-14 h-10 me-2 rounded-md bg-violet-300 cursor-pointer" title="Violet 30%"></div>
|
||||
<div onclick="getColor('rgb(167, 139, 250)', '#a78bfa', 'bg-violet-400')" class="w-14 h-10 me-2 rounded-md bg-violet-400 cursor-pointer" title="Violet 40%"></div>
|
||||
<div onclick="getColor('rgb(139, 92, 246)', '#8b5cf6', 'bg-violet-500')" class="w-14 h-10 me-2 rounded-md bg-violet-500 cursor-pointer" title="Violet 50%"></div>
|
||||
<div onclick="getColor('rgb(124, 58, 237)', '#7c3aed', 'bg-violet-600')" class="w-14 h-10 me-2 rounded-md bg-violet-600 cursor-pointer" title="Violet 60%"></div>
|
||||
<div onclick="getColor('rgb(109, 40, 217)', '#6d28d9', 'bg-violet-700')" class="w-14 h-10 me-2 rounded-md bg-violet-700 cursor-pointer" title="Violet 70%"></div>
|
||||
<div onclick="getColor('rgb(91, 33, 182)', '#5b21b6', 'bg-violet-800')" class="w-14 h-10 me-2 rounded-md bg-violet-800 cursor-pointer" title="Violet 80%"></div>
|
||||
<div onclick="getColor('rgb(76, 29, 149)', '#4c1d95', 'bg-violet-900')" class="w-14 h-10 me-2 rounded-md bg-violet-900 cursor-pointer" title="Violet 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- PURPLE -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(245, 244, 255)', '#f5f3ff', 'bg-purple-50')" class="w-14 h-10 me-2 rounded-md bg-purple-50 cursor-pointer" title="Purple 5%"></div>
|
||||
<div onclick="getColor('rgb(237, 233, 254)', '#ede9fe', 'bg-purple-100')" class="w-14 h-10 me-2 rounded-md bg-purple-100 cursor-pointer" title="Purple 10%"></div>
|
||||
<div onclick="getColor('rgb(221, 214, 254)', '#ddd6fe', 'bg-purple-200')" class="w-14 h-10 me-2 rounded-md bg-purple-200 cursor-pointer" title="Purple 20%"></div>
|
||||
<div onclick="getColor('rgb(196, 181, 253)', '#c4b5fd', 'bg-purple-300')" class="w-14 h-10 me-2 rounded-md bg-purple-300 cursor-pointer" title="Purple 30%"></div>
|
||||
<div onclick="getColor('rgb(168, 85, 247)', '#a855f7', 'bg-purple-400')" class="w-14 h-10 me-2 rounded-md bg-purple-400 cursor-pointer" title="Purple 40%"></div>
|
||||
<div onclick="getColor('rgb(147, 51, 234)', '#9333ea', 'bg-purple-500')" class="w-14 h-10 me-2 rounded-md bg-purple-500 cursor-pointer" title="Purple 50%"></div>
|
||||
<div onclick="getColor('rgb(139, 92, 246)', '#8b5cf6', 'bg-purple-600')" class="w-14 h-10 me-2 rounded-md bg-purple-600 cursor-pointer" title="Purple 60%"></div>
|
||||
<div onclick="getColor('rgb(128, 49, 216)', '#8031d4', 'bg-purple-700')" class="w-14 h-10 me-2 rounded-md bg-purple-700 cursor-pointer" title="Purple 70%"></div>
|
||||
<div onclick="getColor('rgb(109, 40, 217)', '#6d28d9', 'bg-purple-800')" class="w-14 h-10 me-2 rounded-md bg-purple-800 cursor-pointer" title="Purple 80%"></div>
|
||||
<div onclick="getColor('rgb(88, 28, 135)', '#581c87', 'bg-purple-900')" class="w-14 h-10 me-2 rounded-md bg-purple-900 cursor-pointer" title="Purple 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- FUCHSIA -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(253, 244, 255)', '#fdf4ff', 'bg-fuchsia-50')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-50 cursor-pointer" title="Fuchsia 5%"></div>
|
||||
<div onclick="getColor('rgb(250, 232, 255)', '#fae8ff', 'bg-fuchsia-100')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-100 cursor-pointer" title="Fuchsia 10%"></div>
|
||||
<div onclick="getColor('rgb(245, 208, 254)', '#f5d0fe', 'bg-fuchsia-200')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-200 cursor-pointer" title="Fuchsia 20%"></div>
|
||||
<div onclick="getColor('rgb(240, 171, 252)', '#f0abfc', 'bg-fuchsia-300')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-300 cursor-pointer" title="Fuchsia 30%"></div>
|
||||
<div onclick="getColor('rgb(232, 121, 249)', '#e879f9', 'bg-fuchsia-400')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-400 cursor-pointer" title="Fuchsia 40%"></div>
|
||||
<div onclick="getColor('rgb(217, 70, 239)', '#d946ef', 'bg-fuchsia-500')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-500 cursor-pointer" title="Fuchsia 50%"></div>
|
||||
<div onclick="getColor('rgb(192, 38, 211)', '#c026d3', 'bg-fuchsia-600')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-600 cursor-pointer" title="Fuchsia 60%"></div>
|
||||
<div onclick="getColor('rgb(162, 28, 175)', '#a21caf', 'bg-fuchsia-700')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-700 cursor-pointer" title="Fuchsia 70%"></div>
|
||||
<div onclick="getColor('rgb(134, 25, 143)', '#86198f', 'bg-fuchsia-800')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-800 cursor-pointer" title="Fuchsia 80%"></div>
|
||||
<div onclick="getColor('rgb(112, 26, 116)', '#701a75', 'bg-fuchsia-900')" class="w-14 h-10 me-2 rounded-md bg-fuchsia-900 cursor-pointer" title="Fuchsia 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- PINK -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(253, 242, 248)', '#fdf2f8', 'bg-pink-50')" class="w-14 h-10 me-2 rounded-md bg-pink-50 cursor-pointer" title="Pink 5%"></div>
|
||||
<div onclick="getColor('rgb(252, 231, 243)', '#fce7f3', 'bg-pink-100')" class="w-14 h-10 me-2 rounded-md bg-pink-100 cursor-pointer" title="Pink 10%"></div>
|
||||
<div onclick="getColor('rgb(251, 207, 232)', '#fbced0', 'bg-pink-200')" class="w-14 h-10 me-2 rounded-md bg-pink-200 cursor-pointer" title="Pink 20%"></div>
|
||||
<div onclick="getColor('rgb(249, 168, 212)', '#f9a8d4', 'bg-pink-300')" class="w-14 h-10 me-2 rounded-md bg-pink-300 cursor-pointer" title="Pink 30%"></div>
|
||||
<div onclick="getColor('rgb(244, 114, 182)', '#f472b6', 'bg-pink-400')" class="w-14 h-10 me-2 rounded-md bg-pink-400 cursor-pointer" title="Pink 40%"></div>
|
||||
<div onclick="getColor('rgb(236, 72, 153)', '#ec4899', 'bg-pink-500')" class="w-14 h-10 me-2 rounded-md bg-pink-500 cursor-pointer" title="Pink 50%"></div>
|
||||
<div onclick="getColor('rgb(219, 39, 119)', '#db2777', 'bg-pink-600')" class="w-14 h-10 me-2 rounded-md bg-pink-600 cursor-pointer" title="Pink 60%"></div>
|
||||
<div onclick="getColor('rgb(190, 24, 93)', '#be185d', 'bg-pink-700')" class="w-14 h-10 me-2 rounded-md bg-pink-700 cursor-pointer" title="Pink 70%"></div>
|
||||
<div onclick="getColor('rgb(157, 23, 77)', '#9d174d', 'bg-pink-800')" class="w-14 h-10 me-2 rounded-md bg-pink-800 cursor-pointer" title="Pink 80%"></div>
|
||||
<div onclick="getColor('rgb(131, 24, 67)', '#831843', 'bg-pink-900')" class="w-14 h-10 me-2 rounded-md bg-pink-900 cursor-pointer" title="Pink 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- ROSE -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(255, 241, 242)', '#fff1f2', 'bg-rose-50')" class="w-14 h-10 me-2 rounded-md bg-rose-50 cursor-pointer" title="Rose 5%"></div>
|
||||
<div onclick="getColor('rgb(255, 228, 230)', '#ffe4e6', 'bg-rose-100')" class="w-14 h-10 me-2 rounded-md bg-rose-100 cursor-pointer" title="Rose 10%"></div>
|
||||
<div onclick="getColor('rgb(254, 205, 211)', '#fecdd3', 'bg-rose-200')" class="w-14 h-10 me-2 rounded-md bg-rose-200 cursor-pointer" title="Rose 20%"></div>
|
||||
<div onclick="getColor('rgb(253, 164, 175)', '#fd9fa8', 'bg-rose-300')" class="w-14 h-10 me-2 rounded-md bg-rose-300 cursor-pointer" title="Rose 30%"></div>
|
||||
<div onclick="getColor('rgb(251, 113, 133)', '#fb7185', 'bg-rose-400')" class="w-14 h-10 me-2 rounded-md bg-rose-400 cursor-pointer" title="Rose 40%"></div>
|
||||
<div onclick="getColor('rgb(244, 63, 94)', '#f43f5e', 'bg-rose-500')" class="w-14 h-10 me-2 rounded-md bg-rose-500 cursor-pointer" title="Rose 50%"></div>
|
||||
<div onclick="getColor('rgb(225, 29, 72)', '#e11d48', 'bg-rose-600')" class="w-14 h-10 me-2 rounded-md bg-rose-600 cursor-pointer" title="Rose 60%"></div>
|
||||
<div onclick="getColor('rgb(190, 18, 60)', '#be123c', 'bg-rose-700')" class="w-14 h-10 me-2 rounded-md bg-rose-700 cursor-pointer" title="Rose 70%"></div>
|
||||
<div onclick="getColor('rgb(159, 18, 57)', '#9f1239', 'bg-rose-800')" class="w-14 h-10 me-2 rounded-md bg-rose-800 cursor-pointer" title="Rose 80%"></div>
|
||||
<div onclick="getColor('rgb(136, 19, 55)', '#881337', 'bg-rose-900')" class="w-14 h-10 me-2 rounded-md bg-rose-900 cursor-pointer" title="Rose 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- SLATE -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(248, 250, 252)', '#f8fafc', 'bg-slate-50')" class="w-14 h-10 me-2 rounded-md bg-slate-50 cursor-pointer" title="Slate 5%"></div>
|
||||
<div onclick="getColor('rgb(241, 245, 249)', '#f1f5f9', 'bg-slate-100')" class="w-14 h-10 me-2 rounded-md bg-slate-100 cursor-pointer" title="Slate 10%"></div>
|
||||
<div onclick="getColor('rgb(226, 232, 240)', '#e2e8f0', 'bg-slate-200')" class="w-14 h-10 me-2 rounded-md bg-slate-200 cursor-pointer" title="Slate 20%"></div>
|
||||
<div onclick="getColor('rgb(203, 213, 225)', '#cbd5e0', 'bg-slate-300')" class="w-14 h-10 me-2 rounded-md bg-slate-300 cursor-pointer" title="Slate 30%"></div>
|
||||
<div onclick="getColor('rgb(148, 163, 184)', '#94a3b8', 'bg-slate-400')" class="w-14 h-10 me-2 rounded-md bg-slate-400 cursor-pointer" title="Slate 40%"></div>
|
||||
<div onclick="getColor('rgb(100, 116, 139)', '#64748b', 'bg-slate-500')" class="w-14 h-10 me-2 rounded-md bg-slate-500 cursor-pointer" title="Slate 50%"></div>
|
||||
<div onclick="getColor('rgb(71, 85, 105)', '#475569', 'bg-slate-600')" class="w-14 h-10 me-2 rounded-md bg-slate-600 cursor-pointer" title="Slate 60%"></div>
|
||||
<div onclick="getColor('rgb(51, 65, 85)', '#334155', 'bg-slate-700')" class="w-14 h-10 me-2 rounded-md bg-slate-700 cursor-pointer" title="Slate 70%"></div>
|
||||
<div onclick="getColor('rgb(30, 41, 59)', '#1e293b', 'bg-slate-800')" class="w-14 h-10 me-2 rounded-md bg-slate-800 cursor-pointer" title="Slate 80%"></div>
|
||||
<div onclick="getColor('rgb(15, 23, 42)', '#0f172a', 'bg-slate-900')" class="w-14 h-10 me-2 rounded-md bg-slate-900 cursor-pointer" title="Slate 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- GRAY -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(249, 250, 251)', '#f9fafb', 'bg-gray-50')" class="w-14 h-10 me-2 rounded-md bg-gray-50 cursor-pointer" title="Gray 5%"></div>
|
||||
<div onclick="getColor('rgb(243, 244, 246)', '#f3f4f6', 'bg-gray-100')" class="w-14 h-10 me-2 rounded-md bg-gray-100 cursor-pointer" title="Gray 10%"></div>
|
||||
<div onclick="getColor('rgb(229, 231, 235)', '#e5e7eb', 'bg-gray-200')" class="w-14 h-10 me-2 rounded-md bg-gray-200 cursor-pointer" title="Gray 20%"></div>
|
||||
<div onclick="getColor('rgb(209, 213, 219)', '#d1d5db', 'bg-gray-300')" class="w-14 h-10 me-2 rounded-md bg-gray-300 cursor-pointer" title="Gray 30%"></div>
|
||||
<div onclick="getColor('rgb(156, 163, 175)', '#9ca3af', 'bg-gray-400')" class="w-14 h-10 me-2 rounded-md bg-gray-400 cursor-pointer" title="Gray 40%"></div>
|
||||
<div onclick="getColor('rgb(107, 114, 128)', '#6b7280', 'bg-gray-500')" class="w-14 h-10 me-2 rounded-md bg-gray-500 cursor-pointer" title="Gray 50%"></div>
|
||||
<div onclick="getColor('rgb(75, 85, 99)', '#4b5563', 'bg-gray-600')" class="w-14 h-10 me-2 rounded-md bg-gray-600 cursor-pointer" title="Gray 60%"></div>
|
||||
<div onclick="getColor('rgb(55, 65, 81)', '#374151', 'bg-gray-700')" class="w-14 h-10 me-2 rounded-md bg-gray-700 cursor-pointer" title="Gray 70%"></div>
|
||||
<div onclick="getColor('rgb(31, 41, 55)', '#1f2937', 'bg-gray-800')" class="w-14 h-10 me-2 rounded-md bg-gray-800 cursor-pointer" title="Gray 80%"></div>
|
||||
<div onclick="getColor('rgb(17, 24, 39)', '#111827', 'bg-gray-900')" class="w-14 h-10 me-2 rounded-md bg-gray-900 cursor-pointer" title="Gray 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- ZINC -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(250, 250, 250)', '#fafafa', 'bg-zinc-50')" class="w-14 h-10 me-2 rounded-md bg-zinc-50 cursor-pointer" title="Zinc 5%"></div>
|
||||
<div onclick="getColor('rgb(244, 244, 245)', '#f4f4f5', 'bg-zinc-100')" class="w-14 h-10 me-2 rounded-md bg-zinc-100 cursor-pointer" title="Zinc 10%"></div>
|
||||
<div onclick="getColor('rgb(228, 228, 231)', '#e4e4e7', 'bg-zinc-200')" class="w-14 h-10 me-2 rounded-md bg-zinc-200 cursor-pointer" title="Zinc 20%"></div>
|
||||
<div onclick="getColor('rgb(212, 212, 216)', '#d4d4d8', 'bg-zinc-300')" class="w-14 h-10 me-2 rounded-md bg-zinc-300 cursor-pointer" title="Zinc 30%"></div>
|
||||
<div onclick="getColor('rgb(161, 161, 170)', '#a1a1aa', 'bg-zinc-400')" class="w-14 h-10 me-2 rounded-md bg-zinc-400 cursor-pointer" title="Zinc 40%"></div>
|
||||
<div onclick="getColor('rgb(113, 113, 122)', '#71717a', 'bg-zinc-500')" class="w-14 h-10 me-2 rounded-md bg-zinc-500 cursor-pointer" title="Zinc 50%"></div>
|
||||
<div onclick="getColor('rgb(82, 82, 91)', '#52525b', 'bg-zinc-600')" class="w-14 h-10 me-2 rounded-md bg-zinc-600 cursor-pointer" title="Zinc 60%"></div>
|
||||
<div onclick="getColor('rgb(63, 63, 70)', '#3f3f46', 'bg-zinc-700')" class="w-14 h-10 me-2 rounded-md bg-zinc-700 cursor-pointer" title="Zinc 70%"></div>
|
||||
<div onclick="getColor('rgb(39, 39, 42)', '#27272a', 'bg-zinc-800')" class="w-14 h-10 me-2 rounded-md bg-zinc-800 cursor-pointer" title="Zinc 80%"></div>
|
||||
<div onclick="getColor('rgb(24, 24, 27)', '#18181b', 'bg-zinc-900')" class="w-14 h-10 me-2 rounded-md bg-zinc-900 cursor-pointer" title="Zinc 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- NEUTRAL -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(250, 250, 250)', '#fafafa', 'bg-neutral-50')" class="w-14 h-10 me-2 rounded-md bg-neutral-50 cursor-pointer" title="Neutral 5%"></div>
|
||||
<div onclick="getColor('rgb(245, 245, 245)', '#f5f5f5', 'bg-neutral-100')" class="w-14 h-10 me-2 rounded-md bg-neutral-100 cursor-pointer" title="Neutral 10%"></div>
|
||||
<div onclick="getColor('rgb(229, 229, 229)', '#e5e5e5', 'bg-neutral-200')" class="w-14 h-10 me-2 rounded-md bg-neutral-200 cursor-pointer" title="Neutral 20%"></div>
|
||||
<div onclick="getColor('rgb(212, 212, 212)', '#d4d4d4', 'bg-neutral-300')" class="w-14 h-10 me-2 rounded-md bg-neutral-300 cursor-pointer" title="Neutral 30%"></div>
|
||||
<div onclick="getColor('rgb(163, 163, 163)', '#a3a3a3', 'bg-neutral-400')" class="w-14 h-10 me-2 rounded-md bg-neutral-400 cursor-pointer" title="Neutral 40%"></div>
|
||||
<div onclick="getColor('rgb(115, 115, 115)', '#737373', 'bg-neutral-500')" class="w-14 h-10 me-2 rounded-md bg-neutral-500 cursor-pointer" title="Neutral 50%"></div>
|
||||
<div onclick="getColor('rgb(82, 82, 82)', '#525252', 'bg-neutral-600')" class="w-14 h-10 me-2 rounded-md bg-neutral-600 cursor-pointer" title="Neutral 60%"></div>
|
||||
<div onclick="getColor('rgb(64, 64, 64)', '#404040', 'bg-neutral-700')" class="w-14 h-10 me-2 rounded-md bg-neutral-700 cursor-pointer" title="Neutral 70%"></div>
|
||||
<div onclick="getColor('rgb(38, 38, 38)', '#262626', 'bg-neutral-800')" class="w-14 h-10 me-2 rounded-md bg-neutral-800 cursor-pointer" title="Neutral 80%"></div>
|
||||
<div onclick="getColor('rgb(23, 23, 23)', '#171717', 'bg-neutral-900')" class="w-14 h-10 me-2 rounded-md bg-neutral-900 cursor-pointer" title="Neutral 90%"></div>
|
||||
</div>
|
||||
|
||||
<!-- STONE -->
|
||||
<div class="color-row block w-full m-0 p-0 flex">
|
||||
<div onclick="getColor('rgb(250, 250, 249)', '#fafaf9', 'bg-stone-50')" class="w-14 h-10 me-2 rounded-md bg-stone-50 cursor-pointer" title="Stone 5%"></div>
|
||||
<div onclick="getColor('rgb(245, 245, 244)', '#f5f5f4', 'bg-stone-100')" class="w-14 h-10 me-2 rounded-md bg-stone-100 cursor-pointer" title="Stone 10%"></div>
|
||||
<div onclick="getColor('rgb(231, 229, 228)', '#e7e5e4', 'bg-stone-200')" class="w-14 h-10 me-2 rounded-md bg-stone-200 cursor-pointer" title="Stone 20%"></div>
|
||||
<div onclick="getColor('rgb(214, 211, 209)', '#d6d3d1', 'bg-stone-300')" class="w-14 h-10 me-2 rounded-md bg-stone-300 cursor-pointer" title="Stone 30%"></div>
|
||||
<div onclick="getColor('rgb(168, 162, 158)', '#a8a29e', 'bg-stone-400')" class="w-14 h-10 me-2 rounded-md bg-stone-400 cursor-pointer" title="Stone 40%"></div>
|
||||
<div onclick="getColor('rgb(120, 113, 108)', '#78716c', 'bg-stone-500')" class="w-14 h-10 me-2 rounded-md bg-stone-500 cursor-pointer" title="Stone 50%"></div>
|
||||
<div onclick="getColor('rgb(87, 83, 78)', '#57534e', 'bg-stone-600')" class="w-14 h-10 me-2 rounded-md bg-stone-600 cursor-pointer" title="Stone 60%"></div>
|
||||
<div onclick="getColor('rgb(68, 64, 60)', '#44403c', 'bg-stone-700')" class="w-14 h-10 me-2 rounded-md bg-stone-700 cursor-pointer" title="Stone 70%"></div>
|
||||
<div onclick="getColor('rgb(41, 37, 36)', '#292524', 'bg-stone-800')" class="w-14 h-10 me-2 rounded-md bg-stone-800 cursor-pointer" title="Stone 80%"></div>
|
||||
<div onclick="getColor('rgb(28, 25, 23)', '#1c1917', 'bg-stone-900')" class="w-14 h-10 me-2 rounded-md bg-stone-900 cursor-pointer" title="Stone 90%"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Result Section -->
|
||||
<div class=" flex items-center justify-center">
|
||||
<div id="colorInfo" class="p-4 bg-gray-500 rounded shadow w-full text-center">
|
||||
<p class="text-lg font-semibold text-sky-500">Select a color to see its details</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function getColor(rgb, hex, tailwindcss) {
|
||||
const colorInfo = document.getElementById('colorInfo');
|
||||
colorInfo.innerHTML = `
|
||||
<div class="flex flex-col items-center justify-center space-y-4">
|
||||
<div class="w-32 h-32 rounded-full border-4 border-gray-300 shadow-lg" style="background-color: ${hex};"></div>
|
||||
<div class="flex flex-col space-y-2">
|
||||
<p class="text-xl font-semibold text-gray-700">RGB: <br> <span class="text-neutral-900">${rgb}</span></p>
|
||||
<p class="text-xl font-semibold text-gray-700">HEX: <br> <span class="text-neutral-900">${hex}</span></p>
|
||||
<p class="text-xl font-semibold text-gray-700">Tailwindcss: <br> <span class="text-neutral-900">${tailwindcss}</span></p>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,138 @@
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1 class="font-bold text-center">Simple CRON Expression Generator</h1>
|
||||
<div class="input-section">
|
||||
<p class="font-medium mb-2 indent-3">Enter Date and Time Expression:</p>
|
||||
<table class="p-2 text-center">
|
||||
<tbody class="flex justify-center gap-4 mb-2">
|
||||
<tr>
|
||||
<td><input class="text-center rounded p-2 border border-gray-300" id="from-minute" type="text"
|
||||
placeholder="Minute : 0-59 or *" aria-label="Minute"/></td>
|
||||
<td><input class="text-center rounded p-2 border border-gray-300" id="from-hour" type="text"
|
||||
placeholder="Hour : 0-23 or *" aria-label="Hour"/></td>
|
||||
<td><input class="text-center rounded p-2 border border-gray-300" id="from-day-of-month" type="text"
|
||||
placeholder="Day of Month : 1-31 or *" aria-label="Day of Month"/></td>
|
||||
<td>
|
||||
<select class="text-center rounded p-2 border border-gray-300" id="from-month"
|
||||
aria-label="Month">
|
||||
<option value="*">Any Month</option>
|
||||
<option value="1">January</option>
|
||||
<option value="2">February</option>
|
||||
<option value="3">March</option>
|
||||
<option value="4">April</option>
|
||||
<option value="5">May</option>
|
||||
<option value="6">June</option>
|
||||
<option value="7">July</option>
|
||||
<option value="8">August</option>
|
||||
<option value="9">September</option>
|
||||
<option value="10">October</option>
|
||||
<option value="11">November</option>
|
||||
<option value="12">December</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
<select class="text-center rounded p-2 border border-gray-300"
|
||||
id="from-day-of-week" aria-label="Day of Week">
|
||||
<option value="*">Any Day</option>
|
||||
<option value="0">Sunday</option>
|
||||
<option value="1">Monday</option>
|
||||
<option value="2">Tuesday</option>
|
||||
<option value="3">Wednesday</option>
|
||||
<option value="4">Thursday</option>
|
||||
<option value="5">Friday</option>
|
||||
<option value="6">Saturday</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="button-section flex justify-center gap-4">
|
||||
<div>
|
||||
<button id="generateBtn"
|
||||
class="btn bg-green-500 text-white py-1 px-3 rounded hover:bg-green-600">Generate
|
||||
</button>
|
||||
</div>
|
||||
<div>
|
||||
<button id="clearBtn"
|
||||
class="btn bg-red-500 text-white py-1 px-3 rounded hover:bg-green-600">Clear
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mb-2 mt-2">
|
||||
<div class="result-section ">
|
||||
<p class="font-medium mb-2 indent-3">Generated CRON Expression:</p>
|
||||
<div class="cron-expression text-center rounded p-2 border-gray-300 mb-2"
|
||||
id="cron-expression">* * * * *
|
||||
</div>
|
||||
<div class="flex justify-center">
|
||||
<button id="copyBtn"
|
||||
class="btn bg-green-500 text-white py-1 px-3 rounded hover:bg-green-600">Copy Cron
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mb-2 mt-2">
|
||||
<div class="description-section">
|
||||
<p class="font-medium indent-3">Description:</p>
|
||||
<p id="cron-description"
|
||||
class="text-center text-sky-500 mb-4">Select values to generate a cron expression.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://unpkg.com/cronstrue@latest/dist/cronstrue.min.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const minuteInput = document.getElementById('from-minute');
|
||||
const hourInput = document.getElementById('from-hour');
|
||||
const domInput = document.getElementById('from-day-of-month');
|
||||
const monthSelect = document.getElementById('from-month');
|
||||
const dowSelect = document.getElementById('from-day-of-week');
|
||||
const cronExprDiv = document.getElementById('cron-expression');
|
||||
const descriptionPara = document.getElementById('cron-description');
|
||||
const generateBtn = document.getElementById('generateBtn');
|
||||
const clearBtn = document.getElementById('clearBtn');
|
||||
const copyBtn = document.getElementById('copyBtn');
|
||||
|
||||
function generateCron() {
|
||||
const minute = minuteInput.value.trim() || '*';
|
||||
const hour = hourInput.value.trim() || '*';
|
||||
const dom = domInput.value.trim() || '*';
|
||||
const month = monthSelect.value;
|
||||
const dow = dowSelect.value;
|
||||
|
||||
const cronString = `${minute} ${hour} ${dom} ${month} ${dow}`;
|
||||
|
||||
cronExprDiv.textContent = cronString;
|
||||
|
||||
try {
|
||||
const description = cronstrue.toString(cronString);
|
||||
descriptionPara.textContent = description;
|
||||
} catch (e) {
|
||||
descriptionPara.textContent = 'Invalid cron expression.';
|
||||
}
|
||||
}
|
||||
|
||||
function clearInputs() {
|
||||
minuteInput.value = '';
|
||||
hourInput.value = '';
|
||||
domInput.value = '';
|
||||
monthSelect.value = '*';
|
||||
dowSelect.value = '*';
|
||||
cronExprDiv.textContent = '* * * * *';
|
||||
descriptionPara.textContent = 'Select values to generate a cron expression.';
|
||||
}
|
||||
|
||||
function copyToClipboard() {
|
||||
const cronText = cronExprDiv.textContent;
|
||||
navigator.clipboard.writeText(cronText);
|
||||
}
|
||||
|
||||
generateBtn.addEventListener('click', generateCron);
|
||||
clearBtn.addEventListener('click', clearInputs);
|
||||
copyBtn.addEventListener('click', copyToClipboard);
|
||||
|
||||
generateCron();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
<body class="bg-gray-500 flex flex-col items-center justify-center min-h-screen p-4">
|
||||
<!-- Color pickers -->
|
||||
<div class="flex space-x-4 mb-6 items-center justify-center">
|
||||
<div class="flex flex-col items-center">
|
||||
<label class="mb-2 font-medium" for="color1">Color 1</label>
|
||||
<input type="color" id="color1" value="#ff7e5f" class="w-16 h-16 border-2 border-gray-300 rounded-full cursor-pointer"/>
|
||||
</div>
|
||||
<div class="flex flex-col items-center">
|
||||
<label class="mb-2 font-medium" for="color2">Color 2</label>
|
||||
<input type="color" id="color2" value="#feb47b" class="w-16 h-16 border-2 border-gray-300 rounded-full cursor-pointer"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Gradient display -->
|
||||
<div class="flex justify-center w-full">
|
||||
<div id="gradientBox" class="w-full max-w-xl h-64 rounded-lg shadow-lg border border-gray-300" style="background: linear-gradient(to right, #ff7e5f, #8000ff);"></div>
|
||||
</div>
|
||||
|
||||
<!-- CSS code display -->
|
||||
<div class="flex justify-center w-full mt-5 mb-4">
|
||||
<div class="mt-5 w-full max-w-xl bg-gray-500 p-4 rounded-lg shadow-inner">
|
||||
<div>
|
||||
<h2 class="text-lg font-semibold mb-2 text-white text-center">CSS Code</h2>
|
||||
<pre id="cssCode" class="p-2 rounded overflow-x-auto text-neutral-900 bg-gray-100">background: linear-gradient(to right, #ff7e5f, #8000ff);</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const colorInput1 = document.getElementById('color1');
|
||||
const colorInput2 = document.getElementById('color2');
|
||||
const gradientBox = document.getElementById('gradientBox');
|
||||
const cssCode = document.getElementById('cssCode');
|
||||
|
||||
function updateGradient() {
|
||||
const color1 = colorInput1.value;
|
||||
const color2 = colorInput2.value;
|
||||
const gradientStyle = `linear-gradient(to right, ${color1}, ${color2})`;
|
||||
|
||||
// Update background
|
||||
gradientBox.style.background = gradientStyle;
|
||||
|
||||
// Update CSS code display
|
||||
cssCode.textContent = `background: ${gradientStyle};`;
|
||||
}
|
||||
|
||||
// Event listeners
|
||||
colorInput1.addEventListener('input', updateGradient);
|
||||
colorInput2.addEventListener('input', updateGradient);
|
||||
|
||||
// Initialize
|
||||
updateGradient();
|
||||
</script>
|
||||
</body>
|
||||
@@ -13,6 +13,23 @@
|
||||
<meta name="keywords" content="<%- page_keywords() %>"/>
|
||||
<!-- description -->
|
||||
<meta name="description" content="<%- page_description() %>"/>
|
||||
|
||||
<!-- Additional SEO meta tags -->
|
||||
<meta name="author" content="<%- config.author %>"/>
|
||||
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"/>
|
||||
<% if (is_post()) { %>
|
||||
<meta name="article:author" content="<%- config.title %>"/>
|
||||
<meta name="article:published_time" content="<%- page.date.toISOString() %>"/>
|
||||
<meta name="article:modified_time" content="<%- (page.updated || page.date).toISOString() %>"/>
|
||||
<% if (page.categories && page.categories.length > 0) { %>
|
||||
<meta name="article:section" content="<%- page.categories.toArray()[0].name %>"/>
|
||||
<% } %>
|
||||
<% if (page.tags && page.tags.each) { %>
|
||||
<% page.tags.each(function(tag) { %>
|
||||
<meta name="article:tag" content="<%- tag.name %>"/>
|
||||
<% }); %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<!-- for social -->
|
||||
<meta property="og:url" content="<%- clean_url(url) %>"/>
|
||||
@@ -22,7 +39,22 @@
|
||||
<meta property="og:image" content="<%- page_image() %>"/>
|
||||
<meta property="og:image:width" content="2276"/>
|
||||
<meta property="og:image:height" content="1240"/>
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:image:alt" content="<%- page_title() %> - <%- config.title %>"/>
|
||||
<meta property="og:type" content="<%= is_post() ? 'article' : 'website' %>"/>
|
||||
<meta property="og:locale" content="en_US"/>
|
||||
<% if (is_post()) { %>
|
||||
<meta property="article:published_time" content="<%- page.date.toISOString() %>"/>
|
||||
<meta property="article:modified_time" content="<%- (page.updated || page.date).toISOString() %>"/>
|
||||
<meta property="article:author" content="<%- config.title %>"/>
|
||||
<% if (page.categories && page.categories.length > 0) { %>
|
||||
<meta property="article:section" content="<%- page.categories.toArray()[0].name %>"/>
|
||||
<% } %>
|
||||
<% if (page.tags && page.tags.each) { %>
|
||||
<% page.tags.each(function(tag) { %>
|
||||
<meta property="article:tag" content="<%- tag.name %>"/>
|
||||
<% }); %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<!-- twitter share-->
|
||||
<meta name="twitter:card" content="summary_large_image"/>
|
||||
@@ -31,6 +63,7 @@
|
||||
<meta name="twitter:creator" content="@<%- config.author %>">
|
||||
<meta name="twitter:description" content="<%- page_description() %>"/>
|
||||
<meta name="twitter:image" content="<%- page_image() %>"/>
|
||||
<meta name="twitter:image:alt" content="<%- page_title() %> - <%- config.title %>"/>
|
||||
|
||||
<!-- favicon -->
|
||||
<link rel="icon" href="/images/favicon.png?v=1"/>
|
||||
@@ -63,4 +96,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Structured Data for SEO -->
|
||||
<%- partial('_partial/structured-data') %>
|
||||
|
||||
</head>
|
||||
@@ -0,0 +1,217 @@
|
||||
<script type="application/ld+json">
|
||||
<%
|
||||
// Basic Organization data
|
||||
const orgData = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Organization",
|
||||
"name": config.title,
|
||||
"url": config.url,
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": config.url + "/assets/logo/icon-192x192.png"
|
||||
},
|
||||
"description": config.description,
|
||||
"sameAs": [
|
||||
"https://github.com/Fechin/reference",
|
||||
"https://x.com/Fechin"
|
||||
]
|
||||
};
|
||||
|
||||
// Basic Website data
|
||||
const websiteData = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebSite",
|
||||
"name": config.title,
|
||||
"url": config.url,
|
||||
"description": config.description,
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": config.title,
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": config.url + "/assets/logo/icon-192x192.png"
|
||||
}
|
||||
},
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": {
|
||||
"@type": "EntryPoint",
|
||||
"urlTemplate": config.url + "/?q={search_term_string}"
|
||||
},
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
};
|
||||
|
||||
let schemaArray = [];
|
||||
|
||||
if (is_home()) {
|
||||
// Homepage: Add Organization and Website schema
|
||||
schemaArray.push(orgData, websiteData);
|
||||
|
||||
// Add ItemList for category display
|
||||
const itemListData = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "ItemList",
|
||||
"name": "Developer Cheat Sheets",
|
||||
"description": "Collection of quick reference guides for developers",
|
||||
"numberOfItems": site.posts.length,
|
||||
"itemListElement": []
|
||||
};
|
||||
|
||||
let position = 1;
|
||||
site.posts.sort('date', -1).limit(20).each(function(post) {
|
||||
itemListData.itemListElement.push({
|
||||
"@type": "ListItem",
|
||||
"position": position++,
|
||||
"name": post.title + " Cheat Sheet",
|
||||
"url": config.url + url_for(post.path)
|
||||
});
|
||||
});
|
||||
|
||||
schemaArray.push(itemListData);
|
||||
|
||||
} else if (is_post()) {
|
||||
// Article page: Add TechArticle schema
|
||||
const categoryNames = [];
|
||||
if (page.categories && page.categories.each) {
|
||||
page.categories.each(function(cat) {
|
||||
categoryNames.push(cat.name);
|
||||
});
|
||||
}
|
||||
|
||||
const keywords = [];
|
||||
if (page.tags && page.tags.each) {
|
||||
page.tags.each(function(tag) {
|
||||
keywords.push(tag.name);
|
||||
});
|
||||
}
|
||||
|
||||
const articleData = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "TechArticle",
|
||||
"headline": page.title + " Cheat Sheet & Quick Reference",
|
||||
"name": page.title + " Cheat Sheet",
|
||||
"description": page_description(),
|
||||
"image": page_image(),
|
||||
"url": clean_url(url),
|
||||
"datePublished": page.date.toISOString(),
|
||||
"dateModified": (page.updated || page.date).toISOString(),
|
||||
"author": {
|
||||
"@type": "Organization",
|
||||
"name": config.title,
|
||||
"url": config.url
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": config.title,
|
||||
"logo": {
|
||||
"@type": "ImageObject",
|
||||
"url": config.url + "/assets/logo/icon-192x192.png"
|
||||
},
|
||||
"url": config.url
|
||||
},
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": clean_url(url)
|
||||
},
|
||||
"about": {
|
||||
"@type": "SoftwareApplication",
|
||||
"name": page.title,
|
||||
"applicationCategory": "DeveloperApplication"
|
||||
},
|
||||
"audience": {
|
||||
"@type": "Audience",
|
||||
"audienceType": "Developers, Programmers, System Administrators"
|
||||
},
|
||||
"educationalLevel": "Beginner to Advanced",
|
||||
"learningResourceType": "Quick Reference Guide",
|
||||
"typicalAgeRange": "18-65",
|
||||
"inLanguage": "en"
|
||||
};
|
||||
|
||||
if (categoryNames.length > 0) {
|
||||
articleData.articleSection = categoryNames;
|
||||
}
|
||||
|
||||
if (keywords.length > 0) {
|
||||
articleData.keywords = keywords.join(", ");
|
||||
}
|
||||
|
||||
schemaArray.push(websiteData, articleData);
|
||||
|
||||
// Add BreadcrumbList
|
||||
const breadcrumbData = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "Home",
|
||||
"item": config.url
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
if (categoryNames.length > 0) {
|
||||
breadcrumbData.itemListElement.push({
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": categoryNames[0],
|
||||
"item": config.url + "/#" + categoryNames[0].toLowerCase().replace(/\s+/g, '-')
|
||||
});
|
||||
|
||||
breadcrumbData.itemListElement.push({
|
||||
"@type": "ListItem",
|
||||
"position": 3,
|
||||
"name": page.title + " Cheat Sheet",
|
||||
"item": clean_url(url)
|
||||
});
|
||||
} else {
|
||||
breadcrumbData.itemListElement.push({
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": page.title + " Cheat Sheet",
|
||||
"item": clean_url(url)
|
||||
});
|
||||
}
|
||||
|
||||
schemaArray.push(breadcrumbData);
|
||||
|
||||
} else if (is_page()) {
|
||||
// Normal page
|
||||
const pageData = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "WebPage",
|
||||
"name": page.title,
|
||||
"description": page_description(),
|
||||
"url": clean_url(url),
|
||||
"mainEntity": {
|
||||
"@type": "Organization",
|
||||
"name": config.title,
|
||||
"url": config.url
|
||||
},
|
||||
"breadcrumb": {
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 1,
|
||||
"name": "Home",
|
||||
"item": config.url
|
||||
},
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": 2,
|
||||
"name": page.title,
|
||||
"item": clean_url(url)
|
||||
}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
schemaArray.push(websiteData, pageData);
|
||||
}
|
||||
%>
|
||||
<%- JSON.stringify(schemaArray, null, 2) %>
|
||||
</script>
|
||||
@@ -0,0 +1,186 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// Generate more detailed page descriptions
|
||||
hexo.extend.helper.register('enhanced_page_description', function () {
|
||||
let description = '';
|
||||
|
||||
if (this.is_home()) {
|
||||
description = `${this.config.description} - Quick reference guides for developers, programmers, and system administrators. Find cheat sheets for popular programming languages, tools, and technologies.`;
|
||||
} else if (this.page && this.page.intro && this.page.intro.trim()) {
|
||||
description = this.strip_html(this.markdown(this.page.intro)).substring(0, 155);
|
||||
} else if (this.is_post()) {
|
||||
const categoryNames = [];
|
||||
if (this.page.categories && this.page.categories.each) {
|
||||
this.page.categories.each(function (cat) {
|
||||
categoryNames.push(cat.name);
|
||||
});
|
||||
}
|
||||
|
||||
const categoryText = categoryNames.length > 0 ? `${categoryNames[0]} ` : '';
|
||||
description = `${this.page.title} cheat sheet and quick reference guide. Essential ${categoryText}shortcuts, commands, and tips for developers and system administrators.`;
|
||||
} else if (this.page && this.page.content) {
|
||||
description = this.strip_html(this.page.content).substring(0, 155);
|
||||
} else {
|
||||
description = this.config.description || '';
|
||||
}
|
||||
|
||||
// Clean up description text
|
||||
description = description.replace(/[\r\n\s\s+]+/g, ' ').trim();
|
||||
|
||||
// Ensure description ends with a period
|
||||
if (
|
||||
description &&
|
||||
!description.endsWith('.') &&
|
||||
!description.endsWith('!') &&
|
||||
!description.endsWith('?')
|
||||
) {
|
||||
description += '.';
|
||||
}
|
||||
|
||||
return description;
|
||||
});
|
||||
|
||||
// Generate article reading time estimate
|
||||
hexo.extend.helper.register('reading_time', function (content) {
|
||||
if (!content) return '2 min read';
|
||||
|
||||
const wordsPerMinute = 200;
|
||||
const textContent = this.strip_html(content);
|
||||
const wordCount = textContent.split(/\s+/).length;
|
||||
const readingTime = Math.ceil(wordCount / wordsPerMinute);
|
||||
|
||||
return `${readingTime} min read`;
|
||||
});
|
||||
|
||||
// Generate related keywords
|
||||
hexo.extend.helper.register('related_keywords', function () {
|
||||
let keywords = [];
|
||||
|
||||
if (this.is_post()) {
|
||||
// Basic keywords
|
||||
keywords.push('cheat sheet', 'quick reference', 'guide', 'tutorial');
|
||||
|
||||
// Add page title keywords
|
||||
if (this.page.title) {
|
||||
keywords.push(this.page.title.toLowerCase());
|
||||
keywords.push(`${this.page.title.toLowerCase()} guide`);
|
||||
keywords.push(`${this.page.title.toLowerCase()} commands`);
|
||||
}
|
||||
|
||||
// Add category keywords
|
||||
if (this.page.categories && this.page.categories.each) {
|
||||
this.page.categories.each(function (cat) {
|
||||
keywords.push(cat.name.toLowerCase());
|
||||
});
|
||||
}
|
||||
|
||||
// Add tag keywords
|
||||
if (this.page.tags && this.page.tags.each) {
|
||||
this.page.tags.each(function (tag) {
|
||||
keywords.push(tag.name.toLowerCase());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return [...new Set(keywords)].join(', ');
|
||||
});
|
||||
|
||||
// Generate page type
|
||||
hexo.extend.helper.register('page_type', function () {
|
||||
if (this.is_home()) return 'homepage';
|
||||
if (this.is_post()) return 'cheatsheet';
|
||||
if (this.is_page()) return 'page';
|
||||
return 'other';
|
||||
});
|
||||
|
||||
// Generate estimated word count
|
||||
hexo.extend.helper.register('word_count', function (content) {
|
||||
if (!content) return 0;
|
||||
const textContent = this.strip_html(content);
|
||||
return textContent.split(/\s+/).length;
|
||||
});
|
||||
|
||||
// Check if there is a table of contents
|
||||
hexo.extend.helper.register('has_toc', function (content) {
|
||||
if (!content) return false;
|
||||
|
||||
// Check if there are title elements
|
||||
const headingRegex = /<h[1-6][^>]*>/gi;
|
||||
const headings = content.match(headingRegex);
|
||||
|
||||
return headings && headings.length >= 3;
|
||||
});
|
||||
|
||||
// Generate breadcrumb data
|
||||
hexo.extend.helper.register('breadcrumb_data', function () {
|
||||
const breadcrumbs = [];
|
||||
|
||||
// Homepage link
|
||||
breadcrumbs.push({
|
||||
name: 'Home',
|
||||
url: this.config.url,
|
||||
position: 1
|
||||
});
|
||||
|
||||
if (this.is_post()) {
|
||||
// Category link
|
||||
if (this.page.categories && this.page.categories.length > 0) {
|
||||
const mainCategory = this.page.categories.toArray()[0];
|
||||
breadcrumbs.push({
|
||||
name: mainCategory.name,
|
||||
url: `${this.config.url}/#${mainCategory.name.toLowerCase().replace(/\s+/g, '-')}`,
|
||||
position: 2
|
||||
});
|
||||
|
||||
// Current page
|
||||
breadcrumbs.push({
|
||||
name: `${this.page.title} Cheat Sheet`,
|
||||
url: this.clean_url(this.url),
|
||||
position: 3
|
||||
});
|
||||
} else {
|
||||
// Current page
|
||||
breadcrumbs.push({
|
||||
name: `${this.page.title} Cheat Sheet`,
|
||||
url: this.clean_url(this.url),
|
||||
position: 2
|
||||
});
|
||||
}
|
||||
} else if (this.is_page()) {
|
||||
// Current page
|
||||
breadcrumbs.push({
|
||||
name: this.page.title,
|
||||
url: this.clean_url(this.url),
|
||||
position: 2
|
||||
});
|
||||
}
|
||||
|
||||
return breadcrumbs;
|
||||
});
|
||||
|
||||
// Generate technical article specific meta information
|
||||
hexo.extend.helper.register('tech_article_meta', function () {
|
||||
if (!this.is_post()) return {};
|
||||
|
||||
const meta = {
|
||||
difficulty: 'Beginner to Advanced',
|
||||
audience: 'Developers, Programmers, System Administrators',
|
||||
type: 'Quick Reference Guide',
|
||||
format: 'Cheat Sheet'
|
||||
};
|
||||
|
||||
// Adjust difficulty based on category
|
||||
if (this.page.categories && this.page.categories.each) {
|
||||
this.page.categories.each(function (cat) {
|
||||
if (cat.name.includes('Linux') || cat.name.includes('Command')) {
|
||||
meta.difficulty = 'Intermediate to Advanced';
|
||||
meta.audience = 'System Administrators, DevOps Engineers, Developers';
|
||||
} else if (cat.name.includes('Programming')) {
|
||||
meta.audience = 'Developers, Software Engineers, Programmers';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return meta;
|
||||
});
|
||||
Reference in new issue
Block a user