Skip to content

Commit

Permalink
Updates the desing of the events page
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Stephanus <[email protected]>
  • Loading branch information
Aaron Stephanus committed Dec 15, 2023
1 parent f78a6f6 commit 0b9ab2d
Show file tree
Hide file tree
Showing 7 changed files with 127 additions and 37 deletions.
13 changes: 12 additions & 1 deletion _events/2023-1201-dev-triage-ml-commons.markdown
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
---
calendar_date: '2023-12-01'
eventdate: 2023-12-01 09:00:00 -0700

title: Development Backlog & Triage Meeting - ml-commons - 2023-12-01
primary_title: Development Backlog & Triage Meeting - ml-commons - 2023-12-01
online: true
signup:
url: https://www.meetup.com/opensearch/events/296823978
title: Join on Meetup
category: development
hosts:
- name: Yaliang Wu
github: https://github.com/ylwu-amzn
short_name: ylwu
- name: Jing Zhang
github: https://github.com/jngz-es
- name: Dhrubo Saha
github: https://github.com/dhrubo-os
short_name: dhrubo
- name: Xun Zhang
github: https://github.com/Zhangxunmt
---

Join the OpenSearch ml-commons team for their next backlog & triage planning meeting.
Expand Down
120 changes: 94 additions & 26 deletions _layouts/event.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,100 @@
---
layout: default
body_class: events-page
layout: fullwidth-with-breadcrumbs
breadcrumbs:
icon: meetings-and-events
items:
- title: Events
url: /events/calendar/2023-12.html
---
{% assign primary_title = site.headings.events %}
{% assign layout_class = 'sidebar-right' %}
{% capture content %}
<h1>{{page.title}}</h1>
<h4>
{% if page.online %} Online {% endif %}
{% if page.location %} {{page.location.city}} ({{page.location.country}}) {% endif %}
{% if page.cost %} &middot; {{page.cost}} {%endif%}
</h4>
{% if page.image %}
<img src="{{page.image}}" class="img-fluid">
{%endif%}
{{ content }}
{% include share-buttons.html %}

