Skip to content

Commit

Permalink
feat(calender): style html representation
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Jul 17, 2024
1 parent dad7b35 commit dae8516
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions layouts/events/single.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
{{ define "main" }}
<section id="{{ .Title }}">
<div class="container mt-100 mt-60">
<h1 class="title fw-bold mb-4">{{ .Title }} ({{ time.Format "January 2, 2006" .Params.start }})</h1>
<h1 class="title fw-bold mb-4">
<span class="material-icons"
style="font-size: inherit;
line-height: inherit;
vertical-align:bottom">calendar_month</span> {{ .Title }} <span style="color:grey;white-space:nowrap;">{{ time.Format "02 Jan 2006" .Params.start }}</span>
</h1>
<div class="d-flex flex-wrap">
<div class="p-2 flex-grow-1">
<p class="text-muted para-desc mb-4 pb-2 mx-auto">{{ .Content | markdownify }}</p>
<div class="">
<p class="text-muted para-desc mb-2 mx-auto">{{ .Content | markdownify }}</p>
</div>
<div class="p-2">


<span class="material-icons align-middle" style="font-size:20rem">event</span>
<p>
<span class="material-icons align-middle">location_on</span>{{ .Params.location }}
</p>
{{ if .Params.repeat }}
<p>
<span class="material-icons align-middle">event_repeat</span>Event happens regularly
</p>
{{ end }}
<p>
<span class="material-icons align-middle mr-2">schedule</span>{{ time.Format "2 Jan 2006 15:04" .Params.start }}
<br>
- {{ time.Format "2 Jan 2006 15:04" .Params.end }}
</p>
<p>
<span class="material-icons align-middle">sell</span>{{ .Params.category }}
</p>
<div class="p-4 bg-soft-primary rounded">
<div class="row">
<span class="material-icons align-middle col-2">location_on</span>
<p class="col-8">{{ .Params.location }}</p>
</div>
<div class="row">
<span class="material-icons align-middle col-2">schedule</span>
<p class="col-8">
{{ time.Format "2 Jan 2006 15:04" .Params.start }}
<br>
- {{ time.Format "2 Jan 2006 15:04" .Params.end }}
</p>
</div>
<div class="row">
<span class="material-icons align-middle col-2">sell</span>
<p class="col-8">{{ .Params.category }}</p>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit dae8516

Please sign in to comment.