2019-09-14 06:43:07 +02:00
|
|
|
import html from 'choo/html';
|
|
|
|
|
|
|
|
export const loggedOutView = (homeController, emit) => {
|
2019-09-14 07:25:10 +02:00
|
|
|
const { i18n } = homeController;
|
|
|
|
|
2019-09-14 06:43:07 +02:00
|
|
|
return [
|
|
|
|
html`<section>
|
2019-09-14 07:25:10 +02:00
|
|
|
<h2>${i18n.__('home.logged_out_subtitle')}</h2>
|
2019-09-14 06:43:07 +02:00
|
|
|
<article class="flex one three-500">
|
|
|
|
<div>
|
|
|
|
<div class="card">
|
|
|
|
<header class="center-align">
|
|
|
|
<span style="font-size:32pt;color:green;">
|
|
|
|
<i class="icon-check"></i>
|
|
|
|
</span>
|
|
|
|
</header>
|
|
|
|
<footer>
|
2019-09-14 07:25:10 +02:00
|
|
|
${i18n.__('home.logged_out_track_books')}
|
2019-09-14 06:43:07 +02:00
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="card">
|
|
|
|
<header class="center-align">
|
|
|
|
<span style="font-size:32pt;color:red;">
|
|
|
|
<i class="icon-heart-filled"></i>
|
|
|
|
</span>
|
|
|
|
</header>
|
|
|
|
<footer>
|
2019-09-14 07:25:10 +02:00
|
|
|
${i18n.__('home.logged_out_share_friends')}
|
2019-09-14 06:43:07 +02:00
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="card">
|
|
|
|
<header class="center-align">
|
|
|
|
<span style="font-size:32pt;color:yellow;">
|
|
|
|
<i class="icon-star"></i>
|
|
|
|
</span>
|
|
|
|
</header>
|
|
|
|
<footer>
|
2019-09-14 07:25:10 +02:00
|
|
|
${i18n.__('home.logged_out_read_rate')}
|
2019-09-14 06:43:07 +02:00
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</section>`,
|
|
|
|
html`<section>
|
2019-09-14 07:25:10 +02:00
|
|
|
<h2>${i18n.__('home.logged_out_community_header')}</h2>
|
2019-09-14 06:43:07 +02:00
|
|
|
<div class="flex one two-700">
|
|
|
|
<div>
|
|
|
|
<div class="card">
|
|
|
|
<header>
|
2019-09-14 07:25:10 +02:00
|
|
|
<h3>${i18n.__('home.logged_out_recent_reviews')}</h3>
|
|
|
|
<button class="small pseudo pull-right tooltip-left" data-tooltip=${i18n.__('interaction.reload')}>
|
2019-09-14 06:43:07 +02:00
|
|
|
<i class="icon-loading"></i><!--/* This needs to get updated to a reload icon */-->
|
|
|
|
</button>
|
|
|
|
</header>
|
|
|
|
<footer>
|
2019-09-14 06:46:18 +02:00
|
|
|
${homeController.recentReviews.map(review => reviewCard(homeController, review))}
|
2019-09-14 06:43:07 +02:00
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div class="card">
|
|
|
|
<header>
|
2019-09-14 07:25:10 +02:00
|
|
|
<h3>${i18n.__('home.logged_out_recent_updates')}</h3>
|
|
|
|
<button class="small pseudo pull-right tooltip-left" data-tooltip=${i18n.__('interaction.reload')}>
|
2019-09-14 06:43:07 +02:00
|
|
|
<i class="icon-loading"></i><!--/* This needs to get updated to a reload icon */-->
|
|
|
|
</button>
|
|
|
|
</header>
|
|
|
|
<footer>
|
2019-09-14 06:46:18 +02:00
|
|
|
${homeController.recentUpdates.map(review => reviewCard(homeController, review))}
|
2019-09-14 06:43:07 +02:00
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>`,
|
|
|
|
html`<section class="center-align">
|
2019-09-14 07:25:10 +02:00
|
|
|
<a href="/login" class="large success button">${i18n.__('home.logged_out_join_now')}</a>
|
2019-09-14 06:43:07 +02:00
|
|
|
</section>`,
|
|
|
|
];
|
|
|
|
}
|