Skip to content

Instantly share code, notes, and snippets.

View yamoo9's full-sized avatar
πŸŽ“
Blended Learning

야무 yamoo9

πŸŽ“
Blended Learning
  • Mentor of E.UID
  • South korea
  • X @yamoo9
View GitHub Profile
@yamoo9
yamoo9 / Product.css
Created June 26, 2024 16:42
Product & ProductList μŠ€νƒ€μΌλ§
@layer components {
.Product {
--padding: 8px;
--round: 4px;
--border-weight: 0.5px;
--gap: 12px;
--color: 200, 15%, 42%;
--border-color: hsla(var(--color), 0.3);
--background-color: color-mix(in srgb, hsl(var(--color)) 2%, white 100%);
@yamoo9
yamoo9 / avatars.json
Last active June 25, 2024 20:08
Avatar 리슀트 데이터
[
{
"id": "avatar-1",
"filename": "man-01",
"ext": "jpg",
"name": "λ°•μ„±μ€€",
"isOnline": false
},
{
"id": "avatar-2",
@yamoo9
yamoo9 / search-form.html
Created June 25, 2024 18:35
검색 폼 HTML λ§ˆν¬μ—…
<form method="get" action="/search">
<img src="search.png" alt="돋보기">
<br>
<label>
검색어
<input name="term" type="search">
</label>
<button type="submit">검색</button>
</form>
@yamoo9
yamoo9 / globals.css
Created June 23, 2024 12:07
κΈ€λ‘œλ²Œ μŠ€νƒ€μΌ 파일
:root {
--primary-rgb: 8, 126, 164;
--primary-rgba: var(--primary-rgb), 1;
--forground-rgb: 10, 24, 48;
--forground-rgba: var(--forground-rgb), 1;
--background-rgb: 200, 245, 255;
--background-rgba: var(--background-rgb), 0.3;
--inner-space: 8px 16px;
--spacing: 4px;
--rounded: 4px;
@yamoo9
yamoo9 / react-logo.svg
Created June 18, 2024 08:17
React 둜고 (2023) SVG 파일
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yamoo9
yamoo9 / bundleCSS.js
Created July 6, 2023 02:08
CSS λ²ˆλ“€λ§ ν”„λ‘œκ·Έλž¨ (Node.js)
import { readFile, writeFile } from 'node:fs/promises';
import { existsSync, mkdirSync } from 'node:fs';
import { resolve } from 'node:path';
import { argv } from 'node:process';
const { cssDir, entryFile, outDir, outFile } = parseOptions();
const CSS_DIR = cssDir ?? 'src';
const ENTRY_FILE = entryFile ?? 'main.css';
const OUTPUT_DIR = outDir ?? 'styles';
@yamoo9
yamoo9 / _mixins.scss
Created September 5, 2022 07:37
font 믹슀인 μ˜ˆμ‹œ
@use "sass:meta" as *;
@use "sass:list";
@use "sass:string";
@function get-value($props, $key) {
$index: list.index($props, $key);
@if $index != null {
$value: list.nth($props, $index + 1);
@return if(type-of($value) != string, $value, string.unquote($value));
} @else {
@yamoo9
yamoo9 / validator.js
Last active January 3, 2022 00:04
폼 μœ νš¨μ„± 검사 μœ ν‹Έλ¦¬ν‹° - validator
/* eslint-disable no-useless-escape */
/* -------------------------------------------------------------------------- */
// 아이디 체크 μœ ν‹Έλ¦¬ν‹°
// β–Έ 5 ~ 20자 β€” 영문, 숫자 μ‘°ν•©
/* -------------------------------------------------------------------------- */
export const isId = (value, { min = 4, max = 19 } = {}) => {
const regExp = new RegExp(`^[a-z]+[a-z0-9]{${min},${max}}$`, 'g');
return regExp.test(value);
@yamoo9
yamoo9 / focusOrTabbable.js
Last active December 22, 2021 22:42
focusable λ˜λŠ” tabbable ν•  수 μžˆλŠ” HTML μš”μ†Œ 검사 및 리슀트 λ°˜ν™˜ μœ ν‹Έλ¦¬ν‹°
/* -------------------------------------------------------------------------- */
/* FOCUSABLE (tabindex="-1" 포함) */
/* -------------------------------------------------------------------------- */
const focusableSelector = `
a[href],
area[href],
button,
input,
select,
@yamoo9
yamoo9 / Gridlover.markdown.md
Created February 25, 2020 14:26
Gridlover - 8pt Grid

8pt Grid

8pt κ·Έλ¦¬λ“œλ₯Ό ν™œμš©ν•΄ νƒ€μ΄ν¬κ·Έλž˜ν”Ό, μ•„μ΄μ½˜, λ ˆμ΄μ•„μ›ƒμ„ μž‘μ„±ν•˜κ³  UI λ””μžμΈμ„ μ‹œμž‘ν•΄λ³΄μ„Έμš”. 8pt κ·Έλ¦¬λ“œλ₯Ό μ‚¬μš©ν•˜λŠ” 것이 κ°€μž₯ 쒋은 μ΄μœ λŠ” 거의 λͺ¨λ“  디지털 λ””μžμΈ ν”„λ‘œμ νŠΈ λ˜λŠ” μ œν’ˆ λ””μžμΈμ— 적용 κ°€λŠ₯ν•˜κΈ° λ•Œλ¬Έμž…λ‹ˆλ‹€.

ν”½μ…€(px)이 μ•„λ‹Œ, 포인트(pt)

iPhone XR의 λ„ˆλΉ„(width)λŠ” 414Γ—896ν”½μ…€(px)이 μ•„λ‹™λ‹ˆλ‹€. 828Γ—1792 ν”½μ…€μž…λ‹ˆλ‹€. 2λ°° 컀진 크기죠. iPhone XR은 일반 ν™”λ©΄(Regular Display)보닀 PPI(μΈμΉ˜λ‹Ή ν”½μ…€ 수)κ°€ 2배인 Retina λ””μŠ€ν”Œλ ˆμ΄λ₯Ό μ‚¬μš©ν•˜λ―€λ‘œ 2λ°° 크기둜 화면에 λ Œλ”λ§λ©λ‹ˆλ‹€. (λ„ˆλΉ„ 2λ°°, 높이 2배의 픽셀이 ν•„μš”ν•˜κΈ°μ— μ‹€μ œ ν•„μš”ν•œ ν”½μ…€ κ°œμˆ˜λŠ” 4λ°°μž…λ‹ˆλ‹€)