728x90
프로젝트 디렉터리 구조
fastapi | |||||
todoapp | |||||
main.py database.py models.py todos.db |
templates | static | routers | ||
todo | |||||
css | js | ||||
home.html | base.css bootstrap.css |
bootstrap.js jquery-slim.js popper.js |
auth.py todos.py |
bootstrap 파일 추가, javascript 파일 추가
1. base.css 수정
body {
background: #fafafa;
color: #33333a;
padding-top: 70px;
}
h1, h2, h3, h4, h5, h6 {
color: #323232;
}
.main-color {
background-color: #0e76a8 ;
}
.strike-through-td {
text-decoration: line-through;
}
2. css 디렉터리 하위에 bootstrap.css 추가
3. js 디렉터리 하위에 파일 추가
bootstrap.js
0.13MB
jquery-slim.js
0.25MB
popper.js
0.02MB
728x90
SMALL
'Develop > FastAPI' 카테고리의 다른 글
FastAPI 프로젝트 진행(Navbar, Table 프론트 구현) - 78 (0) | 2023.01.25 |
---|---|
Jinja Templating 개요 - 77 (0) | 2023.01.25 |
FastAPI 프로젝트 진행(CSS 및 static 폴더 구성) - 75 (0) | 2023.01.25 |
FastAPI 프로젝트 진행(시작, HTML 렌더링) - 74 (0) | 2023.01.25 |
FastAPI Alembic 추가 실습하기 - 73 (0) | 2023.01.24 |