Skip to content

Commit

Permalink
feat: 루트 페이지 AC 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Jan 26, 2024
1 parent 74fec89 commit 0c18e43
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ export class AppService {
const result = await this.pokerService.calc(recentPokerId);
let resultHtml = `
<style>
img {
width: 100px;
height: 100px;
border-radius: 50%;
border-color: black;
}
td, th {
text-align: left;
vertical-align: top;
Expand All @@ -46,7 +40,10 @@ export class AppService {
}
resultHtml += `<td>`;
const user = result.result[handle];
resultHtml += `<img src="${user.profileImage}" alt="프로필 사진"> <h2>${handle}</h2>`;
if (user.goal <= user.point) {
resultHtml += `<img src="https://static.solved.ac/logo.svg" alt="solved.ac" width="50px" style="float: right">`;
}
resultHtml += `<img src="${user.profileImage}" alt="프로필 사진" width="100px" style="border-radius: 50%; border-color: black"> <h2>${handle}</h2>`;
resultHtml += `<h3>목표: ${user.goal}, 점수: ${user.point}</h3>`;
resultHtml += `<details><summary>${user.problems.length} 문제</summary>`;
resultHtml += '<ul>';
Expand Down

0 comments on commit 0c18e43

Please sign in to comment.