Skip to content

Commit

Permalink
Update events layout (jakartaee#1330)
Browse files Browse the repository at this point in the history
* Update events layout

Signed-off-by: Eric Poirier <[email protected]>

* Update path of events page

Signed-off-by: Eric Poirier <[email protected]>

* Update order of Events

Signed-off-by: Eric Poirier <[email protected]>

* Fix typo

Signed-off-by: Eric Poirier <[email protected]>

* Update hugo theme version

Signed-off-by: Eric Poirier <[email protected]>

* Update CTA to sidebar

Signed-off-by: Eric Poirier <[email protected]>

* Update Events sidebar

Signed-off-by: Eric Poirier <[email protected]>

* Reorder the community menu items

Signed-off-by: Eric Poirier <[email protected]>

* Update yarn.lock

Signed-off-by: Eric Poirier <[email protected]>
  • Loading branch information
ericpoirier committed Jun 21, 2022
1 parent de401fd commit 24e0262
Show file tree
Hide file tree
Showing 10 changed files with 224 additions and 114 deletions.
4 changes: 2 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ enableInlineShortcodes = true
weight = 2

[[menu.main]]
name = "JakartaOne Livestream"
url = "https://jakartaone.org/"
name = "Events"
url = "/community/events/"
parent = "Community"
weight = 3

Expand Down
38 changes: 38 additions & 0 deletions content/community/events/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: Events
seo_title: "Events | Meet with the Jakarta EE Community"
headline: "Events"
description: "Meet with the Jakarta EE community at an upcoming event."
date: 2019-02-21
publishdate: 2019-02-21
hide_page_title: true
section: "events"
---

{{< newsroom/events
id="events_upcoming"
title="Come meet the Jakarta EE community <br>at these upcoming events!"
publishTarget="jakarta_ee"
class="events-page"
titleClass="big-text-secondary margin-bottom-50"
count="10"
sortOrder="custom"
paginate="true"
upcoming="true"
templateId="custom-events-template"
templatePath="/js/templates/events-page.mustache" >}}

{{< newsroom/events
id="events_archive"
title="Past Events"
publishTarget="jakarta_ee"
class="events-page"
titleClass="big-text-secondary margin-bottom-50"
count="10"
sortOrder="custom"
archive="true"
past_event="true"
upcoming="false"
paginate="true"
templateId="custom-events-template"
templatePath="/js/templates/events-page.mustache" >}}
17 changes: 0 additions & 17 deletions content/events/_index.md

This file was deleted.

33 changes: 33 additions & 0 deletions js/templates/events-page.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

{{#events}}
<div class="row margin-bottom-50">
{{#image}}
<div class="col-sm-12">
<img src="{{ image }}">
</div>
{{/image}}
<div class="{{#image}}col-sm-12{{/image}}{{^image}}col-sm-24{{/image}}">

{{#date}}
<p class="brand-secondary">{{ date }}{{#end-date}} - {{ end-date }}{{/end-date}}</p>
{{/date}}

{{#infoLink}}
<h3 class="big-text"><a href="{{infoLink}}">{{ title }}</a></h3>
{{/infoLink}}

{{^infoLink}}
<h3 class="big-text">{{ title }}</h3>
{{/infoLink}}

{{#description}}
<p>{{ description }}</p>
{{/description}}

{{#registration}}
<p class="eclipsefdn-event-list-teaser-registation"><a href="{{registration}}" class="btn btn-primary btn-sm">Get More Info</a></p>
{{/registration}}

</div>
</div>
{{/events}}
2 changes: 2 additions & 0 deletions layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{{ partial "sidebars/specifications" . }}
{{ else if eq .Section "news/tags" }}
{{ partial "sidebars/news" . }}
{{ else if eq .Section "community" }}
{{ partial "sidebars/community" . }}
{{ else }}
{{ partial "sidebars/default" . }}
{{ end }}
Expand Down
55 changes: 55 additions & 0 deletions layouts/partials/sidebars/community.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@

<aside id="events-sidebar">
<div id="main-sidebar" class="sidebar-block">
<ul id="leftnav" class="ul-left-nav fa-ul hidden-print">
<li class="separator">
<a href="/community">Overview</a>
</li>
<li>
<a href="/community/adopt-a-spec/">Adopt a Spec</a>
</li>
<li>
<a href="/community/events/" target="_self">Events</a>
</li>
<li>
<a href="/connect/" target="_self">Stay Connected</a>
</li>
<li>
<a href="https://www.meetup.com/jakartatechtalks_/" target="_self">TechTalk Meet-Ups</a>
</li>
<li>
<a href="/community/videos/" target="_self">Videos</a>
</li>
</ul>
</div>
{{ if eq .Title "Events" }}
<div class="sidebar-block row">
<div class="card-container">
<div class="card-panel panel panel-default with-glyph">
<div class="panel-heading" aria-hidden="true">
<img class="img-responsive" src="/images/community/events/event-hosting.png" alt="Interested in Hosting an Event?">
</div>
<div class="panel-body">
<h3 class="big-text margin-top-30">Interested in Hosting an Event?</h3>
<p><a class="big-text text-secondary uppercase" href="https://newsroom.eclipse.org/node/add/events">Learn more</a></p>
</div>
</div>
</div>
</div>

<div class="sidebar-block row">
<div class="card-container">
<div class="card-panel panel panel-default with-glyph">
<div class="panel-heading" aria-hidden="true">
<img class="img-responsive" src="/images/community/events/event-youtube.png" alt="Watch recordings from the past events">
</div>
<div class="panel-body">
<h3 class="big-text margin-top-30">Watch recordings from the past events</h3>
<p><a class="big-text text-secondary uppercase" href="https://www.youtube.com/jakartaee">on our YouTube channel</a></p>
</div>
</div>
</div>
</div>
{{ end }}
</aside>

4 changes: 4 additions & 0 deletions static/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ http://start.jakarta.ee/* https://eclipse-ee4j.github.io/starter/:splat 200!

# add proxy for jakartablogs rss feed
/blogs/jakartablogs.xml https://jakartablogs.ee/rss20.xml 200

# redirect events page from old to new location
/events /community/events 301!

Binary file added static/images/community/events/event-hosting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/community/events/event-youtube.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 24e0262

Please sign in to comment.