Skip to content

Commit c0c0a82

Browse files
committed
add sponsors to home page
1 parent 22cd034 commit c0c0a82

File tree

2 files changed

+136
-3
lines changed

2 files changed

+136
-3
lines changed

layouts/index.html

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,64 @@ <h3> {{ .title }} </h3>
155155
<!-- ========================== END OF GOALS ========================== -->
156156

157157

158-
158+
<!-- ================================== START OF PYMCON SPONSORS ============================== -->
159+
<section class="section pymcon__sponsor">
160+
<div class="container pymcon__sponsor__container">
161+
<h1>Our <span>💖</span>Sponsors</h2>
162+
<div class="slider">
163+
<div class="logos__container">
164+
<div class="sponsor_logo">
165+
<a href="https://www.mistplay.com/" target="_blank">
166+
<img src="/images/sponsors_logos/mistplay_logo.jpg" alt="Mistplay logo">
167+
</a>
168+
<h2>Hamiltonian Monte Carlo</h2>
169+
</div>
170+
171+
<div class="sponsor_logo">
172+
<a href="https://odsc.com/california/?utm_source=pymc&utm_medium=referral" target="_blank">
173+
<img src="/images/sponsors_logos/odsc_logo.jpg" alt="ODSC logo">
174+
</a>
175+
<h2>Hamiltonian Monte Carlo</h2>
176+
</div>
177+
178+
<div class="sponsor_logo">
179+
<a href="https://numfocus.org/" target="_blank">
180+
<img src="/images/sponsors_logos/num_focus_logo.jpg" alt="NumFOCUS logo">
181+
</a>
182+
<h2>Non-profit Sponsors</h2>
183+
</div>
184+
185+
<!-- ======== DUPLICATE FOR SLIDER TO WORK PROPERLY ======== -->
186+
187+
<div class="sponsor_logo">
188+
<a href="https://www.mistplay.com/" target="_blank">
189+
<img src="/images/sponsors_logos/mistplay_logo.jpg" alt="Mistplay logo">
190+
</a>
191+
<h2>Hamiltonian Monte Carlo</h2>
192+
</div>
193+
194+
<div class="sponsor_logo">
195+
<a href="https://odsc.com/california/?utm_source=pymc&utm_medium=referral" target="_blank">
196+
<img src="/images/sponsors_logos/odsc_logo.jpg" alt="ODSC logo">
197+
</a>
198+
<h2>Hamiltonian Monte Carlo</h2>
199+
</div>
200+
201+
<div class="sponsor_logo">
202+
<a href="https://numfocus.org/" target="_blank">
203+
<img src="/images/sponsors_logos/num_focus_logo.jpg" alt="NumFOCUS logo">
204+
</a>
205+
<h2>Non-profit Sponsors</h2>
206+
</div>
207+
</div>
208+
</div>
209+
</div>
210+
</section>
211+
<!-- ================================== END OF PYMCON SPONSORS ============================== -->
212+
159213

160214
<!-- ================================== START OF SUBSCRIBE ============================== -->
161-
<section class="section subscribe" {{ if not $showFeaturedEvent }} style="background: transparent; margin: 8rem 0 4rem;" {{ end }}>
215+
<!-- <section class="section subscribe" {{ if not $showFeaturedEvent }} style="background: transparent; margin: 8rem 0 4rem;" {{ end }}>
162216
<div class="container subscribe__container">
163217
<div class="subscribe__text">
164218
<h2>Join the PyMC Discourse to stay updated</h2>
@@ -168,7 +222,7 @@ <h2>Join the PyMC Discourse to stay updated</h2>
168222
</div>
169223
<a href="{{ .Site.Author.discourse }}" class="btn subscribe__btn">Take me to the Discourse</a>
170224
</div>
171-
</section>
225+
</section> -->
172226
<!-- ================================== END OF SUBSCRIBE ============================== -->
173227

174228

static/css/home.css

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,85 @@
460460
}
461461

462462

463+
/* ======================== PYMCON SPONSOR SLIDER ====================== */
464+
.pymcon__sponsor {
465+
padding: 6rem 0 6rem;
466+
background: var(--color-bg1);
467+
}
468+
469+
.pymcon__sponsor__container {
470+
display: grid;
471+
grid-template-columns: 1fr 5fr;
472+
gap: 1rem;
473+
align-items: center;
474+
}
475+
476+
.sponsor_logo {
477+
background: var(--color-bg2);
478+
width: 15rem;
479+
height: auto;
480+
margin: 0.6rem;
481+
padding: 1rem;
482+
border: 1px solid transparent;
483+
border-radius: 1rem;
484+
transition: var(--transition);
485+
}
486+
487+
.sponsor_logo h2{
488+
margin: 0;
489+
padding-top: 0.5rem;
490+
font-size: 0.9rem;
491+
}
492+
493+
.sponsor_logo:hover {
494+
border-radius: 0;
495+
background: transparent;
496+
border-color: var(--color-primary);
497+
}
498+
499+
.sponsor_logo img {
500+
transition: var(--transition);
501+
}
502+
503+
.sponsor_logo:hover img {
504+
transform: scale(1.07);
505+
}
506+
507+
.sponsor_logo:focus-within img {
508+
outline: 3px solid var(--color-red);
509+
transform: scale(0.9);
510+
outline-offset: 5px;
511+
border-radius: 5px;
512+
}
513+
514+
515+
/* ============= LOGO SCROLL ANIMATION ============= */
516+
.slider {
517+
width: 100%;
518+
overflow: hidden;
519+
}
520+
521+
.logos__container {
522+
display: flex;
523+
width: calc(16.2rem * 6);
524+
animation: scrollLogos 10s linear infinite;
525+
}
526+
527+
@keyframes scrollLogos {
528+
0% {
529+
transform: translateX(0);
530+
}
531+
100% {
532+
transform: translateX(calc(-16.2rem * 3));
533+
}
534+
}
535+
536+
.logos__container:hover,
537+
.logos__container:focus-within {
538+
animation-play-state: paused;
539+
}
540+
541+
463542
/* ======================== SUBSCRIBE ====================== */
464543
.subscribe {
465544
padding: 6rem 0 6rem;

0 commit comments

Comments
 (0)