{% endcapture %}
{% if page.hero_banner_image %}
<div class="hero-banner__fullwidth__responsive">
<div>
<img src="{{ page.hero_banner_image }}" alt="{{ page.title }}">
</div>
</div>
{% endif %}
<div class="landing-page-content__right-panel conference-speaker-session-page">
{% if page.youtube_video_id %}
<div class="conference-speaker-session-page--embedded-video">
{% include youtube-player.html id=page.youtube_video_id width="100%" height="" %}
</div>
{% endif %}
<div class="landing-page-content__right-panel--content">
<div class="landing-page-content__right-panel--content--body">
{{ content }}
</div>
<div class="landing-page-content__right-panel--content--side-panel">
{% assign category = page.category | default: "community" %}
{% assign event_date = page.eventdate | date: "%A %e %B %Y %l%P %Z" %}
{% assign category_card_class = "events--calendar__list-view--event-card__" | append: category %}
{% assign online_event_card_class = "events--calendar__list-view--event-card__online" %}
{% if page.online %}
{% assign category_card_class = category_card_class | append: " " | append: online_event_card_class %}
{% endif %}
<div class="events--calendar--details--card {{ category_card_class }} events--calendar--details--card__events-page">
<h4 class="events--calendar--body--week--day--event--details--category">
{{ category }}
</h4>
<h3 class="events--calendar--body--week--day--event--details--name">
{{ event_date }}
</h3>
{% if page.hosts %}
<p class="events--calendar--details--card--hosts">
{% if page.online %}Online event {% else %} In-person event {% endif %} hosted by
{% for host in page.hosts %}
{% if host.short_name %}
{% assign host_url = "/authors/" | append: host.short_name | append: "/" %}
{% else %}
{% assign host_url = host.github %}
{% endif %}
{% if forloop.last %} &amp; {% endif %}<a href="{{ host_url }}">{{ host.name }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</p>
{% endif %}
<p class="events--calendar--details--card--hosts">
{% assign meeting_link_title = page.signup.title | default: "Join the meeting" %}
<a href="{{ page.signup.url }}">{{ meeting_link_title }}</a>
</p>
</div>
</div>
</div>
</div>

{% capture content_related %}
<div role="complementary">
<p>
<strong>Date:</strong> <span class="locale-datetime" data-tz="{{page.tz}}">{{page.eventdate | date_to_rfc822}}</span>
</p>
<a href="{{page.signup.url}}" class="cta" target="_blank">{{page.signup.title}}</a>
<h2 class="conference-speaker-session-page">Hosted By</h2>
<div class="speaker-session--speaker-cards">
{% for host in page.hosts %}
{% if host.short_name %}
{% assign host_site_author = site.authors | find: "short_name", host.short_name %}
{% if host_site_author %}
{% assign host_photo = host_site_author.photo | default: "/assets/media/opensearchcon/speakers/no-image-available.svg" %}
{% assign host_details = host_site_author.job_title | append: " at " | append: host_site_author.company_name %}
{% else %}
{% assign host_photo = "/assets/media/opensearchcon/speakers/no-image-available.svg" %}
{% assign host_details = "" %}
{% endif %}
{% else %}
{% assign host_photo = "/assets/media/opensearchcon/speakers/no-image-available.svg" %}
{% assign host_details = "" %}
{% endif %}
<div class="speaker-session--speaker-cards--card">
<div class="speaker-session--speaker-cards--card--image">
<img src="{{ host_photo }}" alt="Host photograph">
</div>
<div class="speaker-session--speaker-cards--card--content">
<div class="keynote-speaker-label">Event Organizer</div>
<h3><a href="{{ speaker.permalink }}">{{ host.name }}</a></h3>
<div class="speaker-session--speaker-cards--card--content--job-title">{{ host_details }}</div>
</div>
</div>
{% endfor %}
</div>
{% endcapture %}

{% include copy_banner.html %}
{% include base_3col.html %}
<div class="conference-speaker-session-page--view-all">
<div class="conference-speaker-session-page--view-all--link-button">
{% assign year_month = site.date | date: "%Y-%m" %}
<a href="/events/calendar/{{ year_month }}.html">View All Events</a>
</div>
</div>
{% include card-clickability.html card_classname="speaker-session--speaker-cards--card" card_container_selector=".speaker-session--speaker-cards" %}
{% include interactive-states.html element_classname="conference-speaker-session-page--view-all--link-button" container_selector=".conference-speaker-session-page--view-all" %}
8 changes: 7 additions & 1 deletion _sass/_events-calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ $calendar-month-default-week-count: 5;
.events--calendar--details--card {
box-sizing: border-box;
width: 350px;
height: 347px;
height: 350px;
padding: 45px 30px 10px 30px;
@include thick-edge-bottom;
@include card-shadow;
background-color: #fff;
display: flex;
flex-direction: column;
justify-content: space-between;
&.events--calendar--details--card__events-page {
justify-content: start;
}
> h4.events--calendar--body--week--day--event--details--category {
margin-top: 0;
margin-bottom: 10px;
Expand Down Expand Up @@ -64,6 +67,9 @@ $calendar-month-default-week-count: 5;

}
}
> p.events--calendar--details--card--hosts {
@include body-small;
}
> h5.events--calendar--body--week--day--event--details--host {
margin-top: 0;
margin-bottom: 0;
Expand Down
4 changes: 3 additions & 1 deletion _sass/_navigation-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ $max-container: 1440px;
text-decoration: none;
text-indent: 100%;
position: relative;
left: min(80px, calc(100% - $header-banner-min-width));
// NOTE: The min() function name is deliberatedly misspelled with an upercase M to workaround an outdated SCSS compiler
// dependency used by the Just the Docs theme 0.3.3.
left: Min(80px, calc(100% - $header-banner-min-width));
box-sizing: content-box;
@media screen and (max-width: 1339px) {
left: 0;
Expand Down
10 changes: 7 additions & 3 deletions _sass/_redesign-conference.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ $content-panel-expand-breakpoint: 1019px;
> .speaker-session--speaker-cards--card {
cursor: pointer;
background-color: white;
@include thick-edge-left;
&.speaker-session--speaker-cards--card__bottom-edge {
@include thick-edge-bottom;
border-left: unset;
Expand Down Expand Up @@ -339,12 +338,17 @@ $content-panel-expand-breakpoint: 1019px;
}
}
> .speaker-session--speaker-cards--card--content {
max-width: 380px;
padding-left: 15px;
padding-top: 20px;
@include thick-edge-bottom;
box-sizing: border-box;
@media screen and (max-width: 380px) {
padding-left: 5px;
}
height: 150px;
flex-basis: auto;
flex-shrink: 1;
flex-grow: 1;
height: 200px;
> .keynote-speaker-label {
margin-top: 15px;
color: $primary-open-sky-s3;
Expand Down
2 changes: 1 addition & 1 deletion _sass/_redesign-palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ $light-theme-category-card-edge: $primary-open-sky-s2;
$light-theme-category-call-to-action-background: $primary-pacific-sky-t3;
$light-theme-category-call-to-action-text: $primary-deep-blue-sea;

$light-theme-navigation-background: rgba(0, 163, 224, 0.05);
$light-theme-navigation-background: #F1FBFF;

$event-category-community: $primary-open-sky;
$event-category-development: $secondary-malibu-sunrise;
Expand Down
7 changes: 3 additions & 4 deletions events/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
title: Upcoming Events
primary_title: Upcoming Events
breadcrumbs:
icon: community
icon: meetings-and-events
items:
- title: Community
- title: Upcoming Events
- title: Events
url: '/events/'
notice: true
callouts:
Expand Down Expand Up @@ -80,7 +79,7 @@ <h2>{{ event.eventdate | date: "%b %Y"}}</h2>
{% endif %}

{% assign category = event.category | default: "community" %}
{% assign event_date = event.eventdate | date: "%a, %b %d, %Y" %}
{% assign event_date = event.eventdate | date: "%a %d %b %Y at %I:%M %p %Z" %}
{% assign category_card_class = "events--calendar__list-view--event-card__" | append: category %}
{% assign online_event_card_class = "events--calendar__list-view--event-card__online" %}
{% if event.online %}
Expand Down

0 comments on commit 0b9ab2d

Please sign in to comment.