- Timestamp:
- 06/19/2026 09:49:35 AM (3 months ago)
- Branches:
- main
- Children:
- 247988e
- Parents:
- 8cdb377
- Location:
- src/views
- Files:
-
- 2 added
- 3 edited
-
pages/favorites.ejs (added)
-
pages/post.ejs (modified) (2 diffs)
-
partials/like-button.ejs (added)
-
partials/profile-sheet.ejs (modified) (1 diff)
-
partials/topnav.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post.ejs
r8cdb377 r535f955 31 31 <% } %> 32 32 </div> 33 <% if (post.status === 'published') { %> 34 <div class="post-like-row"> 35 <%- include('../partials/like-button', { post: post, likedByMe: (typeof likedByMe !== 'undefined' && likedByMe), likeCount: (typeof likeCount !== 'undefined' ? likeCount : 0), loggedIn: !!user, loginNext: _base + '/' + post.slug }) %> 36 </div> 37 <% } %> 33 38 </header> 34 39 … … 250 255 .post-content { font-family: var(--font-body, serif); font-size: 1.1rem; line-height: 1.7; color: var(--ink); } 251 256 .post-content p { margin: 1.2em 0; } 257 .post-like-row { margin-top: 1rem; } 258 .like-btn { 259 display: inline-flex; align-items: center; gap: 0.45rem; 260 padding: 0.4rem 0.85rem; border: 1px solid var(--rule); border-radius: 999px; 261 background: var(--paper-2); color: var(--ink); font: inherit; font-size: 0.95rem; 262 cursor: pointer; text-decoration: none; transition: border-color 120ms, color 120ms, background 120ms; 263 } 264 .like-btn:hover { border-color: var(--accent); } 265 .like-btn .like-heart { font-size: 1.1rem; line-height: 1; } 266 .like-btn.is-liked { border-color: var(--accent); color: var(--accent); } 267 .like-btn.is-liked .like-heart { color: var(--accent); } 268 .like-btn .like-count { font-variant-numeric: tabular-nums; } 252 269 .post-content h2 { font-family: var(--font-display, serif); font-size: 1.6rem; margin: 2rem 0 1rem; } 253 270 .post-content h3 { font-family: var(--font-display, serif); font-size: 1.3rem; margin: 1.5rem 0 0.75rem; } -
src/views/partials/profile-sheet.ejs
r8cdb377 r535f955 53 53 <svg class="psi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg> 54 54 <span class="psi-label">Account</span> 55 <svg class="psi-chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg> 56 </a> 57 </li> 58 <li role="none"> 59 <a href="/favorieten" class="profile-sheet-item" role="menuitem" data-close-sheet 60 hx-get="/favorieten?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" 61 hx-push-url="/favorieten" hx-indicator="#pcms-loading"> 62 <svg class="psi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg> 63 <span class="psi-label">Favorieten</span> 55 64 <svg class="psi-chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg> 56 65 </a> -
src/views/partials/topnav.ejs
r8cdb377 r535f955 119 119 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg> 120 120 <span>Account</span> 121 </a> 122 <a href="/favorieten" role="menuitem" class="udi" 123 hx-get="/favorieten?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" 124 hx-push-url="/favorieten" hx-indicator="#pcms-loading"> 125 <svg class="udi-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg> 126 <span>Favorieten</span> 121 127 </a> 122 128 <% if (typeof canSeeBeheer !== 'undefined' && canSeeBeheer) { %>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)