# 아마도 git을 사용하고 있을테니까 `git mv`를 사용해서 변경해주자
find src -type f | grep "\.[jt]s$" | xargs -n1 grep -HE "^[^*\n]*(<\/?[a-zA-Z]*>)[\s\w]*$" | cut -d: -f1 | uniq | awk '{print "git mv "$1" "$1"x"}' | sh
Footnotes
<div
dangerouslySetInnerHTML={{
__html: `
<img src="http://unsplash.it/100/100?random" onload="console.log('you got hacked');" />
`,
}}
/>
가끔 아주 가끔 이상한 일을 해야할때가 있는데 그럴때는 이렇게 하면 된다.
const obj = {
a: 1,
b: 2,
}
console.log(obj[['a']]) // 1
console.log(obj[['b']]) // 2
이게 되네 🤔
# .gitignore가 규칙이 적용되지 않을때
git rm -rf --cached .
git add .
- OpenGraph - Preview Social Media Share and Generate Metatags - OpenGraph1
- The Open Graph protocol2
- SEO 기본 가이드: 기본사항 | Google 검색 센터 | 문서 | Google Developers
- General Structured Data Guidelines | Google Search Central | Google Developers3
- Getting started with Cards | Docs | Twitter Developer Platform
- 다지역 및 다국어 사이트 관리 | Google 검색 센터
- 네이버
- Redirect
- Sitemap
Footnotes
포토샵 스크립트 관련 링크(액션과는 다르다 액션과는!) 정리. 액션도 편하기는 하지만 개발적인 관점에서 보자면 너 유연한 작업이 가능한 스크립트를 작성하는게 맞다.
유튜브 강의 - 보면 시각적으로 뭐가뭔지 나오니까 이해가 바로 된다
- JavaScript + Photoshop — Basic Automation Workflows - YouTube
- Introduction to Photoshop Generator - YouTube
- Importing text or images in batch with Variables in Adobe Photoshop - The Complete Tutorial - YouTube
- Photoshop Scripting Tutorial - YouTube
- How to get started with Scripting in Photoshop - YouTube
어도비 공식 문서 - 스펙 정의에 가까워서 예제코드로 감을 익히고 백과사전용으로 사용하는게 좋을 것 같다.
그래서 어떻게 작성하면 되는거야?…에 대한 예제들. 아마도 es3로 작성해야하는 부분때문에 문법은 복잡해 보인다.
- GitHub - hsw107/Photoshop-Export-Layers-to-Files-Fast: This script allows you to export your layers as individual files at a speed much faster than the built-in script from Adobe.
- GitHub - mitmedialab/storybook-photoshop-jsx
- [포토샵스크립트] 모든 레이어 자동저장 / 폴더 구조 포함
- [포토샵스크립트] 코딩을 통하여 ‘모동숲 카드’ 만들기
글
GitHub - meltingice/psd.js: A Photoshop PSD file parser for NodeJS and browsers
psd 파서. 이를 통해 관리 가능한 트리 구조에서 Photoshop 문서로 작업하고 다음과 같은 중요한 데이터를 찾을 수 있습니다.
- 문서 구조
- 문서 크기
- 레이어/폴더 크기 + 위치 지정
- 레이어/폴더 이름
- 레이어/폴더 가시성 및 불투명도
- 글꼴 데이터( psd-enginedata 를 통해 )
- 텍스트 영역 내용
- 글꼴 이름, 크기 및 색상
- 색상 모드 및 비트 심도
- 벡터 마스크 데이터
- 병합된 이미지 데이터
- 레이어 구성 요소
- Adding Shadows to SVG Icons With CSS and SVG Filters | CSS-Tricks1
- How to Animate a SVG with border-image | CSS-Tricks2
- Text Along a Path on the Web Using SVG textPath ← Alligator.io3
- Morphing SVG With react-spring | CSS-Tricks4
- Accessible SVGs: Perfect Patterns For Screen Reader Users — Smashing Magazine5
- SVG Favicons in Action | CSS-Tricks6
- A Practical Guide To SVG And Design Tools — Smashing Magazine7
- Fun with stroke-dasharray
아이콘
- https://fotis.xyz/posts/introducing-svg-use/
- https://www.jacobparis.com/content/svg-icons
- https://sly-cli.fly.dev/
필터 — feTurbulence Perlin noise89를 사용하여 구름이나 대리석과 같은 인공 질감을 합성. feDisplacementMap in2의 이미지 픽셀 값을 사용하여 in의 이미지를 공간적으로 대체합니다.
- SVG Filter Effects: Creating Texture with
<feTurbulence>- Codrops - Drawing Realistic Clouds with SVG and CSS | CSS-Tricks
- The Art Of SVG Filters And Why It Is Awesome
- A Deep Dive Into The Wonderful World Of SVG Displacement Filtering — Smashing Magazine
- SVG Filter Effects: Conforming Text to Surface Texture with
<feDisplacementMap>- Codrops
offset-path — 값을 지정해서 keyframes로 애니메이션을 적용하는 방법과 예제들
Footnotes
-
<filter />를 이용하는 방법으로 좀 더 효과적인 스타일 작업이 가능하다는 걸 shadow 효과 예제로 정리한 글 ↩ -
애니메이션(
@keyframes)이 결합된 svg를border-image로 사용해서 만든 UI ↩ -
textPath를 사용해서 텍스트 흐름을 변형하는 방법 ↩ -
path속성값을 제어해서 모핑효과 주는 방법 ↩ -
a11y ↩
-
favicon 이미지를 svg로 사용했을때 장점 ↩
-
디자인툴에서 output되는 svg코드 중심으로 설명 ↩
-
element가 따라갈 모션 경로를 지정하고 상위 컨테이너 또는 SVG 좌표 시스템 내에서 요소의 위치를 정의 ↩
- A Variable Fonts Primer
- Google Fonts
- Getting the Most Out of Variable Fonts on Google Fonts | CSS-Tricks
- Variable Fonts for Developers
- Using CSS Custom Properties to Adjust Variable Font Weights in Dark Mode | CSS-Tricks1
Footnotes
-
다크모드에서 weight가 시각적으로 차이가 날수 있기때문에 그럴경우 변수로 분리해서 대응하는 방법 ↩