Html2CanvasLibArea
by ST4R
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>html2canvas</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f3f3f3;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.content {
background-color: #00a8f60f;
width: 700px;
height: 393.75px; /* 16:9 aspect ratio */
padding: 20px;
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.avatar {
display: flex;
align-items: center;
gap: 10px;
}
.nickname {
color: black;
font-size: 18px;
}
.title {
font-size: 24px;
color: black;
text-align: center;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
margin: 10px 0;
}
.title div {
text-align: center;
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: auto;
}
.category {
color: black;
font-size: 14px;
}
.footer {
display: flex;
justify-content: space-between;
}
.logo img {
width: 50px;
height: 50px;
}
.actions {
margin-top: 20px;
}
.base64-link {
width: 100%;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="content" id="capture">
...