728x90
SMALL
Navbar 만들기, todo 리스트 만들기
※ 304 Not Modified 에러 시
이미지, 파일 등이 캐싱되어 있기에 추가적으로 캐시를 진행하지 않는다.
해결방법은?
로컬 캐시를 지워준다.
크롬 브라우저 사용 시 설정 >> 개인 정보 보호 및 보안 >> 인터넷 사용 기록 삭제 >> 캐시 된 이미지 및 파일 삭제
위 방법으로 해결이 안 된다면?
크롬 브라우저 시크릿 모드로 해보자
1. Navbar 생성
<head>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', path='/todo/css/bootstrap.css') }}">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<!-- navbar 생성-->
<div>
<nav class="navbar navbar-expand-md navbar-dark main-color fixed-top">
<a class="navbar-brand" href="#">Todo App</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home </a>
</li>
</ul>
</div>
</nav>
</div>
2. todo 리스트 만들기
<!--todo list 만들기-->
<div class="container">
<div class="card text-center">
<!--상단제목-->
<div class="card-header">
Your Todos!
</div>
<!--하단제목-->
<div class="card-body">
<h5 class="card-title">List of your Todos!</h5>
<p class="card-text">Information regarding stuff that needs to be complete</p>
<!--테이블 만들기-->
<table class="table table-hover">
<thead>
<tr>
<!--해당 셀이 column(열)-->
<th scope="col">Actions</th>
<th scope="col">Info</th>
<th scope="col">#</th>
</tr>
</thead>
<!--3가지의 다른 데이터-->
<tbody>
<!--1번 section-->
<tr class="pointer">
<td>1</td>
<td>Take out the trash</td>
<td>
<button type="button" class="btn btn-success">Complete</button>
<button type="button" class="btn btn-danger">Delete</button>
</td>
</tr>
<!--2번 section-->
<tr class="pointer">
<td>2</td>
<td>Take out the trash</td>
<td>
<button type="button" class="btn btn-success">Complete</button>
<button type="button" class="btn btn-danger">Delete</button>
</td>
</tr>
<!--3번 section-->
<tr class="pointer" >
<td>3</td>
<td >Take out the trash </td>
<td>
<button type="button" class="btn btn-success">Complete</button>
<button type="button" class="btn btn-danger">Delete</button>
</td>
</tr>
</tbody>
</table>
<a href="#" class="btn btn-primary">Add a new Todo!</a>
</div>
</div>
</div>
</body>
728x90
SMALL
'Develop > FastAPI' 카테고리의 다른 글
FastAPI 프로젝트 진행(로그인, 회원가입 프론트 구현) - 80 (0) | 2023.01.25 |
---|---|
FastAPI 프로젝트 진행(form 생성 / 수정) - 79 (0) | 2023.01.25 |
Jinja Templating 개요 - 77 (0) | 2023.01.25 |
FastAPI 프로젝트 진행(bootstrap, js 파일 추가) - 76 (0) | 2023.01.25 |
FastAPI 프로젝트 진행(CSS 및 static 폴더 구성) - 75 (0) | 2023.01.25 |