|
10 | 10 | { |
11 | 11 | <h1 class="section-title">@_localizer["themes"]</h1> |
12 | 12 | <div class="section-content"> |
13 | | - <div class="row themes"> |
14 | | - <div class="col-md-6 col-lg-4"> |
15 | | - <div class="themes-item"> |
16 | | - <div class="themes-cover"> |
17 | | - <img src="@CurrentTheme.Cover" class="themes-img" alt="@CurrentTheme.Title"> |
18 | | - </div> |
19 | | - <div class="themes-details"> |
20 | | - <div class="themes-title">@CurrentTheme.Title (@_localizer["current"])</div> |
21 | | - <ul class="themes-info"> |
22 | | - <li class="themes-info-item">@_localizer["developer"] <a href="#">John Doe</a></li> |
23 | | - <li class="themes-info-item">@_localizer["version"] 2.1</li> |
24 | | - </ul> |
25 | | - <a href="/admin/settings/customize/" class="btn btn-blogifier btn-block">@_localizer["customize"]</a> |
26 | | - </div> |
| 13 | + <div class="themes"> |
| 14 | + <div class="themes-item d-flex"> |
| 15 | + <img src="@CurrentTheme.Cover" class="themes-thumbnail" alt="@CurrentTheme.Title"> |
| 16 | + <!-- 4:5 --> |
| 17 | + <!-- 1024:1280 --> |
| 18 | + <!-- 1600:2000 --> |
| 19 | + <div class="themes-info"> |
| 20 | + <h3 class="themes-title">@CurrentTheme.Title (@_localizer["current"])</h3> |
| 21 | + <ul class="themes-meta d-flex"> |
| 22 | + <li class="themes-meta-item">@_localizer["version"] 2.1</li> |
| 23 | + <li class="themes-meta-item">@_localizer["by"] <a href="#">John Doe</a></li> |
| 24 | + </ul> |
| 25 | + <p class="themes-desc">This is the default theme that comes with the Blogifier 3.0 There are some customization you might enjoy.</p> |
| 26 | + <a class="btn btn-blogifier px-4" href="/admin/settings/customize/">@_localizer["customize"]</a> |
27 | 27 | </div> |
28 | 28 | </div> |
29 | 29 | @foreach (var item in Themes) |
30 | 30 | { |
31 | | - <div class="col-md-6 col-lg-4"> |
32 | | - <div class="themes-item"> |
33 | | - <div class="themes-cover"> |
34 | | - <img src="@item.Cover" class="themes-img" alt="@item.Title"> |
35 | | - </div> |
36 | | - <div class="themes-details"> |
37 | | - <div class="themes-title">@item.Title</div> |
38 | | - <ul class="themes-info"> |
39 | | - <li class="themes-info-item">@_localizer["developer"] <a href="#">John Doe</a></li> |
40 | | - <li class="themes-info-item">@_localizer["version"] 2.1</li> |
41 | | - </ul> |
42 | | - <div class="d-flex"> |
43 | | - <button type="button" class="btn btn-outline-default flex-grow-1 me-2" @onclick="()=> SelectTheme(item.Title)" @onclick:preventDefault>@_localizer["select"]</button> |
44 | | - <button type="button" class="btn btn-outline-default me-2" title="@_localizer["delete"]"> |
45 | | - <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16"> |
46 | | - <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z" /> |
47 | | - <path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z" /> |
48 | | - </svg> |
49 | | - </button> |
50 | | - <button type="button" class="btn btn-outline-default" data-bs-toggle="modal" data-bs-target="#themeInfo" title="@_localizer["info"]"> |
51 | | - <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16"> |
52 | | - <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> |
53 | | - <path d="M8.93 6.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/> |
54 | | - </svg> |
55 | | - </button> |
56 | | - </div> |
| 31 | + <div class="themes-item d-flex"> |
| 32 | + <img src="@item.Cover" class="themes-thumbnail" alt="@item.Title"> |
| 33 | + <div class="themes-info"> |
| 34 | + <div class="themes-title">@item.Title</div> |
| 35 | + <ul class="themes-meta d-flex"> |
| 36 | + <li class="themes-meta-item">@_localizer["version"] 2.1</li> |
| 37 | + <li class="themes-meta-item">@_localizer["by"] <a href="#">John Doe</a></li> |
| 38 | + </ul> |
| 39 | + <p class="themes-desc">This is the default theme that comes with the Blogifier 3.0 There are some customization you might enjoy.</p> |
| 40 | + <div class="d-flex"> |
| 41 | + <button type="button" class="btn btn-default me-2" @onclick="()=> SelectTheme(item.Title)" @onclick:preventDefault>@_localizer["set-current-theme"]</button> |
| 42 | + <button type="button" class="btn btn-default me-2" title="@_localizer["delete"]"> |
| 43 | + <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16"> |
| 44 | + <path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z" /> |
| 45 | + <path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4L4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z" /> |
| 46 | + </svg> |
| 47 | + </button> |
57 | 48 | </div> |
58 | 49 | </div> |
59 | 50 | </div> |
|
0 commit comments