Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- Class
- 프래그먼트
- html
- querySelector
- string
- 230508
- ViewPager
- Adapter
- DOMContentLoaded
- intent
- Flutter
- ActionBar
- DFS
- C++
- 안드로이드
- fragment
- serializable
- null-safety
- 부가데이터
- 230510
- 230503
- putextra
- 생명주기
- parcelable
- classList
- textContent
- 데이터 타입
- javascript
- 인텐트
- 함수 인자
Archives
- Today
- Total
나만의 개발노트
[JS프로젝트] 7. QnA 게시판 만들기 본문
[나의 코드]
- index.html
...
<body>
<-- title -->
<div class="title">
<h2>general questions</h2>
</div>
<-- question list -->
<ul class="section-center">
<li class="question">
<div class="question-title">
<p>Do You Accept All Major Credit Cards?</p>
<button class="question-btn">
<i class="fa-regular fa-square-plus plus-icon"></i>
<i class="fa-regular fa-square-minus minus-icon"></i>
</button>
</div>
<aside class="question-text">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Est dolore illo dolores quia nemo doloribus quaerat, magni
numquam repellat reprehenderit.</p></aside>
</li>
<li class="question"> ...
</ul>
<body>
*그림으로 보기
[더 나은 코드]
- index.html
-> sidebar 클래스를 div 가 아닌 aside로 사용함
- aside태그
: 별도 구획 요소 - 문서의 주요 내용과 간접적으로만 연관된 부분. 주로 사이드바 혹은 콜아웃 박스를 표현한다.
전체 코드 보기
https://github.com/mokjakA/std_JS
GitHub - mokjakA/std_JS
Contribute to mokjakA/std_JS development by creating an account on GitHub.
github.com
프로젝트 참고
https://www.freecodecamp.org/news/javascript-projects-for-beginners/#how-to-create-a-review-carousel
'[실습] > [실습] 프론트엔드' 카테고리의 다른 글
[JS프로젝트] 5. Sidebar 만들기 (0) | 2023.05.15 |
---|---|
[JS프로젝트] 4. Navbar 만들기 (0) | 2023.05.12 |
[JS프로젝트] 2. 버튼으로 숫자 카운트 (0) | 2023.05.03 |
[JS프로젝트] 1. 배경색상 랜덤하게 만들기 _ 230419(수) (0) | 2023.04.19 |