-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clo-or] 프론트엔드 1주차 미션 제출합니다. #2
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# CSS | ||
p { | ||
color: red; | ||
font-size: red; | ||
} | ||
이런식으로 css 사용함 | ||
<link rel='stylesheet' href='css/style.css'> | ||
이런식으로 html에서 css 적용시 | ||
|
||
## 셀렉터 | ||
셀렉터{선언(프로퍼티:값);선언;} | ||
- * 전체 셀렉터 | ||
- 태그명 (모든 태그 선택 셀렉터) | ||
- .class 클래스 셀렉터 | ||
- 셀렉터[어트리뷰트] ex. a[href] | ||
- 셀렉터[어트리뷰트=”값”] ex. a[target='_blank'] | ||
- 자식 셀렉터 셀렉터A > 셀렉터 | ||
|
||
## 프로퍼티 | ||
width + left padding + right padding + left border + right border + left margin + right margin | ||
패딩 및 라운딩 설정을 할 수 있다 | ||
|
||
## 폰트 | ||
font-size / font-family / font-style / font-weigh | ||
|
||
## 포지션 | ||
- 기본 위치, 상대 위치, 고정 위치, 절대 위치 | ||
|
||
## 요소 정렬 | ||
요소 기본값, 오른쪽 위, 왼쪽 위로 구분 | ||
## 상속 | ||
특정 프로퍼터는 상속되는 프로퍼티로서 자식 요소는 물론 자손 요소까지 적용된다 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# HTML5 | ||
- html은 웹페이지를 기술하기 위한 마크업 언어이다. | ||
- 웹페이지의 내용과 구조를 담당하는 언어 | ||
|
||
```html | ||
<!DOCTYPE html> | ||
<html> | ||
<head></head> | ||
<body></body> | ||
</html> | ||
``` | ||
- 이런식으로 구성됨 | ||
<p></p> 이게 요소임 | ||
|
||
## stype | ||
```html | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
body{ | ||
background-color: yellow; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>a</p> | ||
</body> | ||
</html> | ||
``` | ||
- 이런 식으로 스타일 넣을 수 있음 | ||
|
||
## 형태 | ||
bold <b></b> | ||
strong <strong></strong> | ||
del <del></del> | ||
|
||
## 이미지 | ||
img src='링크'를 통해 넣을수 있음 | ||
width height 등으로 css 수정 가능 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 자바스크립트 | ||
시작은 항상 print로 | ||
```js | ||
console.log('hello world'); | ||
``` | ||
|
||
```js | ||
var a; | ||
a = '배고파요'; | ||
``` | ||
- 변수 설정 방법이다. js는 그리고 세미콜론 써야하는 것을 항상 명시할 것. | ||
- 타입 : num, str, boolean, null 등 존재. | ||
- 연산자 : 대략적으로 다른 코드와 비슷. (반복문, if문 등도 마찬가지다.) | ||
```js | ||
function a(a){ | ||
} | ||
``` | ||
함수 : ()와 {} 둘 모두 사용해야 함. 유의할 것. | ||
|
||
### switch 문 | ||
case 별로 이동되는 것. 개인적으로 if elif else와 비슷한 결로 생각하면 이해가 편할듯 하다. | ||
case num - break로 이루어진다. | ||
|
||
## 변환 | ||
string(3) 등의 코드를 통해 자유롭게 변환이 가능하다. 암묵적 타입 변환도 있다. | ||
|
||
## 프로퍼티 | ||
- 객체가 가지는 속성이나 특성 등을 의미. | ||
- 추가, 수정, 삭제가 자유롭게 가능. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
h1 { | ||
font-weight: bold; | ||
color: rgb(0, 0, 112); | ||
} | ||
|
||
|
||
|
||
body { | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.container { | ||
padding: 20px; | ||
border: 2px solid #bbbbbb; | ||
border-radius: 50px; | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
</head> | ||
<body></body> | ||
<html lang="ko"> | ||
<head> | ||
<title>이승아 자기소개</title> | ||
<link rel="stylesheet" href="introduce.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 다음번엔 명세에 조금더 자세한 요구사항을 적어놓을게여 자기소개 페이지에 조금더 많은 내용이 들어가면 좋을거 같네용 |
||
<h1>이승아</h1> | ||
<h2>홍익대학교 산업데이터공학과 (23.3 ~ )</h2> | ||
<h3>24-1</h3> | ||
<ol> | ||
<li>Matrix Lead</li> | ||
<li>hongik GDSC Core Member (DevRel)</li> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 별도로 명칭은 GDSC Hongik 23-24 DevRel Core Member 정도로 수정해둡시다 |
||
</ol> | ||
</div> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
function calculate(input) { | ||
const [num1, operator, num2] = input.split(" "); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이렇게 구조할당 해도 정상적인 코드에서는 문제없이 굴러가긴 합니다! 다만 만약 띄어쓰기가 하나밖에 없는 등의 이슈가 있으면 바로 쪼갰을 때 문제가 발생할 수 있겟네여 사실 이런거 고려하면서 짜라고 낸 미션은 아니엿지만 요런거 생각하면서 코드 짜면 도움될거 같아서 남기고 갑니당 |
||
|
||
const a = parseInt(num1, 10); | ||
const b = parseInt(num2, 10); | ||
|
||
switch (operator) { | ||
case '+': | ||
return a + b; | ||
case '-': | ||
return a - b; | ||
case '*': | ||
return a * b; | ||
case '/': | ||
return a / b; | ||
default: | ||
return "impossible"; | ||
} | ||
Comment on lines
+7
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 원래 기능 명세에 적혀있던건 각 사칙연산별로 함수로 구분하는거였는데 그래도 switch 문법 충분히 잘 이용하셧네용 |
||
} | ||
|
||
const c = "3 + 5"; | ||
const d = calculate(c); | ||
console.log(d); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Getting Started with Create React App | ||
|
||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Available Scripts | ||
|
||
In the project directory, you can run: | ||
|
||
### `npm start` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser. | ||
|
||
The page will reload when you make changes.\ | ||
You may also see any lint errors in the console. | ||
|
||
### `npm test` | ||
|
||
Launches the test runner in the interactive watch mode.\ | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `npm run build` | ||
|
||
Builds the app for production to the `build` folder.\ | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.\ | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `npm run eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can't go back!** | ||
|
||
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own. | ||
|
||
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) | ||
|
||
### Deployment | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) | ||
|
||
### `npm run build` fails to minify | ||
|
||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자기소개 페이지에 CSS 속성이 조금더 다양한 요소가 들어가면 좋을거 같아여 다음 미션에서는 최대한 많이 넣어서 만들어봅시다!