Add tuicss library
This commit is contained in:
@@ -1,132 +1,52 @@
|
|||||||
/* Chronological - Main Stylesheet */
|
/* Chronological - App-Specific Styles */
|
||||||
|
/* TuiCss provides the base styling, this file adds app-specific layout */
|
||||||
/* CSS Reset and Base Styles */
|
|
||||||
*, *::before, *::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--color-primary: #3b82f6;
|
|
||||||
--color-primary-dark: #2563eb;
|
|
||||||
--color-secondary: #64748b;
|
|
||||||
--color-success: #22c55e;
|
|
||||||
--color-danger: #ef4444;
|
|
||||||
--color-warning: #f59e0b;
|
|
||||||
|
|
||||||
--color-bg: #f8fafc;
|
|
||||||
--color-surface: #ffffff;
|
|
||||||
--color-border: #e2e8f0;
|
|
||||||
--color-text: #1e293b;
|
|
||||||
--color-text-muted: #64748b;
|
|
||||||
|
|
||||||
--spacing-xs: 0.25rem;
|
|
||||||
--spacing-sm: 0.5rem;
|
|
||||||
--spacing-md: 1rem;
|
|
||||||
--spacing-lg: 1.5rem;
|
|
||||||
--spacing-xl: 2rem;
|
|
||||||
|
|
||||||
--radius-sm: 0.25rem;
|
|
||||||
--radius-md: 0.5rem;
|
|
||||||
--radius-lg: 1rem;
|
|
||||||
|
|
||||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
||||||
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
||||||
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
||||||
|
|
||||||
--font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
||||||
--font-size-sm: 0.875rem;
|
|
||||||
--font-size-md: 1rem;
|
|
||||||
--font-size-lg: 1.25rem;
|
|
||||||
--font-size-xl: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
font-family: var(--font-family);
|
|
||||||
font-size: var(--font-size-md);
|
|
||||||
line-height: 1.5;
|
|
||||||
color: var(--color-text);
|
|
||||||
background-color: var(--color-bg);
|
|
||||||
min-height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* App Layout */
|
|
||||||
.app-header {
|
|
||||||
background-color: var(--color-primary);
|
|
||||||
color: white;
|
|
||||||
padding: var(--spacing-md) var(--spacing-lg);
|
|
||||||
box-shadow: var(--shadow-md);
|
|
||||||
}
|
|
||||||
|
|
||||||
.app-header h1 {
|
|
||||||
margin: 0;
|
|
||||||
font-size: var(--font-size-xl);
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* Main App Layout */
|
||||||
.app-main {
|
.app-main {
|
||||||
height: calc(100vh - 60px);
|
height: calc(100vh - 40px); /* Account for navbar and statusbar */
|
||||||
|
padding: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Timeline Container - Split Layout */
|
/* Timeline Container - Split Layout */
|
||||||
.timeline-container {
|
.timeline-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 350px 1fr;
|
grid-template-columns: 320px 1fr;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calendar Panel */
|
/* Calendar Panel */
|
||||||
.calendar-panel {
|
.calendar-panel {
|
||||||
background-color: var(--color-surface);
|
|
||||||
border-right: 1px solid var(--color-border);
|
|
||||||
padding: var(--spacing-lg);
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-panel .tui-window {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.calendar {
|
.calendar {
|
||||||
max-width: 320px;
|
padding: 8px;
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-header {
|
.calendar-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: var(--spacing-md);
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-header h2 {
|
.calendar-title {
|
||||||
margin: 0;
|
font-weight: bold;
|
||||||
font-size: var(--font-size-lg);
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-btn {
|
|
||||||
background: none;
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
border-radius: var(--radius-sm);
|
|
||||||
padding: var(--spacing-xs) var(--spacing-sm);
|
|
||||||
cursor: pointer;
|
|
||||||
font-size: var(--font-size-lg);
|
|
||||||
color: var(--color-text);
|
|
||||||
transition: background-color 0.2s, border-color 0.2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-btn:hover {
|
|
||||||
background-color: var(--color-bg);
|
|
||||||
border-color: var(--color-primary);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-weekdays {
|
.calendar-weekdays {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(7, 1fr);
|
grid-template-columns: repeat(7, 1fr);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: var(--font-size-sm);
|
font-size: 0.8em;
|
||||||
font-weight: 600;
|
margin-bottom: 4px;
|
||||||
color: var(--color-text-muted);
|
color: #aaa;
|
||||||
margin-bottom: var(--spacing-sm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-grid {
|
.calendar-grid {
|
||||||
@@ -141,151 +61,128 @@ html, body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: var(--color-bg);
|
|
||||||
border-radius: var(--radius-sm);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.2s;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
border: 1px solid transparent;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-day:hover {
|
.calendar-day:hover {
|
||||||
background-color: var(--color-border);
|
background-color: #00aaaa;
|
||||||
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-day.empty {
|
.calendar-day.empty {
|
||||||
background: none;
|
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-day.empty:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.calendar-day.today {
|
.calendar-day.today {
|
||||||
background-color: var(--color-primary);
|
background-color: #aa0000;
|
||||||
color: white;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-day.today:hover {
|
.calendar-day.today:hover {
|
||||||
background-color: var(--color-primary-dark);
|
background-color: #ff0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-day.has-content {
|
.calendar-day.has-content {
|
||||||
font-weight: 600;
|
font-weight: bold;
|
||||||
|
color: #ffff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.day-number {
|
.day-number {
|
||||||
font-size: var(--font-size-sm);
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.day-indicators {
|
.day-indicators {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1px;
|
gap: 1px;
|
||||||
font-size: 0.6rem;
|
font-size: 0.6em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 2px;
|
bottom: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.indicator {
|
.indicator {
|
||||||
line-height: 1;
|
color: #00ff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar-actions {
|
.calendar-actions {
|
||||||
margin-top: var(--spacing-lg);
|
margin-top: 16px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Timeline Panel */
|
/* Timeline Panel */
|
||||||
.timeline-panel {
|
.timeline-panel {
|
||||||
padding: var(--spacing-lg);
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timeline-panel .tui-window {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.timeline {
|
.timeline {
|
||||||
max-width: 800px;
|
padding: 8px;
|
||||||
margin: 0 auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-header {
|
.timeline-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: var(--spacing-lg);
|
margin-bottom: 16px;
|
||||||
padding-bottom: var(--spacing-md);
|
|
||||||
border-bottom: 2px solid var(--color-border);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-header h2 {
|
.timeline-title {
|
||||||
margin: 0;
|
font-weight: bold;
|
||||||
font-size: var(--font-size-xl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-content {
|
.timeline-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--spacing-lg);
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-day {
|
.timeline-day {
|
||||||
background-color: var(--color-surface);
|
margin-bottom: 8px;
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
box-shadow: var(--shadow-sm);
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.timeline-day-header {
|
|
||||||
background-color: var(--color-bg);
|
|
||||||
padding: var(--spacing-md) var(--spacing-lg);
|
|
||||||
border-bottom: 1px solid var(--color-border);
|
|
||||||
}
|
|
||||||
|
|
||||||
.timeline-day-header time {
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--color-primary);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-entries {
|
.timeline-entries {
|
||||||
padding: var(--spacing-md) var(--spacing-lg);
|
padding: 4px 0;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: var(--spacing-md);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-entry {
|
.timeline-entry {
|
||||||
display: flex;
|
margin-bottom: 8px;
|
||||||
gap: var(--spacing-md);
|
padding: 4px 0;
|
||||||
padding: var(--spacing-md);
|
border-bottom: 1px dotted #555;
|
||||||
background-color: var(--color-bg);
|
|
||||||
border-radius: var(--radius-md);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-icon {
|
.timeline-entry:last-child {
|
||||||
font-size: 1.5rem;
|
border-bottom: none;
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-content {
|
.entry-type {
|
||||||
flex-grow: 1;
|
margin-right: 8px;
|
||||||
min-width: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-content h4 {
|
.entry-title {
|
||||||
margin: 0 0 var(--spacing-xs);
|
margin-right: 8px;
|
||||||
font-size: var(--font-size-md);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-time {
|
.entry-time {
|
||||||
font-size: var(--font-size-sm);
|
margin-right: 8px;
|
||||||
color: var(--color-text-muted);
|
|
||||||
margin-right: var(--spacing-sm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-location {
|
.entry-location {
|
||||||
font-size: var(--font-size-sm);
|
margin-right: 8px;
|
||||||
color: var(--color-text-muted);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-description {
|
.entry-description {
|
||||||
margin: var(--spacing-sm) 0 0;
|
margin-top: 4px;
|
||||||
color: var(--color-text-muted);
|
padding-left: 8px;
|
||||||
font-size: var(--font-size-sm);
|
color: #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.diary-text {
|
.diary-text {
|
||||||
@@ -294,16 +191,15 @@ html, body {
|
|||||||
|
|
||||||
.timeline-empty {
|
.timeline-empty {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: var(--spacing-xl);
|
padding: 32px;
|
||||||
color: var(--color-text-muted);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Photo Grid */
|
/* Photo Grid */
|
||||||
.photo-grid, .photo-gallery {
|
.photo-grid, .photo-gallery {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
||||||
gap: var(--spacing-md);
|
gap: 8px;
|
||||||
margin-top: var(--spacing-sm);
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.photo-item {
|
.photo-item {
|
||||||
@@ -312,61 +208,57 @@ html, body {
|
|||||||
|
|
||||||
.photo-item img {
|
.photo-item img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 150px;
|
height: 100px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: var(--radius-md);
|
border: 1px solid #555;
|
||||||
cursor: pointer;
|
|
||||||
transition: transform 0.2s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.photo-item img:hover {
|
.photo-item img:hover {
|
||||||
transform: scale(1.02);
|
border-color: #00ffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.photo-item figcaption {
|
.photo-item figcaption {
|
||||||
font-size: var(--font-size-sm);
|
font-size: 0.8em;
|
||||||
color: var(--color-text-muted);
|
color: #aaa;
|
||||||
margin-top: var(--spacing-xs);
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Day Modal */
|
/* Day Modal */
|
||||||
.day-modal {
|
.tui-modal {
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: var(--radius-lg);
|
padding: 0;
|
||||||
box-shadow: var(--shadow-lg);
|
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
padding: 0;
|
max-height: 80vh;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.day-modal::backdrop {
|
.tui-modal::backdrop {
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
background-color: rgba(0, 0, 0, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tui-modal .tui-window {
|
||||||
|
max-height: 80vh;
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.day-detail {
|
.day-detail {
|
||||||
padding: var(--spacing-lg);
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.day-header {
|
.day-header {
|
||||||
margin-bottom: var(--spacing-lg);
|
margin-bottom: 16px;
|
||||||
padding-bottom: var(--spacing-md);
|
font-weight: bold;
|
||||||
border-bottom: 2px solid var(--color-border);
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.day-header h2 {
|
.day-content .tui-input-fieldset {
|
||||||
margin: 0;
|
margin-bottom: 16px;
|
||||||
font-size: var(--font-size-lg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-section {
|
|
||||||
margin-bottom: var(--spacing-lg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.day-section h3 {
|
|
||||||
margin: 0 0 var(--spacing-md);
|
|
||||||
font-size: var(--font-size-md);
|
|
||||||
color: var(--color-text-muted);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-list {
|
.event-list {
|
||||||
@@ -376,100 +268,51 @@ html, body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.event-item {
|
.event-item {
|
||||||
padding: var(--spacing-sm);
|
padding: 4px 0;
|
||||||
background-color: var(--color-bg);
|
border-bottom: 1px dotted #555;
|
||||||
border-radius: var(--radius-sm);
|
|
||||||
margin-bottom: var(--spacing-sm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-item strong {
|
.event-item:last-child {
|
||||||
display: block;
|
border-bottom: none;
|
||||||
margin-bottom: var(--spacing-xs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-message {
|
.empty-message {
|
||||||
color: var(--color-text-muted);
|
color: #666;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Form Elements */
|
/* Form Elements */
|
||||||
textarea {
|
|
||||||
width: 100%;
|
|
||||||
padding: var(--spacing-md);
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
border-radius: var(--radius-md);
|
|
||||||
font-family: inherit;
|
|
||||||
font-size: var(--font-size-md);
|
|
||||||
resize: vertical;
|
|
||||||
min-height: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea:focus {
|
|
||||||
outline: none;
|
|
||||||
border-color: var(--color-primary);
|
|
||||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-actions {
|
.form-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--spacing-sm);
|
gap: 8px;
|
||||||
margin-top: var(--spacing-md);
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Buttons */
|
.modal-actions {
|
||||||
.btn {
|
margin-top: 16px;
|
||||||
display: inline-flex;
|
text-align: right;
|
||||||
align-items: center;
|
}
|
||||||
justify-content: center;
|
|
||||||
padding: var(--spacing-sm) var(--spacing-md);
|
.full-width {
|
||||||
border: none;
|
width: 100%;
|
||||||
border-radius: var(--radius-md);
|
}
|
||||||
|
|
||||||
|
/* TuiCss Overrides */
|
||||||
|
.tui-no-shadow {
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tui-border-single .tui-fieldset,
|
||||||
|
.tui-fieldset.tui-border-single {
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Make input textareas work with TuiCss */
|
||||||
|
textarea.tui-input {
|
||||||
|
resize: vertical;
|
||||||
|
min-height: 100px;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: var(--font-size-sm);
|
|
||||||
font-weight: 500;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.2s, transform 0.1s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:hover {
|
|
||||||
transform: translateY(-1px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:active {
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary {
|
|
||||||
background-color: var(--color-primary);
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary:hover {
|
|
||||||
background-color: var(--color-primary-dark);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-secondary {
|
|
||||||
background-color: var(--color-border);
|
|
||||||
color: var(--color-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-secondary:hover {
|
|
||||||
background-color: var(--color-secondary);
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-danger {
|
|
||||||
background-color: var(--color-danger);
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-danger:hover {
|
|
||||||
background-color: #dc2626;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-small {
|
|
||||||
padding: var(--spacing-xs) var(--spacing-sm);
|
|
||||||
font-size: var(--font-size-sm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive Design */
|
/* Responsive Design */
|
||||||
@@ -480,13 +323,11 @@ textarea:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.calendar-panel {
|
.calendar-panel {
|
||||||
border-right: none;
|
|
||||||
border-bottom: 1px solid var(--color-border);
|
|
||||||
max-height: 50vh;
|
max-height: 50vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar {
|
.calendar-panel .tui-window {
|
||||||
max-width: none;
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -495,23 +336,3 @@ textarea:focus {
|
|||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.htmx-request::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
margin: -10px 0 0 -10px;
|
|
||||||
border: 2px solid var(--color-border);
|
|
||||||
border-top-color: var(--color-primary);
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 0.8s linear infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes spin {
|
|
||||||
to {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,20 +1,42 @@
|
|||||||
{{define "base"}}
|
{{define "base"}}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" class="tui-bg-cyan-black">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Chronological</title>
|
<title>Chronological</title>
|
||||||
|
<link rel="stylesheet" href="/static/vendor/tuicss/tuicss.css">
|
||||||
<link rel="stylesheet" href="/static/css/style.css">
|
<link rel="stylesheet" href="/static/css/style.css">
|
||||||
<script src="/static/js/htmx.min.js"></script>
|
<script src="/static/js/htmx.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body class="tui-bg-cyan-black">
|
||||||
<header class="app-header">
|
<!-- Navbar (Turbo Vision style) -->
|
||||||
<h1>Chronological</h1>
|
<nav class="tui-nav">
|
||||||
</header>
|
<ul>
|
||||||
|
<li class="tui-dropdown">
|
||||||
|
<span class="red-168-text">C</span>hronological
|
||||||
|
<div class="tui-dropdown-content">
|
||||||
|
<ul>
|
||||||
|
<li><a href="/"><span class="red-168-text">H</span>ome</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Main Content Area -->
|
||||||
<main class="app-main">
|
<main class="app-main">
|
||||||
{{template "content" .}}
|
{{template "content" .}}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
<!-- Status Bar (Turbo Vision style) -->
|
||||||
|
<div class="tui-statusbar absolute">
|
||||||
|
<ul>
|
||||||
|
<li><span class="cyan-255-text">Chronological</span> - Personal Timeline</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="/static/vendor/tuicss/tuicss.js"></script>
|
||||||
<script src="/static/js/app.js"></script>
|
<script src="/static/js/app.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -5,10 +5,20 @@
|
|||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<div class="timeline-container">
|
<div class="timeline-container">
|
||||||
<aside class="calendar-panel" id="calendar-panel">
|
<aside class="calendar-panel" id="calendar-panel">
|
||||||
{{template "calendar.html" .Calendar}}
|
<div class="tui-window">
|
||||||
|
<fieldset class="tui-fieldset">
|
||||||
|
<legend class="center">Calendar</legend>
|
||||||
|
{{template "calendar.html" .Calendar}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
<section class="timeline-panel" id="timeline-panel">
|
<section class="timeline-panel" id="timeline-panel">
|
||||||
{{template "timeline.html" .Timeline}}
|
<div class="tui-window tui-no-shadow">
|
||||||
|
<fieldset class="tui-fieldset">
|
||||||
|
<legend class="center">Timeline</legend>
|
||||||
|
{{template "timeline.html" .Timeline}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
@@ -5,18 +5,18 @@
|
|||||||
hx-get="/calendar/{{.PrevYear}}/{{.PrevMonth}}"
|
hx-get="/calendar/{{.PrevYear}}/{{.PrevMonth}}"
|
||||||
hx-target="#calendar-panel"
|
hx-target="#calendar-panel"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
class="nav-btn"
|
class="tui-button"
|
||||||
aria-label="Previous month">
|
aria-label="Previous month">
|
||||||
‹
|
«
|
||||||
</button>
|
</button>
|
||||||
<h2>{{.MonthName}} {{.Year}}</h2>
|
<span class="calendar-title">{{.MonthName}} {{.Year}}</span>
|
||||||
<button
|
<button
|
||||||
hx-get="/calendar/{{.NextYear}}/{{.NextMonth}}"
|
hx-get="/calendar/{{.NextYear}}/{{.NextMonth}}"
|
||||||
hx-target="#calendar-panel"
|
hx-target="#calendar-panel"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
class="nav-btn"
|
class="tui-button"
|
||||||
aria-label="Next month">
|
aria-label="Next month">
|
||||||
›
|
»
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -49,9 +49,9 @@
|
|||||||
<span class="day-number">{{$day}}</span>
|
<span class="day-number">{{$day}}</span>
|
||||||
{{if $content.HasContent}}
|
{{if $content.HasContent}}
|
||||||
<div class="day-indicators">
|
<div class="day-indicators">
|
||||||
{{if $content.HasEvents}}<span class="indicator event-indicator" title="Events">📅</span>{{end}}
|
{{if $content.HasEvents}}<span class="indicator" title="Events">E</span>{{end}}
|
||||||
{{if $content.HasDiary}}<span class="indicator diary-indicator" title="Diary">📝</span>{{end}}
|
{{if $content.HasDiary}}<span class="indicator" title="Diary">D</span>{{end}}
|
||||||
{{if $content.HasPhotos}}<span class="indicator photo-indicator" title="Photos">📷</span>{{end}}
|
{{if $content.HasPhotos}}<span class="indicator" title="Photos">P</span>{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
@@ -63,18 +63,26 @@
|
|||||||
hx-get="/timeline/{{.Year}}/{{.Month | printf "%d"}}"
|
hx-get="/timeline/{{.Year}}/{{.Month | printf "%d"}}"
|
||||||
hx-target="#timeline-panel"
|
hx-target="#timeline-panel"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
class="btn btn-primary">
|
class="tui-button cyan-168 white-text">
|
||||||
View Timeline
|
View Timeline
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<dialog id="day-modal" class="day-modal">
|
<dialog id="day-modal" class="tui-modal">
|
||||||
<div id="day-modal-content">
|
<div class="tui-window tui-no-shadow">
|
||||||
<!-- Day content loaded via HTMX -->
|
<fieldset class="tui-fieldset">
|
||||||
|
<legend class="center">Day Details</legend>
|
||||||
|
<button class="tui-fieldset-button" onclick="document.getElementById('day-modal').close()">
|
||||||
|
<span class="red-168-text">X</span>
|
||||||
|
</button>
|
||||||
|
<div id="day-modal-content">
|
||||||
|
<!-- Day content loaded via HTMX -->
|
||||||
|
</div>
|
||||||
|
<div class="modal-actions">
|
||||||
|
<button class="tui-button" onclick="document.getElementById('day-modal').close()">Close</button>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
<form method="dialog">
|
|
||||||
<button class="btn btn-secondary">Close</button>
|
|
||||||
</form>
|
|
||||||
</dialog>
|
</dialog>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{{define "day.html"}}
|
{{define "day.html"}}
|
||||||
<div class="day-detail">
|
<div class="day-detail">
|
||||||
<header class="day-header">
|
<div class="day-header white-255-text">
|
||||||
<h2>{{.Date.Format "Monday, January 2, 2006"}}</h2>
|
{{.Date.Format "Monday, January 2, 2006"}}
|
||||||
</header>
|
</div>
|
||||||
|
|
||||||
<div id="day-detail-content">
|
<div id="day-detail-content">
|
||||||
{{template "day_content.html" .}}
|
{{template "day_content.html" .}}
|
||||||
@@ -13,20 +13,20 @@
|
|||||||
{{define "day_content.html"}}
|
{{define "day_content.html"}}
|
||||||
<div class="day-content">
|
<div class="day-content">
|
||||||
{{/* Events Section */}}
|
{{/* Events Section */}}
|
||||||
<section class="day-section events-section">
|
<fieldset class="tui-input-fieldset">
|
||||||
<h3>📅 Events</h3>
|
<legend class="cyan-255-text">Events</legend>
|
||||||
{{if .Content.Events}}
|
{{if .Content.Events}}
|
||||||
<ul class="event-list">
|
<ul class="event-list">
|
||||||
{{range .Content.Events}}
|
{{range .Content.Events}}
|
||||||
<li class="event-item">
|
<li class="event-item">
|
||||||
<strong>{{.Title}}</strong>
|
<span class="white-255-text">{{.Title}}</span>
|
||||||
{{if not .AllDay}}
|
{{if not .AllDay}}
|
||||||
<span class="event-time">{{formatTime .Start}} - {{formatTime .End}}</span>
|
<span class="green-255-text">{{formatTime .Start}} - {{formatTime .End}}</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<span class="event-time">All day</span>
|
<span class="green-255-text">All day</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Location}}
|
{{if .Location}}
|
||||||
<span class="event-location">📍 {{.Location}}</span>
|
<span class="yellow-255-text">@ {{.Location}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Description}}
|
{{if .Description}}
|
||||||
<p class="event-description">{{.Description}}</p>
|
<p class="event-description">{{.Description}}</p>
|
||||||
@@ -37,16 +37,16 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
<p class="empty-message">No events scheduled.</p>
|
<p class="empty-message">No events scheduled.</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
</section>
|
</fieldset>
|
||||||
|
|
||||||
{{/* Diary Section */}}
|
{{/* Diary Section */}}
|
||||||
<section class="day-section diary-section">
|
<fieldset class="tui-input-fieldset">
|
||||||
<h3>📝 Journal</h3>
|
<legend class="purple-255-text">Journal</legend>
|
||||||
{{if .Content.Diary}}
|
{{if .Content.Diary}}
|
||||||
<div class="diary-display">
|
<div class="diary-display">
|
||||||
<p class="diary-text">{{.Content.Diary.Text}}</p>
|
<p class="diary-text white-255-text">{{.Content.Diary.Text}}</p>
|
||||||
<button
|
<button
|
||||||
class="btn btn-small"
|
class="tui-button"
|
||||||
data-action="toggle-diary-edit">
|
data-action="toggle-diary-edit">
|
||||||
Edit
|
Edit
|
||||||
</button>
|
</button>
|
||||||
@@ -56,18 +56,18 @@
|
|||||||
hx-post="/diary/{{formatDate .Date}}"
|
hx-post="/diary/{{formatDate .Date}}"
|
||||||
hx-target="#day-detail-content"
|
hx-target="#day-detail-content"
|
||||||
hx-swap="innerHTML">
|
hx-swap="innerHTML">
|
||||||
<textarea name="text" rows="5" placeholder="Write your thoughts...">{{.Content.Diary.Text}}</textarea>
|
<textarea name="text" class="tui-input full-width" rows="5" placeholder="Write your thoughts...">{{.Content.Diary.Text}}</textarea>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<button type="submit" class="btn btn-primary">Save</button>
|
<button type="submit" class="tui-button green-168 white-text">Save</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-secondary"
|
class="tui-button"
|
||||||
data-action="cancel-diary-edit">
|
data-action="cancel-diary-edit">
|
||||||
Cancel
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="btn btn-danger"
|
class="tui-button red-168 white-text"
|
||||||
hx-delete="/diary/{{formatDate .Date}}"
|
hx-delete="/diary/{{formatDate .Date}}"
|
||||||
hx-target="#day-detail-content"
|
hx-target="#day-detail-content"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
@@ -82,17 +82,17 @@
|
|||||||
hx-post="/diary/{{formatDate .Date}}"
|
hx-post="/diary/{{formatDate .Date}}"
|
||||||
hx-target="#day-detail-content"
|
hx-target="#day-detail-content"
|
||||||
hx-swap="innerHTML">
|
hx-swap="innerHTML">
|
||||||
<textarea name="text" rows="5" placeholder="Write your thoughts..."></textarea>
|
<textarea name="text" class="tui-input full-width" rows="5" placeholder="Write your thoughts..."></textarea>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<button type="submit" class="btn btn-primary">Save</button>
|
<button type="submit" class="tui-button green-168 white-text">Save</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{{end}}
|
{{end}}
|
||||||
</section>
|
</fieldset>
|
||||||
|
|
||||||
{{/* Photos Section */}}
|
{{/* Photos Section */}}
|
||||||
<section class="day-section photos-section">
|
<fieldset class="tui-input-fieldset">
|
||||||
<h3>📷 Photos</h3>
|
<legend class="orange-255-text">Photos</legend>
|
||||||
{{if .Content.Photos}}
|
{{if .Content.Photos}}
|
||||||
<div class="photo-gallery">
|
<div class="photo-gallery">
|
||||||
{{range .Content.Photos}}
|
{{range .Content.Photos}}
|
||||||
@@ -100,13 +100,13 @@
|
|||||||
<a href="{{.URLPath}}" target="_blank">
|
<a href="{{.URLPath}}" target="_blank">
|
||||||
<img src="{{.URLPath}}" alt="{{.Description}}" loading="lazy">
|
<img src="{{.URLPath}}" alt="{{.Description}}" loading="lazy">
|
||||||
</a>
|
</a>
|
||||||
<figcaption>{{.Description}}</figcaption>
|
{{if .Description}}<figcaption>{{.Description}}</figcaption>{{end}}
|
||||||
</figure>
|
</figure>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<p class="empty-message">No photos for this day.</p>
|
<p class="empty-message">No photos for this day.</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
</section>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
@@ -1,26 +1,31 @@
|
|||||||
{{define "diary_form.html"}}
|
{{define "diary_form.html"}}
|
||||||
<div class="diary-form">
|
<div class="diary-form">
|
||||||
<h3>Journal Entry - {{.Date.Format "January 2, 2006"}}</h3>
|
<div class="tui-window tui-no-shadow">
|
||||||
<form
|
<fieldset class="tui-fieldset">
|
||||||
hx-post="/diary/{{formatDate .Date}}"
|
<legend class="center">Journal Entry - {{.Date.Format "January 2, 2006"}}</legend>
|
||||||
hx-target="this"
|
<form
|
||||||
hx-swap="outerHTML">
|
hx-post="/diary/{{formatDate .Date}}"
|
||||||
<textarea
|
hx-target="this"
|
||||||
name="text"
|
hx-swap="outerHTML">
|
||||||
rows="8"
|
<textarea
|
||||||
placeholder="Write your thoughts...">{{if .Entry}}{{.Entry.Text}}{{end}}</textarea>
|
name="text"
|
||||||
<div class="form-actions">
|
class="tui-input full-width"
|
||||||
<button type="submit" class="btn btn-primary">Save</button>
|
rows="8"
|
||||||
{{if .Entry}}
|
placeholder="Write your thoughts...">{{if .Entry}}{{.Entry.Text}}{{end}}</textarea>
|
||||||
<button
|
<div class="form-actions">
|
||||||
type="button"
|
<button type="submit" class="tui-button green-168 white-text">Save</button>
|
||||||
class="btn btn-danger"
|
{{if .Entry}}
|
||||||
hx-delete="/diary/{{formatDate .Date}}"
|
<button
|
||||||
hx-confirm="Delete this diary entry?">
|
type="button"
|
||||||
Delete
|
class="tui-button red-168 white-text"
|
||||||
</button>
|
hx-delete="/diary/{{formatDate .Date}}"
|
||||||
{{end}}
|
hx-confirm="Delete this diary entry?">
|
||||||
</div>
|
Delete
|
||||||
</form>
|
</button>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|||||||
@@ -5,18 +5,18 @@
|
|||||||
hx-get="/timeline/{{.PrevYear}}/{{.PrevMonth}}"
|
hx-get="/timeline/{{.PrevYear}}/{{.PrevMonth}}"
|
||||||
hx-target="#timeline-panel"
|
hx-target="#timeline-panel"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
class="nav-btn"
|
class="tui-button"
|
||||||
aria-label="Previous month">
|
aria-label="Previous month">
|
||||||
‹
|
«
|
||||||
</button>
|
</button>
|
||||||
<h2>{{.MonthName}} {{.Year}}</h2>
|
<span class="timeline-title">{{.MonthName}} {{.Year}}</span>
|
||||||
<button
|
<button
|
||||||
hx-get="/timeline/{{.NextYear}}/{{.NextMonth}}"
|
hx-get="/timeline/{{.NextYear}}/{{.NextMonth}}"
|
||||||
hx-target="#timeline-panel"
|
hx-target="#timeline-panel"
|
||||||
hx-swap="innerHTML"
|
hx-swap="innerHTML"
|
||||||
class="nav-btn"
|
class="tui-button"
|
||||||
aria-label="Next month">
|
aria-label="Next month">
|
||||||
›
|
»
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -24,68 +24,64 @@
|
|||||||
{{if .Days}}
|
{{if .Days}}
|
||||||
{{range .Days}}
|
{{range .Days}}
|
||||||
<article class="timeline-day">
|
<article class="timeline-day">
|
||||||
<header class="timeline-day-header">
|
<div class="tui-window tui-no-shadow">
|
||||||
<time datetime="{{formatDate .Date}}">
|
<fieldset class="tui-fieldset tui-border-single">
|
||||||
{{.Date.Format "Monday, January 2"}}
|
<legend>{{.Date.Format "Monday, January 2"}}</legend>
|
||||||
</time>
|
|
||||||
</header>
|
<div class="timeline-entries">
|
||||||
|
{{/* Events */}}
|
||||||
<div class="timeline-entries">
|
{{range .Events}}
|
||||||
{{/* Events */}}
|
<div class="timeline-entry">
|
||||||
{{range .Events}}
|
<span class="entry-type cyan-255-text">[EVENT]</span>
|
||||||
<div class="timeline-entry event-entry">
|
<span class="entry-title white-255-text">{{.Title}}</span>
|
||||||
<div class="entry-icon">📅</div>
|
{{if not .AllDay}}
|
||||||
<div class="entry-content">
|
<span class="entry-time green-255-text">{{formatTime .Start}} - {{formatTime .End}}</span>
|
||||||
<h4>{{.Title}}</h4>
|
{{else}}
|
||||||
{{if not .AllDay}}
|
<span class="entry-time green-255-text">All day</span>
|
||||||
<span class="entry-time">{{formatTime .Start}} - {{formatTime .End}}</span>
|
{{end}}
|
||||||
{{else}}
|
{{if .Location}}
|
||||||
<span class="entry-time">All day</span>
|
<span class="entry-location yellow-255-text">@ {{.Location}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if .Location}}
|
{{if .Description}}
|
||||||
<span class="entry-location">📍 {{.Location}}</span>
|
<p class="entry-description">{{.Description}}</p>
|
||||||
{{end}}
|
|
||||||
{{if .Description}}
|
|
||||||
<p class="entry-description">{{.Description}}</p>
|
|
||||||
{{end}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{/* Diary entry */}}
|
|
||||||
{{if .Diary}}
|
|
||||||
<div class="timeline-entry diary-entry">
|
|
||||||
<div class="entry-icon">📝</div>
|
|
||||||
<div class="entry-content">
|
|
||||||
<h4>Journal Entry</h4>
|
|
||||||
<p class="entry-description diary-text">{{.Diary.Text}}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{/* Photos */}}
|
|
||||||
{{if .Photos}}
|
|
||||||
<div class="timeline-entry photo-entry">
|
|
||||||
<div class="entry-icon">📷</div>
|
|
||||||
<div class="entry-content">
|
|
||||||
<h4>Photos</h4>
|
|
||||||
<div class="photo-grid">
|
|
||||||
{{range .Photos}}
|
|
||||||
<figure class="photo-item">
|
|
||||||
<img src="{{.URLPath}}" alt="{{.Description}}" loading="lazy">
|
|
||||||
<figcaption>{{.Description}}</figcaption>
|
|
||||||
</figure>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
{{/* Diary entry */}}
|
||||||
|
{{if .Diary}}
|
||||||
|
<div class="timeline-entry">
|
||||||
|
<span class="entry-type purple-255-text">[DIARY]</span>
|
||||||
|
<span class="entry-title white-255-text">Journal Entry</span>
|
||||||
|
<p class="entry-description diary-text">{{.Diary.Text}}</p>
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
{{/* Photos */}}
|
||||||
|
{{if .Photos}}
|
||||||
|
<div class="timeline-entry">
|
||||||
|
<span class="entry-type orange-255-text">[PHOTOS]</span>
|
||||||
|
<span class="entry-title white-255-text">{{len .Photos}} photo(s)</span>
|
||||||
|
<div class="photo-grid">
|
||||||
|
{{range .Photos}}
|
||||||
|
<figure class="photo-item">
|
||||||
|
<a href="{{.URLPath}}" target="_blank">
|
||||||
|
<img src="{{.URLPath}}" alt="{{.Description}}" loading="lazy">
|
||||||
|
</a>
|
||||||
|
{{if .Description}}<figcaption>{{.Description}}</figcaption>{{end}}
|
||||||
|
</figure>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</fieldset>
|
||||||
{{end}}
|
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="timeline-empty">
|
<div class="timeline-empty">
|
||||||
<p>No entries for this month.</p>
|
<p class="white-255-text">No entries for this month.</p>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user