Refactor streak modal into a single card with top border-b iframe animation and bottom greetings, daily check-in Snapchat-like streak update/reset logic

This commit is contained in:
2026-07-10 14:29:34 +05:30
parent 96cf5f6dc1
commit 89c704c02c
5 changed files with 109 additions and 45 deletions

View File

@@ -19,9 +19,13 @@ def port_html():
body::after {
display: none !important;
}
#stage, .hint {
background: transparent !important;
box-shadow: none !important;
.stage {
height: 280px !important;
width: 100% !important;
max-width: 100% !important;
padding: 0 !important;
gap: 0 !important;
justify-content: center !important;
}
.count, .panel, .hint {
display: none !important;
@@ -54,6 +58,9 @@ def port_html():
html = html.replace("const sad = target<5;", "const sad = target<=2;")
html = html.replace("Math.max(target,5)/5", "Math.max(target,3)/3")
html = html.replace("(4 - target) / 3", "(3 - target) / 3")
# 5. Adjust badge size from 230px to 190px
html = html.replace("--badge:230px;", "--badge:190px;")
with open(dest_path, 'w', encoding='utf-8') as f:
f.write(html)