Changes for page 生徒会Wiki

Last modified by Super Admin on 2026/04/01 16:27

From version Icon 10.1 Icon
edited by XWikiGuest
on 2026/03/06 16:20
Change comment: There is no comment for this version
To version Icon 25.1 Icon
edited by XWikiGuest
on 2026/03/09 11:57
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -1,4 +1,6 @@
1 1  {{velocity}}
2 +## ユーザーごとに異なるコンテンツ(ゲストCTA等)があるためキャッシュ無効化
3 +#set($discard = $xcontext.put('rendering.cache.disabled', true))
2 2  ## メンテナンスバナー
3 3  {{include reference="SeitokaiCode.MaintenanceBannerInclude" /}}
4 4  
... ... @@ -9,6 +9,27 @@
9 9   <p>全国の学校の生徒会活動を共有するプラットフォーム</p>
10 10  </div>
11 11  
14 +#if($xcontext.user == "XWiki.XWikiGuest")
15 +<div class="home-guest-cta">
16 + <div class="home-guest-cta-inner">
17 + <div class="home-guest-cta-content">
18 + <h2 class="home-guest-cta-title">アカウントを作成して、全国の生徒会と情報を共有しましょう</h2>
19 + <p class="home-guest-cta-desc">ログインすると、自分の学校ページの作成・編集や活動報告の投稿ができるようになります。</p>
20 + </div>
21 + <div class="home-guest-cta-buttons">
22 + <a href="$xwiki.getURL('XWiki.XWikiLogin', 'login', 'loginLink=1')" class="btn-guest-register">
23 + <svg class="login-icon" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2"/><circle cx="8.5" cy="7" r="4"/><line x1="20" y1="11" x2="20" y2="17"/><line x1="17" y1="14" x2="23" y2="14"/></svg>
24 + アカウントを作成
25 + </a>
26 + <a href="$xwiki.getURL('XWiki.XWikiLogin', 'login')" class="btn-guest-login">
27 + <svg class="login-icon" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
28 + ログイン
29 + </a>
30 + </div>
31 + </div>
32 +</div>
33 +#end
34 +
12 12  <div class="home-cards">
13 13   <a href="$xwiki.getURL('Schools.WebHome', 'view')" class="home-card">
14 14   <div class="home-card-icon"><svg class="ico" viewBox="0 0 24 24"><path d="M4 19.5A2.5 2.5 0 016.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z"/></svg></div>
... ... @@ -37,7 +37,7 @@
37 37   #end
38 38  </div>
39 39  
40 -<div style="margin-top:32px;">
63 +<div class="home-recent-section">
41 41   <h2 class="home-section-title">最近の更新</h2>
42 42   #set($recentDocs = $xwiki.searchDocuments("where (doc.fullName like 'Main.%' or doc.fullName like 'Schools.%') and doc.fullName not like '%.WebPreferences' order by doc.date desc", 10))
43 43   #if($recentDocs.size() > 0)
... ... @@ -52,10 +52,10 @@
52 52   #end
53 53   </ul>
54 54   #else
55 - <div style="text-align:center;padding:40px 20px;color:var(--text-light);">
56 - <svg style="width:3em;height:3em;display:block;margin:0 auto 12px;opacity:0.4;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
78 + <div class="home-empty-state">
79 + <svg class="home-empty-icon" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
57 57   <p>まだ更新はありません。</p>
58 - <p style="font-size:0.9em;">学校ページを作成して、活動を共有しましょう!</p>
81 + <p class="home-empty-sub">学校ページを作成して、活動を共有しましょう!</p>
59 59   </div>
60 60   #end
61 61  </div>