Skip to content

Commit

Permalink
Chore: 초기세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
jseo9732 committed Nov 8, 2023
1 parent eaf2a52 commit 8014a4e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"react/react-in-jsx-scope": "off", // react 17부턴 import 안해도돼서 기능 끔
// 경고표시, 파일 확장자를 .ts나 .tsx 모두 허용함
"react/jsx-filename-extension": ["warn", { "extensions": [".ts", ".tsx"] }],
"no-useless-catch": "off" // 불필요한 catch 못쓰게 하는 기능 끔
"no-useless-catch": "off", // 불필요한 catch 못쓰게 하는 기능 끔
"react/jsx-props-no-spreading": "off"
}
}
30 changes: 30 additions & 0 deletions styles/_mixin.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@use './variables' as *;

@mixin a11y-hidden() {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: polygon(0 0, 0 0, 0 0);
}

@mixin flex-center-row() {
display: flex;
justify-content: center;
align-items: center;
}

@mixin flex-center-col() {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

@mixin shadow() {
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.1),
0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

0 comments on commit 8014a4e

Please sign in to comment.