2019-12-05 06:46:19 -05:00
|
|
|
<template>
|
|
|
|
<div class="site-wrapper">
|
2020-11-04 03:44:03 -05:00
|
|
|
|
2021-06-03 11:48:30 -04:00
|
|
|
<!-- Temporary webinar banner -->
|
2020-11-04 03:44:03 -05:00
|
|
|
<transition name="fade">
|
2021-06-03 11:48:30 -04:00
|
|
|
<div style="background-color: #F8CD44; padding: 1em; color: black; display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 500" v-show="bannerShow">
|
|
|
|
<span style="margin-left: auto; margin-right: auto"><strong>Snipêtte à tête.</strong> Our next webinar is happening this Sunday! <a :href="/webinar-jun-2021/" style="color: black; text-decoration: underline;">Learn more</a>.</span>
|
2020-11-04 03:44:03 -05:00
|
|
|
<button style="border: 1px solid white; border-radius: 1em; background: #0000;" @click="bannerShow = false">x</button>
|
|
|
|
</div>
|
|
|
|
</transition>
|
|
|
|
<div style="height: 4em; background: black;" v-show="bannerShow"></div>
|
|
|
|
<!-- End banner -->
|
|
|
|
|
2019-12-05 06:46:19 -05:00
|
|
|
<!-- All the main content gets inserted here, index.vue, blogPost.vue, etc -->
|
|
|
|
<slot/>
|
|
|
|
|
|
|
|
<!-- The footer at the very bottom of the screen -->
|
|
|
|
<Footer/>
|
|
|
|
|
|
|
|
<!-- TODO Showing upon clicking the button -->
|
|
|
|
<!-- The big email subscribe modal content -->
|
|
|
|
<div v-if="Admin.site.subscribers" id="subscribe" class="subscribe-overlay">
|
|
|
|
<a class="subscribe-overlay-close" href="#"></a>
|
|
|
|
<div class="subscribe-overlay-content">
|
|
|
|
<img v-if="!Admin.site.logo" class="subscribe-overlay-logo" :src="Admin.site.logo" :alt="Admin.site.title" />
|
|
|
|
<h1 class="subscribe-overlay-title">Subscribe to {{ Admin.site.title }}</h1>
|
|
|
|
<p class="subscribe-overlay-description">Stay up to date! Get all the latest & greatest posts delivered straight to your inbox</p>
|
|
|
|
<subscribeForm placeholder="youremail@example.com" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- TODO Add pagination -->
|
|
|
|
<!-- <script v-if="Admin.site.pagination" src=""></script> -->
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Footer from '../components/Footer';
|
|
|
|
import Admin from '../../data/admin.yml';
|
|
|
|
import subscribeForm from '../components/subscribeForm'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Footer, subscribeForm
|
|
|
|
},
|
2020-11-04 03:44:03 -05:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
bannerShow: true,
|
|
|
|
}
|
|
|
|
},
|
2019-12-05 06:46:19 -05:00
|
|
|
computed: {
|
|
|
|
Admin() {
|
|
|
|
return Admin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-12-24 04:46:33 -05:00
|
|
|
</script>
|