Spaces:
Running
Running
make the logo square - Follow Up Deployment
Browse files- README.md +7 -5
- index.html +178 -19
- prompts.txt +4 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: office-tools
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: pink
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,178 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>PRL Date Calculator</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.glow-box {
|
| 11 |
+
box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
|
| 12 |
+
}
|
| 13 |
+
.floating {
|
| 14 |
+
animation: floating 3s ease-in-out infinite;
|
| 15 |
+
}
|
| 16 |
+
@keyframes floating {
|
| 17 |
+
0% { transform: translateY(0px); }
|
| 18 |
+
50% { transform: translateY(-10px); }
|
| 19 |
+
100% { transform: translateY(0px); }
|
| 20 |
+
}
|
| 21 |
+
</style>
|
| 22 |
+
</head>
|
| 23 |
+
<body class="bg-gradient-to-br from-blue-50 to-indigo-100 min-h-screen">
|
| 24 |
+
<div class="container mx-auto px-4 py-12">
|
| 25 |
+
<div class="max-w-2xl mx-auto bg-white rounded-xl glow-box overflow-hidden transition-all duration-300 hover:shadow-xl">
|
| 26 |
+
<div class="p-8">
|
| 27 |
+
<div class="text-center mb-8">
|
| 28 |
+
<div class="flex justify-center mb-4">
|
| 29 |
+
<img src="https://dss.gov.bd/wp-content/uploads/2021/04/dss-logo-1.png"
|
| 30 |
+
alt="Department of Social Services Logo"
|
| 31 |
+
class="w-16 h-16 object-contain">
|
| 32 |
+
</div>
|
| 33 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">PRL Date Calculator</h1>
|
| 34 |
+
<p class="text-gray-600">Calculate your Pension Release Date (59th birthday - 1 day)</p>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
<div class="mb-8">
|
| 38 |
+
<label for="dob" class="block text-sm font-medium text-gray-700 mb-2">
|
| 39 |
+
<i class="fas fa-calendar-day mr-2 text-indigo-500"></i>Date of Birth
|
| 40 |
+
</label>
|
| 41 |
+
<input type="date" id="dob"
|
| 42 |
+
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition">
|
| 43 |
+
</div>
|
| 44 |
+
|
| 45 |
+
<button id="calculateBtn"
|
| 46 |
+
class="w-full bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-4 rounded-lg transition duration-300 flex items-center justify-center mb-6">
|
| 47 |
+
<i class="fas fa-calculator mr-2"></i> Calculate PRL Date
|
| 48 |
+
</button>
|
| 49 |
+
|
| 50 |
+
<div id="resultContainer" class="hidden bg-indigo-50 border-l-4 border-indigo-500 p-4 rounded-r-lg">
|
| 51 |
+
<h3 class="font-semibold text-indigo-800 mb-2">
|
| 52 |
+
<i class="fas fa-info-circle mr-2"></i>Your PRL Date Details
|
| 53 |
+
</h3>
|
| 54 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
| 55 |
+
<div class="bg-white p-3 rounded-lg shadow-sm">
|
| 56 |
+
<p class="text-sm text-gray-500">Date of Birth</p>
|
| 57 |
+
<p id="dobDisplay" class="font-medium text-gray-800"></p>
|
| 58 |
+
</div>
|
| 59 |
+
<div class="bg-white p-3 rounded-lg shadow-sm">
|
| 60 |
+
<p class="text-sm text-gray-500">59th Birthday</p>
|
| 61 |
+
<p id="birthday59th" class="font-medium text-gray-800"></p>
|
| 62 |
+
</div>
|
| 63 |
+
</div>
|
| 64 |
+
<div class="mt-4 bg-gradient-to-r from-indigo-100 to-blue-100 p-4 rounded-lg">
|
| 65 |
+
<p class="text-sm text-indigo-600 font-semibold">
|
| 66 |
+
<i class="fas fa-calendar-check mr-2"></i>PRL Date
|
| 67 |
+
</p>
|
| 68 |
+
<p id="prlDate" class="text-2xl font-bold text-indigo-800 mt-1"></p>
|
| 69 |
+
<p id="timeLeft" class="text-sm text-indigo-600 mt-2"></p>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div id="errorMessage" class="hidden mt-4 bg-red-50 border-l-4 border-red-500 p-4 rounded-r-lg">
|
| 74 |
+
<p class="text-red-700 flex items-center">
|
| 75 |
+
<i class="fas fa-exclamation-circle mr-2"></i>
|
| 76 |
+
<span id="errorText"></span>
|
| 77 |
+
</p>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
<div class="bg-gray-50 px-8 py-4 text-center text-sm text-gray-500">
|
| 81 |
+
<i class="fas fa-info-circle mr-1"></i> PRL Date = 59th Birthday - 1 day
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<script>
|
| 87 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 88 |
+
const dobInput = document.getElementById('dob');
|
| 89 |
+
const calculateBtn = document.getElementById('calculateBtn');
|
| 90 |
+
const resultContainer = document.getElementById('resultContainer');
|
| 91 |
+
const errorMessage = document.getElementById('errorMessage');
|
| 92 |
+
const dobDisplay = document.getElementById('dobDisplay');
|
| 93 |
+
const birthday59th = document.getElementById('birthday59th');
|
| 94 |
+
const prlDate = document.getElementById('prlDate');
|
| 95 |
+
const timeLeft = document.getElementById('timeLeft');
|
| 96 |
+
const errorText = document.getElementById('errorText');
|
| 97 |
+
|
| 98 |
+
calculateBtn.addEventListener('click', calculatePRLDate);
|
| 99 |
+
|
| 100 |
+
function calculatePRLDate() {
|
| 101 |
+
// Hide previous results/errors
|
| 102 |
+
resultContainer.classList.add('hidden');
|
| 103 |
+
errorMessage.classList.add('hidden');
|
| 104 |
+
|
| 105 |
+
const dob = dobInput.value;
|
| 106 |
+
|
| 107 |
+
if (!dob) {
|
| 108 |
+
showError('Please enter your date of birth');
|
| 109 |
+
return;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
const dobDate = new Date(dob);
|
| 113 |
+
const today = new Date();
|
| 114 |
+
|
| 115 |
+
if (dobDate > today) {
|
| 116 |
+
showError('Date of birth cannot be in the future');
|
| 117 |
+
return;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
// Calculate 59th birthday
|
| 121 |
+
const birthday59thDate = new Date(dobDate);
|
| 122 |
+
birthday59thDate.setFullYear(birthday59thDate.getFullYear() + 59);
|
| 123 |
+
|
| 124 |
+
// Calculate PRL date (59th birthday - 1 day)
|
| 125 |
+
const prlDateObj = new Date(birthday59thDate);
|
| 126 |
+
prlDateObj.setDate(prlDateObj.getDate() - 1);
|
| 127 |
+
|
| 128 |
+
// Display results
|
| 129 |
+
dobDisplay.textContent = formatDate(dobDate);
|
| 130 |
+
birthday59th.textContent = formatDate(birthday59thDate);
|
| 131 |
+
prlDate.textContent = formatDate(prlDateObj);
|
| 132 |
+
|
| 133 |
+
// Calculate time left between today and PRL date
|
| 134 |
+
const timeDiff = prlDateObj - today;
|
| 135 |
+
if (timeDiff > 0) {
|
| 136 |
+
const daysLeft = Math.ceil(timeDiff / (1000 * 60 * 60 * 24));
|
| 137 |
+
const yearsLeft = Math.floor(daysLeft / 365);
|
| 138 |
+
const monthsLeft = Math.floor((daysLeft % 365) / 30);
|
| 139 |
+
|
| 140 |
+
let timeLeftText = `In ${daysLeft} days`;
|
| 141 |
+
if (yearsLeft > 0 || monthsLeft > 0) {
|
| 142 |
+
timeLeftText = `In `;
|
| 143 |
+
if (yearsLeft > 0) {
|
| 144 |
+
timeLeftText += `${yearsLeft} year${yearsLeft > 1 ? 's' : ''}`;
|
| 145 |
+
if (monthsLeft > 0) {
|
| 146 |
+
timeLeftText += ` and `;
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
if (monthsLeft > 0) {
|
| 150 |
+
timeLeftText += `${monthsLeft} month${monthsLeft > 1 ? 's' : ''}`;
|
| 151 |
+
}
|
| 152 |
+
timeLeftText += ` (${daysLeft} days)`;
|
| 153 |
+
}
|
| 154 |
+
timeLeft.textContent = timeLeftText;
|
| 155 |
+
} else if (timeDiff === 0) {
|
| 156 |
+
timeLeft.textContent = "Today is your PRL Date!";
|
| 157 |
+
} else {
|
| 158 |
+
timeLeft.textContent = "Your PRL Date has passed";
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
resultContainer.classList.remove('hidden');
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
function formatDate(date) {
|
| 165 |
+
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
| 166 |
+
return date.toLocaleDateString('en-US', options);
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
function showError(message) {
|
| 170 |
+
errorText.textContent = message;
|
| 171 |
+
errorMessage.classList.remove('hidden');
|
| 172 |
+
// Scroll to error message
|
| 173 |
+
errorMessage.scrollIntoView({ behavior: 'smooth', block: 'center' });
|
| 174 |
+
}
|
| 175 |
+
});
|
| 176 |
+
</script>
|
| 177 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Monirbd2025/office-tools" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 178 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
write a date calculator in where i can input the date of birth, then it can calculates the prl date. prl date will be the 59th birthday-1 day. make this program
|
| 2 |
+
add department of social services of bangladesh logo
|
| 3 |
+
remove the birthday cake icon. no need of this
|
| 4 |
+
make the logo square
|