|
| 1 | +<!-- BEGIN_MODULE Calendar_Year id="{{module_id}}" --> |
| 2 | +<div> |
| 3 | + @include("/admin/module/setting.html") |
| 4 | + |
| 5 | + <div class="flex items-center mb-10"> |
| 6 | + <h2 class="text-gray-900 font-bold text-2xl"><!-- BEGIN_IF [%{DATE_YEAR}/nem] -->%{DATE_YEAR}<!-- ELSE -->%{Y}<!-- END_IF -->年</h2> |
| 7 | + |
| 8 | + <ul class="flex items-center gap-x-2 ml-4 text-indigo-600"> |
| 9 | + <!-- BEGIN prevLink --><li> |
| 10 | + <a href="{url}" class="flex items-center justify-center w-5 h-5" title="前年へ"> |
| 11 | + <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="size-4"> |
| 12 | + <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5" /> |
| 13 | + </svg> |
| 14 | + </a> |
| 15 | + </li><!-- END prevLink --> |
| 16 | + <!-- BEGIN nextLink --><li> |
| 17 | + <a href="{url}" class="flex items-center justify-center w-5 h-5" title="翌年へ"> |
| 18 | + <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="size-4"> |
| 19 | + <path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5" /> |
| 20 | + </svg> |
| 21 | + </a> |
| 22 | + </li><!-- END nextLink --> |
| 23 | + </ul> |
| 24 | + </div> |
| 25 | + <div class="text-gray-900"> |
| 26 | + <!-- BEGIN unit:loop --> |
| 27 | + <div class="grid gap-8 grid-cols-[repeat(auto-fill,minmax(308px,1fr))]"> |
| 28 | + <!-- BEGIN month:loop --> |
| 29 | + <div> |
| 30 | + <h3 class="text-gray-900 text-lg font-bold">{month}月</h3> |
| 31 | + <div class="grid grid-cols-7 mt-4" aria-hidden="true"> |
| 32 | + <!-- BEGIN weekLabel:loop --> |
| 33 | + <div class="text-xs font-medium text-center [&:nth-child(n+6)]:text-red-600">{label}</div> |
| 34 | + <!-- END weekLabel:loop --> |
| 35 | + </div> |
| 36 | + <div class="mt-4"> |
| 37 | + <!-- BEGIN week:loop --> |
| 38 | + <div class="grid grid-cols-7"> |
| 39 | + <!-- BEGIN day:loop --> |
| 40 | + <!-- BEGIN spacer --> |
| 41 | + <div class="px-0.5 mb-1 py-1.5 [&:nth-child(n+6)]:text-red-600" aria-hidden="true"></div> |
| 42 | + <!-- END spacer --> |
| 43 | + <!-- BEGIN none --> |
| 44 | + <div class="flex items-center justify-center px-0.5 py-1.5 text-sm text-center [&:nth-child(n+6)]:text-red-600"> |
| 45 | + <span class="flex items-center justify-center w-7 h-7">{day}</span> |
| 46 | + </div> |
| 47 | + <!-- END none --> |
| 48 | + <!-- BEGIN link --> |
| 49 | + <div class="flex items-center justify-center px-0.5 py-1.5 text-sm text-center [&:nth-child(n+6)]:text-red-600"> |
| 50 | + <a href="{url}" class="flex items-center justify-center w-7 h-7 rounded-full cursor-pointer bg-gray-100 hover:bg-gray-200" aria-label="{day}日の記事一覧を表示する"> |
| 51 | + <span>{day}</span> |
| 52 | + </a> |
| 53 | + </div> |
| 54 | + <!-- END link --> |
| 55 | + <!-- END day:loop --> |
| 56 | + </div> |
| 57 | + <!-- END week:loop --> |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + <!-- END month:loop --> |
| 61 | + </div> |
| 62 | + <!-- END unit:loop --> |
| 63 | +</div> |
| 64 | +<!-- END_MODULE Calendar_Year --> |
0 commit comments