Skip to content

Commit

Permalink
chore: 프로필 전환/편집 페이지
Browse files Browse the repository at this point in the history
header 작동 변경 및 font 에러 주석 처리

Ref: #42
  • Loading branch information
uniS2 committed Aug 1, 2023
1 parent ab2af7a commit a683395
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions client/js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ import {
typeError,
} from "../lib/index.js";

//# 헤더 처리

// rendering
const profileList = getNode(".profile__lists");

async function renderProfile(url = "http://localhost:3000/users") {
try {
const users = (await tiger.get(url)).data;

//! header 처리
// include 땡겨오면 none 해줄게!!
getNode("nav").style.display = "none";

if (!users.length) return;
if (!isString(url))
typeError("함수 renderProfile의 매개변수는 문자이어야 합니다.");
Expand Down
4 changes: 4 additions & 0 deletions client/js/profile_select.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ async function renderProfileSelect(url = "http://localhost:3000/users") {
try {
const users = (await tiger.get(url)).data;

//! header 처리
// include 땡겨오면 none 해줄게!!
getNode("nav").style.display = "none";

if (!users.length) return;
if (!isString(url))
typeError("함수 renderProfile의 매개변수는 문자이어야 합니다.");
Expand Down
4 changes: 2 additions & 2 deletions client/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>TAING - 프로필 편집</title>
<link
<!-- <link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm"
crossorigin="anonymous"
/>
/> -->
<link
rel="stylesheet"
crossorigin
Expand Down
4 changes: 2 additions & 2 deletions client/profile_select.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>TAING - 프로필 선택</title>
<link
<!-- <link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm"
crossorigin="anonymous"
/>
/> -->
<link
rel="stylesheet"
crossorigin
Expand Down

0 comments on commit a683395

Please sign in to comment.