💖💌^_^
از بامزه بودن و قابل تحمل کردن درس های سخت رشته میتونیم به زبان html پناه ببرید .
برای درست کردن قلب love you فقط کافیه کد زیر رودر هر برنامه ی کددهی که دارید مثلا vscode کپی کنید و برای پارتنر یا کسی که دوسش دارید بفرستید. 💖🔗code/HTML:
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<title>Heart</title>
<style>
body {
margin: 0;
background: #000;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
#heart {
position: relative;
width: 600px;
height: 600px;
}
.love {
position: absolute;
color: #ffb6c1;
font-family: Arial, sans-serif;
font-size: 11px;
font-weight: bold;
white-space: nowrap;
}
</style>
</head>
<body>
<div id="heart"></div>
<script>
const heart = document.getElementById("heart");
const centerX = 300;
const centerY = 300;
const scale = 17;
for (let t = 0; t < Math.PI * 2; t += 0.012) {
const x = 16 * Math.pow(Math.sin(t), 3);
const y = -(13 * Math.cos(t)
- 5 * Math.cos(2 * t)
- 2 * Math.cos(3 * t)
- Math.cos(4 * t));
const love = document.createElement("span");
love.className = "love";
love.innerText = "I love you";
love.style.left =
(centerX + x * scale) + "px";
love.style.top =
(centerY + y * scale) + "px";
love.style.transform =
"translate(-50%, -50%)";
heart.appendChild(love);
}
</script>
</body>
</html>
🔹️انجمن علمی دانشجویی فناوری اطلاعات سلامت علوم پزشکی جندی شاپور اهواز