보라코딩
하트 이모티콘 (+ 부트스트랩) 본문
부트스트랩 이용해서 하트 이모티콘 만들었다 ㅎㅎ

<div class="col-auto mx-1">
<span class="border">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-heart" viewBox="0 0 16 16">
<path d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z"/>
</svg>
</span>
</div>
<span class="border">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-heart" viewBox="0 0 16 16">
<path d="m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 1.143c.06.055.119.112.176.171a3.12 3.12 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z"/>
</svg>
</span>
</div>
.border {
border: 1px solid #dddddd;
border-radius: 5px;
padding: 5px;
width: 37px;
height: 37px;
display: flex;
justify-content: center;
align-items: center;
color: #8E48C7;
}
.border svg {
width: 20px;
height: 20px;
fill: currentColor;
}
border: 1px solid #dddddd;
border-radius: 5px;
padding: 5px;
width: 37px;
height: 37px;
display: flex;
justify-content: center;
align-items: center;
color: #8E48C7;
}
.border svg {
width: 20px;
height: 20px;
fill: currentColor;
}
'코딩 > Spring' 카테고리의 다른 글
Day110_230605 스프링부트 iamport 이니시스 통합인증 (0) | 2023.06.05 |
---|---|
스프링부트 시큐리티 (0) | 2023.06.05 |
부트스트랩 carousel (회전목마, 슬라이드쇼) (0) | 2023.06.02 |
Day108_230601_페이징처리... 하........... (0) | 2023.06.01 |
별점 평가하는 화면 (부트스트랩 + 보라색 사용ㅎㅎ) (0) | 2023.05.31 |