diff --git a/web/templates/assignments/statistics.html b/web/templates/assignments/statistics.html index b774e76..b012d06 100644 --- a/web/templates/assignments/statistics.html +++ b/web/templates/assignments/statistics.html @@ -44,7 +44,62 @@ .stats-table td:first-child { min-width: 120px; } + + #shareCard { + width: 600px; + height: 315px; + position: fixed; + left: -9999px; + top: 0; + background: linear-gradient(135deg, #005bea 0%, #00c6fb 100%); + padding: 2rem; + color: white; + border-radius: 12px; + display: flex; + flex-direction: column; + justify-content: space-between; + font-family: 'Inter', system-ui, -apple-system, sans-serif; + } + + #shareCard .card-title { + font-size: 1.5rem; + font-weight: bold; + opacity: 0.9; + } + + #shareCard .rate-display { + font-size: 5rem; + font-weight: bold; + line-height: 1; + margin: 1rem 0; + } + + #shareCard .stats-row { + display: flex; + justify-content: space-around; + background: rgba(255, 255, 255, 0.1); + border-radius: 8px; + padding: 1rem; + backdrop-filter: blur(5px); + } + + #shareCard .stat-item { + text-align: center; + } + + #shareCard .stat-label { + font-size: 0.8rem; + opacity: 0.8; + display: block; + margin-bottom: 0.2rem; + } + + #shareCard .stat-value { + font-size: 1.4rem; + font-weight: bold; + } + {{end}} {{define "content"}} @@ -144,8 +199,11 @@
課題を登録して科目を設定すると、ここに統計が表示されます。