Skip to content

Commit 583994d

Browse files
committed
update settings
1 parent 79f6bd3 commit 583994d

4 files changed

Lines changed: 41 additions & 7 deletions

File tree

assets/scss/_custom.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ a:hover, .content a:hover {
118118

119119
ol.breadcrumb {
120120
background: none;
121-
padding: 15px 0;
122121
}
123122

124123
.breadcrumb a {

content/en/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ fetchYoutubeVideos: true
9999
</section>
100100

101101
<section class="section-last section">
102-
<div class="container section-small shadow rounded-lg px-4 bg-light">
103-
<div class="row align-items-center text-md-left">
102+
<div class="container shadow rounded-lg bg-light" style="padding: 20px;">
103+
<div class="row">
104104
<div class="col-md-12">
105105
<p class="h2 section-title">Stay Connected</p>
106106
<p>Most of the action in the community happens on our <a href="/slack">Slack Channel</a>. You can also keep informed about the InnerSource Commons news, events and activities by signing up to our newsletter below, follow us on <a href="https://twitter.com/InnerSourceOrg">Twitter</a> and <a href="https://www.linkedin.com/company/innersourcecommons">LinkedIn</a>, and subscribing to our <a href="https://www.youtube.com/channel/UCoSPSd6Or4F_vpjo4SmyoEA">YouTube Channel</a>.</p>

layouts/_default/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{ partial "breadcrumbs.html" . }}
44
{{ partial "page-header.html" . }}
55
<section class="section">
6-
<div class="container"">
6+
<div class="container">
77
<div class="row">
88
<div class="col-lg-12 mx-auto">
99
<div class="content">{{ .Content }}</div>

layouts/partials/header.html

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,13 @@ <h4>{{ .title }}</h4>
165165
<li class="menu-item-has-children">
166166
<a href="#" style="border-bottom: 0px solid #e0e0e0;"><span>{{ .Name }}</span></a>
167167
<div class="sub-menu" style="padding:0px;margin:0px;">
168-
<div style="width:100%;margin:0px" id="calendar-container">
169-
</div>
168+
<div style="width:100%;margin:0px;padding:0px;" id="calendar-container">
169+
<div id="calendar-loading" style="text-align:center;padding:40px;color:#666;">
170+
<i class="ti-reload" style="animation: spin 2s linear infinite;display:block;font-size:24px;margin-bottom:10px;"></i>
171+
<span>Loading...</span>
172+
</div>
170173
</div>
174+
</div>
171175
</li>
172176
{{else}}
173177
<li class="menu-item">
@@ -208,13 +212,44 @@ <h4>{{ .title }}</h4>
208212
</div>
209213
</header>
210214

215+
<style>
216+
@keyframes spin {
217+
from { transform: rotate(0deg); }
218+
to { transform: rotate(360deg); }
219+
}
220+
</style>
221+
211222
<script>
212223
document.addEventListener('DOMContentLoaded', function () {
213224
const hamburger = document.querySelector('.hamburger');
214225
const menu = document.querySelector('.main-menu__wrapper');
215226
const subMenuParents = document.querySelectorAll('.menu-item-has-children > a');
216227
const isMobile = window.innerWidth <= 992;
217228

229+
const calendarContainer = document.getElementById('calendar-container');
230+
const observer = new MutationObserver((mutations) => {
231+
mutations.forEach((mutation) => {
232+
if (mutation.addedNodes.length > 0) {
233+
const loadingElement = document.getElementById('calendar-loading');
234+
if (loadingElement) {
235+
loadingElement.style.transition = 'opacity 0.5s ease-out';
236+
loadingElement.style.opacity = '1';
237+
238+
setTimeout(() => {
239+
loadingElement.style.opacity = '0';
240+
setTimeout(() => {
241+
loadingElement.style.display = 'none';
242+
}, 500);
243+
}, 2000);
244+
}
245+
}
246+
});
247+
});
248+
249+
if (calendarContainer) {
250+
observer.observe(calendarContainer, { childList: true, subtree: true });
251+
}
252+
218253
// ハンバーガーメニューの開閉
219254
hamburger.addEventListener('click', function () {
220255
this.classList.toggle('is-active');
@@ -271,4 +306,4 @@ <h4>{{ .title }}</h4>
271306
</div>
272307
</section>
273308
{{ end }}
274-
{{ end }}
309+
{{ end }}

0 commit comments

Comments
 (0)