Skip to content

Commit 7eaff44

Browse files
committed
update upcoming event page
1 parent dbee9b1 commit 7eaff44

2 files changed

Lines changed: 30 additions & 8 deletions

File tree

content/en/_index.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ fetchYoutubeVideos: true
44
---
55

66
<section class="section-banner d-flex align-items-center"
7-
style="background-image:url(/images/photos/welcome-to-the-isc.jpg); background-size: cover; background-position: center; height:400px;">
7+
style="background-image:url(/images/photos/welcome-to-the-isc.jpg); background-size: cover; background-position: center; height:400px; position: relative;">
88
<div class="container">
9-
<div class="row">
10-
<div class="col-lg-12 mr-auto">
11-
<h1 style="font-size: 40px; color: white; text-align: left;">Welcome to the InnerSource Commons</h1>
12-
</div>
9+
<div class="row align-items-center">
10+
<div class="col-lg-8 mr-auto">
11+
<h1 style="font-size: 40px; color: white; text-align: left; margin: 0;">Welcome to the InnerSource Commons</h1>
12+
</div>
13+
<div class="col-lg-4">
14+
{{< upcoming-event-card style="banner" >}}
15+
</div>
1316
</div>
1417
</div>
1518
</section>
@@ -40,9 +43,16 @@ fetchYoutubeVideos: true
4043
<p>InnerSource takes the lessons learned from developing open source software and applies them to the way companies develop software internally. As developers have become accustomed to working on world class open source software, there is a strong desire to bring those practices back inside the firewall and apply them to software that companies may be reluctant to release. For companies building mostly closed source software, InnerSource can be a great tool to help break down silos, encourage internal collaboration, accelerate new engineer on-boarding, and identify opportunities to contribute software back to the open source world.
4144
</p>
4245
</div>
43-
<div class="col-md-5 my-auto">
44-
<div class="video-container">
45-
<iframe src="https://www.youtube.com/embed/kkxRvNP31K8?si=Lmqas3O0XmhzGRL5" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
46+
<div class="col-md-5">
47+
<div class="row">
48+
<div class="col-12 mb-4">
49+
<div class="video-container">
50+
<iframe src="https://www.youtube.com/embed/kkxRvNP31K8?si=Lmqas3O0XmhzGRL5" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
51+
</div>
52+
</div>
53+
<div class="col-12">
54+
{{< upcoming-event-card >}}
55+
</div>
4656
</div>
4757
</div>
4858
</div>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{ $style := .Get "style" | default "default" }}
2+
3+
{{ $pages := where site.Pages "Type" "in" "redirects" }}
4+
{{ $pages = where $pages "Section" "events" }}
5+
{{ range first 1 ($pages.ByDate.Reverse) }}
6+
<div style="position: relative; overflow: hidden; border: none; box-shadow: none;">
7+
<div style="position: absolute; top: 10px; left: 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: white; background: rgba(0, 0, 0, 0.5); padding: 4px 8px; border-radius: 2px; z-index: 1;">Upcoming Event</div>
8+
<a href="{{ .Params.redirect }}" class="event-link" target="_blank" style="text-decoration: none; color: inherit; display: block; border: none;">
9+
<img src="{{ .Params.image }}" alt="{{ .Title }}" style="width: 100%; display: block; border: none; margin: 0; border-radius: 6px;">
10+
</a>
11+
</div>
12+
{{ end }}

0 commit comments

Comments
 (0)