add antendance

This commit is contained in:
nik
2025-09-22 22:41:00 +03:00
parent ae3f1c301e
commit adcb77aa47
3 changed files with 120 additions and 7 deletions

58
attendance/index.html Normal file
View File

@@ -0,0 +1,58 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Attendance</title>
<style>
html,
body {
height: 100%;
margin: 0;
}
body {
display: flex;
min-height: 100vh;
background: #0b1220;
}
.container {
flex: 1;
display: flex;
flex-direction: column;
}
.wrapper {
flex: 1;
display: flex;
}
iframe {
border: 0;
width: 100%;
height: 100vh;
background: #fff;
}
.header {
padding: 12px 16px;
color: #e6edf3;
font-family:
system-ui,
-apple-system,
Segoe UI,
Roboto,
Ubuntu,
Cantarell,
Noto Sans,
sans-serif;
}
</style>
</head>
<body>
<div class="container">
<div class="header">Attendance Sheet</div>
<div class="wrapper">
<iframe
src="https://docs.google.com/spreadsheets/d/e/2PACX-1vSYaal3P7aplc7kuJj8zbeXboJjbos69DJyyxXu8JUCArWSPDCeubqMnmAAg_LFAZ8t-L_Pkpbv1MFG/pubhtml?gid=2023471118&amp;single=true&amp;widget=true&amp;headers=false"
></iframe>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,58 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Submit Attendance</title>
<style>
html,
body {
height: 100%;
margin: 0;
}
body {
display: flex;
min-height: 100vh;
background: #0b1220;
}
.container {
flex: 1;
display: flex;
flex-direction: column;
}
.wrapper {
flex: 1;
display: flex;
}
iframe {
border: 0;
width: 100%;
height: 100vh;
}
.header {
padding: 12px 16px;
color: #e6edf3;
font-family:
system-ui,
-apple-system,
Segoe UI,
Roboto,
Ubuntu,
Cantarell,
Noto Sans,
sans-serif;
}
</style>
</head>
<body>
<div class="container">
<div class="header">Submit Attendance</div>
<div class="wrapper">
<iframe
src="https://docs.google.com/forms/d/e/1FAIpQLSf3qmcbINKS78SzDoI1aAYSNlSLufVD0PboHxGjMjoxXuhTjw/viewform?embedded=true"
allowfullscreen
></iframe>
</div>
</div>
</body>
</html>

View File

@@ -2,11 +2,8 @@
set -euo pipefail
HOST="${1:-}"
DEST="${2:-}"
TMP="/tmp/masha_site_$(date +%s)"
mkdir -p "$TMP"
cp -a index.html "$TMP/index.html"
ssh -o StrictHostKeyChecking=no "$HOST" "mkdir -p '$DEST'"
scp -q "$TMP/index.html" "$HOST":"$DEST/.index.html.new"
ssh -o StrictHostKeyChecking=no "$HOST" "mv '$DEST/.index.html.new' '$DEST/index.html'"
rm -rf "$TMP"
TMP="$DEST.new"
ssh -o StrictHostKeyChecking=no "$HOST" "rm -rf '$TMP' && mkdir -p '$TMP'"
tar -cz --exclude .git --exclude Jenkinsfile --exclude deploy -C . . | ssh -o StrictHostKeyChecking=no "$HOST" "tar -xz -C '$TMP'"
ssh -o StrictHostKeyChecking=no "$HOST" "mkdir -p '$DEST'; rm -rf '${DEST}.prev'; mv '$DEST' '${DEST}.prev' 2>/dev/null || true; mv '$TMP' '$DEST'"